How to map DataSet row to Struct in java?

2020-07-27 Thread anuragDada
When i try to use this below code getting this error :*Exception in thread "main" org.apache.spark.sql.AnalysisException: Generators are not supported when it's nested in expressions, but got: generatorouter(explode(generatorouter(explode(json;*StructType schema = DataTypes.createStructType(

How to map DataSet row to Struct in java?

2020-07-27 Thread anuragDada
When i try to use this below code getting this error : *Exception in thread "main" org.apache.spark.sql.AnalysisException: Generators are not supported when it's nested in expressions, but got: generatorouter(explode(generatorouter(explode(json; * StructType schema =