Closed otfrom closed 8 months ago
@genmeblog just wondering if I'm "holding it wrong" or if this should work. We have some code where we do things like read years from csv files as :int16
but when we do a dec
or inc
on them they get promoted to :int64
and then don't join.
I like the idea of providing test cases as a bug issue. Thanks.
TMD fails on this case too:
(-> (j/left-join :z
(ds/->dataset [{:z ["foo" (short 2022)]}])
(ds/->dataset [{:z ["foo" (long 2022)] :s "2022"}
{:z ["foo" (long 2023)] :s "2023"}])))
;; => left-outer-join [2 3]:
;; | :z | :right.z | :s |
;; |--------------|--------------|------|
;; | ["foo" 2022] | ["foo" 2022] | 2022 |
;; | ["foo" 2022] | | |
converting to int-16 can make the left-joins fail