Skip to content

Commit 877c7eb

Browse files
committed
Fixes #413 - Issue with reduce an packed columns
1 parent 07a31c7 commit 877c7eb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{:paths ["src" "resources" "target/classes"]
22
:deps {;;org.clojure/clojure {:mvn/version "1.11.1"}
3-
cnuernber/dtype-next {:mvn/version "10.115"}
3+
cnuernber/dtype-next {:mvn/version "10.116-SNAPSHOT"}
44
techascent/tech.io {:mvn/version "4.31"
55
:exclusions [org.apache.commons/commons-compress]}
66
org.apache.datasketches/datasketches-java {:mvn/version "4.2.0"}

test/tech/v3/dataset_test.clj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,12 @@
17551755
(is (= (range 5)
17561756
(bitmap/->random-access (ds/missing subcol))))))
17571757

1758+
1759+
(deftest issue-413-reduction-on-instant-column
1760+
(let [ds (ds/->dataset {:x (range 5)
1761+
:y (repeatedly 5 #(java.time.Instant/now))})]
1762+
(is (= 3 (count (into [] (take 3) (:y ds)))))))
1763+
17581764
(comment
17591765
(require '[criterium.core :as crit])
17601766
(def data (vec (repeatedly 100000 (fn [] {:a (rand-int 20) :b (rand) :c (rand)}))))

0 commit comments

Comments
 (0)