0

I am following this documentation to handle nested data in spark. However, it is not clear to me, why the structure of the path to the target object starts with a dollar sign symbol. For example, get_json_object(col("jsonColumn"), "$.path.to.data")

  • Does this answer your question? [What is the advantage of using $"col" over "col" in spark data frames](https://stackoverflow.com/questions/56305811/what-is-the-advantage-of-using-col-over-col-in-spark-data-frames) – thebluephantom Sep 13 '21 at 21:23
  • 2
    @thebluephantom I think he's mentioning about `"$.path.to.data"` object selector – Kafels Sep 13 '21 at 21:30

1 Answers1

1

It is just how the api works, that simple. Sometimes col(..., $. Depends on the api.

thebluephantom
  • 16,458
  • 8
  • 40
  • 83