Java - Spark SQL DataFrame map function is not working

后端 未结 6 859
说谎
说谎 2021-01-01 01:46

In Spark SQL when I tried to use map function on DataFrame then I am getting below error.

The method map(Function1, ClassTag) in the type DataFrame is not applicab

6条回答
  •  醉酒成梦
    2021-01-01 02:29

    Please check your input file's data and your dataframe sql query same thing I am facing and when I look back to the data so it was not matching with my query. So probably same issue you are facing. toJavaRDD and JavaRDD both are working.

提交回复
热议问题