Commit f900e42
[#10519] fix(postgresql): handle unconstrained NUMERIC type with precision=0
Map unconstrained NUMERIC (no precision/scale) columns to DECIMAL(38, 18)
instead of throwing IllegalArgumentException. PostgreSQL JDBC metadata
returns columnSize=0 for NUMERIC columns without explicit precision, which
was passed directly to Types.DecimalType.of() causing a validation failure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e0572b1 commit f900e42
File tree
2 files changed
+25
-1
lines changed- catalogs/catalog-jdbc-postgresql/src
- main/java/org/apache/gravitino/catalog/postgresql/converter
- test/java/org/apache/gravitino/catalog/postgresql/converter
2 files changed
+25
-1
lines changedLines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
0 commit comments