laserninja opened a new pull request, #13162: URL: https://github.com/apache/gravitino/pull/13162
### What changes were proposed in this pull request? Pass JDBC column length into the bpchar element conversion for PostgreSQL arrays. Add converter and catalog integration regression tests for CHAR(5)[]. ### Why are the changes needed? Loading a table containing CHAR(n)[] currently throws NullPointerException because array conversion discards the length required by FixedCharType. Fixes #13159 ### Does this PR introduce _any_ user-facing change? PostgreSQL CHAR(n)[] columns load as lists of CHAR(n) with nullable elements. No public API or configuration changes. ### How was this patch tested? `JAVA_HOME=<JDK17> ./gradlew :catalogs:catalog-jdbc-postgresql:spotlessApply :catalogs:catalog-jdbc-postgresql:build -PskipITs --max-workers=2` passed (47 tests). The new converter test failed before the fix. Against a live PostgreSQL 18 database, catalog table operations returned exactly list<char(5)> and preserved the decimal(10,2) control. The new catalog integration test compiled; the full Docker integration suite was not run. -- 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]
