I have code that calls cast_with_options to cast Decimal128(7, 2) to Dictionary<Int32, Decimal128(7,2)> but it actually produces Dictionary<Int32, Decimal128(38, 10)>.
I can see that this is because we ignore the precision and scale in the code in cast_to_dictionary:
Describe the bug
I have code that calls
cast_with_options
to castDecimal128(7, 2)
toDictionary<Int32, Decimal128(7,2)>
but it actually producesDictionary<Int32, Decimal128(38, 10)>
.I can see that this is because we ignore the precision and scale in the code in
cast_to_dictionary
:To Reproduce
Expected behavior
Additional context