Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

What is the significance of $ in this filter statement val result = file1.select("Name","Age").filter($"Age">30).show()

 
1 ACCEPTED SOLUTION

Super Collaborator

it's defining a columnname in the filter condition. So in your case it means nothing else then column with the name Age.

View solution in original post

1 REPLY 1

Super Collaborator

it's defining a columnname in the filter condition. So in your case it means nothing else then column with the name Age.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.