--
You received this message because you are subscribed to the Google Groups "Onyx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onyx-user+unsubscribe@googlegroups.com.
To post to this group, send email to onyx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onyx-user/accd4880-e57b-4742-9397-57c181466e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to onyx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onyx-user/CALbiitqfasvkuJ1mpPHOLjcinQjkYHEXMrAxF_AzkmA%3DBuzUOA%40mail.gmail.com.
As the aggregation will be performed segment by segment, I would recommend holding the values in a set to avoid an expensive distinct call for each new segment.
Implement a new aggregate (similar to conj) that does distinct and conj in one step: https://github.com/onyx-platform/onyx/blob/0.10.x/src/onyx/windowing/aggregation.cljc#L22-L26
--
You received this message because you are subscribed to the Google Groups "Onyx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onyx-user+unsubscribe@googlegroups.com.
To post to this group, send email to onyx...@googlegroups.com.On Tue, May 2, 2017 at 11:26 PM, Punit Naik <naik.p...@gmail.com> wrote:Hi Guys--I was wondering if I can perform a "distinct" operation on my dataset like in Spark: rdd.distinctI have done a group-by on a particular field and my key values look like thiskey1 -> {:id 1 :string "punit naik"}key1 -> {:id 2 :string "punit naij"}key2 -> {:id 1 :string "punit naik"}key2 -> {:id 2 :string "punit naij"}I want to group by on the keys, collect (conj) all the records and then finally apply a distinct on my collected list of strings so that I end up having only one list: ["punit naik" "punit naij"] in my final dataset.I looked at the aggregation docs but did not find anything on performing a "distinct".Is this achievable in Onyx currently? If yes, how can I do this?
You received this message because you are subscribed to the Google Groups "Onyx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onyx-user+unsubscribe@googlegroups.com.
To post to this group, send email to onyx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/onyx-user/accd4880-e57b-4742-9397-57c181466e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/onyx-user/CALbiitqfasvkuJ1mpPHOLjcinQjkYHEXMrAxF_AzkmA%3DBuzUOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Okay sure.