beliefer commented on PR #44398: URL: https://github.com/apache/spark/pull/44398#issuecomment-1862468433
> Where does `Decimal precision 42` come from? It comes from https://github.com/apache/spark/blob/dc0bfc4c700c347f2f58625facec8c5771bde59a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala#L416 The schema is `DecimalType(38, 38)` and the data returns from H2 is `java.math.BigDecimal(7, 2)`. d = java.math.BigDecimal(7, 2) p = 38 s = 38 The `Decimal(d, p, s)` causes the exception. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
