How to do not null check for columns in scala dataframe in an effective way?

  Kiến thức lập trình

I have a dataframe. I want to raise an exception if any of the column is having null. I can do it by hard coding column names and putting or conditions to check. How can i make it dynamic and performance effective.

LEAVE A COMMENT