Java - Spark SQL DataFrame map function is not working

后端 未结 6 816
说谎
说谎 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:41

    Do you have the correct dependency set in your pom. Set this and try

        
            org.apache.spark
            spark-sql_2.10
            1.3.1
        
    

提交回复
热议问题