Skip to content

Commit

Permalink
Fixes #410 - json parsing fails if parser-fn option is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Sep 12, 2024
1 parent bd8dacb commit 4b09b85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tech/v3/dataset/io.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@
(input-stream-or-reader data))]
;;Use mixed json parse profile as we don't care if the input is immutable or mutable and
;;mixed has the best performance.
(let [options (assoc options :profile :mutable)]

(let [options (-> (assoc options :profile :mutable)
;; the charred read-json call has another interpretation of parser-fn
;; that is incompatible with the tmd one.
(dissoc :parser-fn))]
(->> (apply charred/read-json is (apply concat (seq options)))
(parse-mapseq-colmap/mapseq->dataset options)))))

Expand Down

0 comments on commit 4b09b85

Please sign in to comment.