Sunday 8 January 2017

Difference between filter and where in scala spark sql ?

Filters rows using the given condition. This is an alias for filterwhere Docmentation

There is no confusion in Filter and where in spark sql since both gives same result.

// The following are equivalent:
employee.filter($"age" > 15)
employee.where($"age" > 15)
employees.filter($"emp_id".isin(items:_*)).show
employees.where($"emp_id".isin(items:_*)).show

Result is same for the both
 Filter is simply the standard Scala name for such a function, and where is for people who prefer SQL.

24 comments:

  1. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
    digital marketing training in marathahalli

    digital marketing training in rajajinagar

    Digital Marketing Training in online


    full stack developer training in pune


    full stack developer training in annanagar

    ReplyDelete
  2. I have visited this blog first time and i got a lot of informative data from here which is quiet helpful for me indeed. 
    Rprogramming Training in velachery

    Rprogramming online Training

    Rprogramming Training

    r-programming Training in Bangalore

    ReplyDelete
  3. Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
    Python training in marathahalli
    AWS Training in chennai

    AWS Training in bangalore

    ReplyDelete
  4. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us
    Blueprism training in Pune

    Blueprism online training

    Blue Prism Training in Pune

    ReplyDelete
  5. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune

    ReplyDelete
  6. Thank you for sharing such great information with us. I really appreciate everything that you’ve done here and am glad to know that you really care about the world that we live in.
    German Classes in Chennai
    Java Training in Chennai
    best german classes in chennai
    German language training in chennai
    Java Coaching Center in Chennai
    Best Java Training in Chennai

    ReplyDelete
  7. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

    Best AWS Training in Chennai | Amazon Web Services Training in Chennai

    AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR


    AWS Training in Chennai |Best Amazon Web Services Training in Chennai


    AWS Training in Velachery | Best AWS Course in Velachery,Chennai

    ReplyDelete
  8. Very nice blog,keep sharing more posts with us.
    thank you for info..

    big data hadoop training

    ReplyDelete
  9. This is an awesome article a debt of gratitude is in order for sharing this useful data. I will visit your web journal consistently for some most recent post.
    forex warez

    ReplyDelete
  10. “Nice Post. It’s really a very good article. I noticed all your important points. Thanks"
    good forex uk

    ReplyDelete
  11. Automated Forex Trading With ETRADE LOG ON Metatrader 4 - Download .

    ReplyDelete