Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code works under Spark 2.0 version #73

Open
crazydev-art opened this issue Sep 4, 2024 · 0 comments
Open

code works under Spark 2.0 version #73

crazydev-art opened this issue Sep 4, 2024 · 0 comments

Comments

@crazydev-art
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant