Open universalmind303 opened 4 days ago
Good catch, tagging it as p1 to mark as a priority
Unassigning myself as I thought it'd be a quick fix and just add Decimal128
to get_supertype
, but it looks like there's some issues when casting values to the supertype of Int128
.
For more context, I tried updating get_supertype
to cast (Decimal128(_,_), <numeric type>) => Int128
but for some reason the physical arrow type for Int128
is ArrowType::Decimal(32,32)
, and casting 300
to Decimal(32,32)
results in None
.
So there's definitely some funky stuff happening in our cast logic here. pinging @colin-ho since you recently did some work on cleaning up the casting logic.
Describe the bug A clear and concise description of what the bug is.
To Reproduce
Expected behavior the where clause should succeed with an implicit cast
should be equivalent to