Spark - “sbt package” - “value $ is not a member of StringContext” - Missing Scala plugin?

前端 未结 3 2101
情话喂你
情话喂你 2021-02-12 14:16

When running \"sbt package\" from the command line for a small Spark Scala application, I\'m getting the \"value $ is not a member of StringContext\" compilation error on the fo

3条回答
  •  终归单人心
    2021-02-12 14:34

    You need to make sure you import sqlContext.implicits._

    This gets you implicit class StringToColumn extends AnyRef

    Which is commented as:

    Converts $"col name" into an Column.

提交回复
热议问题