[FEA][JSON] Respect allowNumericLeadingZeros
in from_json
#9588
Labels
task
Work required that improves the product but is not user facing
Is your feature request related to a problem? Please describe.
Our implementation of
from_json
supports leading zeros for numeric values, but Spark does not support this with the default setting ofallowNumericLeadingZeros=false
, so we are not compatible.Describe the solution you'd like
We should respect this setting, or fall back to CPU if the schema asks for numeric values and
allowNumericLeadingZeros=false
.We have a test
test_from_json_struct
that contains a reference to this issue and should be updated once this issue is resolved.Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: