2

Have already read the answer to this question that is on SO. None of those fixes are my problem.

I am unable to call the function "from_json".

I already had below in my code:

import org.apache.spark.sql.functions._

I also tried adding:

import org.apache.spark.sql.Column

I am running Scala/Spark through Eclipse. Scala Version 2.11.11, Spark Version 2.0.0.

Any ideas?

Bleach
  • 561
  • 4
  • 11

1 Answers1

2

from_json function isn't available in Spark 2.0

It is available from Spark 2.1

Release notes of spark 2.1 mentions about adding from_json functionality

tourist
  • 4,165
  • 6
  • 25
  • 47