Re: is it possible to join on lazy seqs?

2013-07-17 Thread Niels van Klaveren
Perhaps you could post a minimal example of the two datasets you're trying to join ? To do multiple types of joins (left, right, inner, natural & cross) on collections of maps/records, I use Sean Devlin's table-utils library. There's no jar, but there's instructions on how to make a version wit

Re: is it possible to join on lazy seqs?

2013-07-16 Thread mond
I am trying to produce a list of records where the keys match. It makes sense to me ;-) The examples from the docs show this: *(join animals personalities {:kind :species}) * and the third argument is a key map to show which fields from the two collections should be treated as the same key * *

Re: is it possible to join on lazy seqs?

2013-07-16 Thread Michael Klishin
2013/7/16 mond > check-delta-feeds.core=> (set/join changed-records feed-entries {:ID > :dh-uuid}) > ClassCastException clojure.lang.LazySeq cannot be cast to java.util.Map > clojure.lang.RT.find (RT.java:733) > You can use clojure.set/join on lazy sequences but joining a list (produced by a se

is it possible to join on lazy seqs?

2013-07-16 Thread mond
Sorry if this is a RTFM style question ... this is what I have in terms of types and was wondering if there is another form of join or another library / collection combination that can achieve the same relational join? Thanks in advance, Ray check-delta-feeds.core=> (def changed-records (map f