zhang-arvin opened a new pull request, #13167: URL: https://github.com/apache/gravitino/pull/13167
### What changes were proposed in this pull request? PostgreSQL reports array element metadata (length, scale, precision, via atttypmod) on the array column itself and has no dedicated element metadata. `toGravitinoArrayType` rebuilt the element bean from the type name only, so `BPCHAR`/`VARCHAR` elements unboxed a null column size and table loading failed with a NullPointerException. Propagate the column bean's size, scale and datetime precision to the element bean so `CHAR(n)[]` and similar arrays convert to the correct element type. ### Why are the changes needed? Fixes #13159 ### How was this patch tested? - Added `TestPostgreSqlTypeConverter#testCharArrayArrayType` covering `_bpchar` and `_varchar` element conversions with column size propagation. - Existing converter tests unchanged. -- 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]
