Skip to content

Tags: nathanmarz/cascalog

Tags

2.1.1

Toggle 2.1.1's commit message
fix newline in VERSION

2.0.0

Toggle 2.0.0's commit message
release 2.0.0

1.10.2

Toggle 1.10.2's commit message
release 1.10.2

1.10.1

Toggle 1.10.1's commit message
Merge branch 'release/1.10.1'

1.9.0

Toggle 1.9.0's commit message
Release 1.9.0

1.8.7

Toggle 1.8.7's commit message
Release 1.8.7

1.8.6

Toggle 1.8.6's commit message
* "Call to unbound-fn" Error solved. To use functions within Cascalog…

… queries, hadoop needed to call "require" on the containing namespace. If you define functions at the repl, the namespace file might not exist, and this call will fail; previously, Cascalog would squash these exceptions.

This fix explicitly checks namespace existence, letting all others errors pass through. Anyone seeing an "unbound fn" exception will now see some far more enlightening exception about what's wrong with the namespace.

* Anything that implements IFn can now be used as an op, provided it's bound to a var. For example, `(def is-bob? #{"bob"})` is now a valid predicate.

* Vars can now be serialized as op parameters or constants. For example,

```clojure
;; Vars as parameter args
(defmapop var-apply [v]
   [& xs]
   (apply v xs))

(fact?<- [[1 2 3]]
         [?x ?y ?z]
         ([[1 2]] ?x ?y)
         (var-apply [#'+] ?x ?y :> ?z))

;; Vars as constants
(def coll-src
    [[[3 2 4 1]]
     [[1 2 3 4 5]]])

(fact?<- [[10] [15]]
         [?sum]
         (coll-src ?coll)
         (reduce #'+ ?coll :> ?sum))
```

* Added explicit Kryo serialization for `java.util.regex.Pattern`.
* Kryo serialization now captures objects without default constructors.
* MemorySourceTap (and data structures) now use Hadoop's serialization mechanisms, vs defaulting to Kryo.