Interesting question

14 views
Skip to first unread message

Ron Gonzalez

unread,
Aug 26, 2015, 6:47:25 PM8/26/15
to cascading-user
Question:

I have multiple data that looks like the following

ID            LastUpdatedDate   Value1
1              10/21/2015               a
1              10/22/2015               b
1              10/22/2015               c
2              10/23/2015               d
2              10/22/2015               e
3              10/22/2015               f
3              10/24/2015               g
3              10/22/2015               h
3              10/21/2015               i


I basically want to do a partition by ID and pick the last item item in the partition ordered by LastUpdatedDate, so the data will look like the following:

ID            LastUpdatedDate   Value1
1             10/22/2015               b (or c)
2             10/23/2015               d
3             10/24/2015               g

I'll start reading up on the different things I can do with a GroupBy, but if someone's solved this with native Cascading operations, please give me a holler...

Thanks,
Ron

Andre Kelpe

unread,
Aug 27, 2015, 5:43:17 AM8/27/15
to cascading-user

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/4fbc3372-4e1d-48dc-b1e4-acbaa8bdd547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Ron Gonzalez

unread,
Aug 27, 2015, 1:17:47 PM8/27/15
to cascadi...@googlegroups.com
Thanks Andre...
You received this message because you are subscribed to a topic in the Google Groups "cascading-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cascading-user/oBnBoesqqjE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cascading-use...@googlegroups.com.

To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cascading-user.
Reply all
Reply to author
Forward
0 new messages