Spark-The-Definitive-Guide icon indicating copy to clipboard operation
Spark-The-Definitive-Guide copied to clipboard

code works under Spark 2.0 version

Open crazydev-art opened this issue 1 year ago • 0 comments

Hi, I found in the book "Spark: The Definitive Guide" a statement that the following code:

df.select(col("DEST_COUNTRY_NAME"), "DEST_COUNTRY_NAME")

would not work and would throw a compiler error. However, I have doubt this code will works I ask ChatGpt and it's says that it will works in Spark version 2.0, Could you help me understand this discrepancy?

crazydev-art avatar Sep 04 '24 13:09 crazydev-art