Search before asking
Paimon version
master @ a5e87eb (2.1-SNAPSHOT)
Compute Engine
Engine-agnostic — any engine using the Paimon Hive catalog
Minimal reproduce step
Through a Paimon Hive catalog, run CREATE TABLE t (c INT COMMENT '<300 characters>').
HiveCatalog.convertToFieldSchema() (paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java) passes DataField.description() to FieldSchema unchanged, but the metastore maps COLUMNS_V2.COMMENT to VARCHAR(256) in package.jdo.
What doesn't meet your expectations?
Expected: the table is created. Actual: Paimon writes the schema file, then the metastore rejects the insert and the statement fails:
RuntimeException: Failed to create table db.t
-> MetaException: Add request failed : INSERT INTO COLUMNS_V2 ...
-> SQLDataException: A truncation error was encountered trying to shrink VARCHAR '...' to length 256.
Anything else?
The sibling path IcebergHiveMetadataCommitter.convertToFieldSchema() in the same module already normalizes comments (#8223, #8918). HiveCatalog was missed by both fixes.
Are you willing to submit a PR?
Search before asking
Paimon version
master @ a5e87eb (2.1-SNAPSHOT)
Compute Engine
Engine-agnostic — any engine using the Paimon Hive catalog
Minimal reproduce step
Through a Paimon Hive catalog, run
CREATE TABLE t (c INT COMMENT '<300 characters>').HiveCatalog.convertToFieldSchema()(paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java) passesDataField.description()toFieldSchemaunchanged, but the metastore mapsCOLUMNS_V2.COMMENTtoVARCHAR(256)inpackage.jdo.What doesn't meet your expectations?
Expected: the table is created. Actual: Paimon writes the schema file, then the metastore rejects the insert and the statement fails:
Anything else?
The sibling path
IcebergHiveMetadataCommitter.convertToFieldSchema()in the same module already normalizes comments (#8223, #8918).HiveCatalogwas missed by both fixes.Are you willing to submit a PR?