mmoradi0101 opened a new pull request, #4872: URL: https://github.com/apache/calcite/pull/4872
## Jira Link [CALCITE-6654](https://issues.apache.org/jira/browse/CALCITE-6654) ## Changes Proposed `JdbcSchema.sqlType()` threw an `IllegalArgumentException` when a column was declared without explicit precision. Oracle reports `precision=0` and `scale=-127` for such columns (e.g. `NUMBER`), PostgreSQL and MSSQL report `precision=0` and `scale=0` (e.g. `NUMERIC`, `DECIMAL`). Treat `precision=0` (and Oracle's `scale=-127`) as "no precision specified" and fall back to the plain SQL type instead of throwing. ## Testing Added `JdbcSchemaDecimalBugTest` with 4 integration tests covering Oracle, PostgreSQL, MSSQL, and a regression test for explicit `DECIMAL(10,2)`. -- 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]
