Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException when using into on Instant column #413

Closed
mk opened this issue Sep 2, 2024 · 1 comment
Closed

ClassCastException when using into on Instant column #413

mk opened this issue Sep 2, 2024 · 1 comment

Comments

@mk
Copy link

mk commented Sep 2, 2024

We're running into a ClassCastException when using a tech.v3.dataset with Clerk, originally reported as nextjournal/clerk#677. Here's a small repro using techascent/tech.ml.dataset {:mvn/version "7.030"}:

(require '[tech.v3.dataset :as ds])

(def ds
  (ds/->dataset {:x (range 5)
                 :y (repeatedly 5 #(java.time.Instant/now))}))

(into [] (take 3) (:x ds)) ;; works
(into [] (take 3) (:y ds)) ;; throws ClassCastException: class clojure.lang.Reduced cannot be cast to class clojure.lang.ITransientCollection (clojure.lang.Reduced and clojure.lang.ITransientCollection are in unnamed module of loader 'app')

Is this expected behavior or a bug that could be fixed?

@cnuernber
Copy link
Collaborator

Yes I believe it is a bug; we will look into it - thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants