File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 266
266
; ;select may be slower if we have to recalculate missing values.
267
267
(lznc/map #(ds-proto/select-rows % rowidxs))
268
268
(new-dataset (ds-proto/dataset-name dataset)
269
- (dissoc metadata :print-index-range )))))
269
+ (if-not (identical? :all (get metadata :print-index-range ))
270
+ (dissoc metadata :print-index-range )
271
+ metadata)))))
270
272
271
273
272
274
ds-proto /PSelectColumns
Original file line number Diff line number Diff line change 1761
1761
:y (repeatedly 5 #(java.time.Instant/now ))})]
1762
1762
(is (= 3 (count (into [] (take 3 ) (:y ds)))))))
1763
1763
1764
+
1765
+ (deftest issue-432-issue-371
1766
+ (let [sds (ds/print-all (ds/->dataset {:x (repeatedly 50 rand)}))]
1767
+ (is (= :all (:print-index-range (meta (ds/sort-by-column sds :x )))))
1768
+ (is (= :all (:print-index-range (meta (ds/filter-column sds :x pos?)))))))
1769
+
1764
1770
(comment
1765
1771
(require '[criterium.core :as crit])
1766
1772
(def data (vec (repeatedly 100000 (fn [] {:a (rand-int 20 ) :b (rand ) :c (rand )}))))
You can’t perform that action at this time.
0 commit comments