Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution

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

 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

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
Highlighted

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

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

Don't have an account?
Coming from Hortonworks? Activate your account here