databricks / Spark-The-Definitive-Guide

Spark: The Definitive Guide's Code Repository
http://shop.oreilly.com/product/0636920034957.do
Other
2.85k stars 2.76k forks source link

Was this line even tested ? There is no closing quote for the column name #29

Closed neeleshkumar-mannur closed 6 years ago

neeleshkumar-mannur commented 6 years ago

https://github.com/databricks/Spark-The-Definitive-Guide/blob/3255bc360e3cd8c3d9393b8d8c4e127b4358e044/code/A_Gentle_Introduction_to_Spark-Chapter_2_A_Gentle_Introduction_to_Spark.scala#L66

bllchmbrs commented 6 years ago

Yes, it was. In Scala, this resolves as an identifier. We mention that a single quote resolves this way in the book. Read more here.