Java - Spark SQL DataFrame map function is not working

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

    check if you are using the correct import for

    Row(import org.apache.spark.sql.Row) Remove any other imports related to Row.otherwise ur syntax is correct

提交回复
热议问题