Schema comparison of two dataframes in scala

后端 未结 5 1956
悲哀的现实
悲哀的现实 2020-12-01 17:18

I am trying to write some test cases to validate the data between source (.csv) file and target (hive table). One of the validation is the Structure validation of the table.

5条回答
  •  无人及你
    2020-12-01 17:23

    This is a Java level Object comparison problem, you should try with .equals(). This mostly works unless different SourceTypes introduce metadata, nullability issues.

提交回复
热议问题