Description
The below statements give compiler errors as
a) the select method doesnot accept String, Column
df.select("name", df("age") + 1).show() // Need to convert String to Column
b) Filtering should be based on "age" not on "name" Column
df.filter(df("name") > 21).show()
Attachments
Issue Links
- is duplicated by
-
SPARK-7607 Spark SQL prog guide code error
- Closed
- links to