COLDMANYU commented on issue #11096: URL: https://github.com/apache/paimon/issues/11096#issuecomment-7121714928
Thanks @junmuz. I'll send a PR for 1: create `paimon_table_properties` only when `sync-all-properties` is true. Every read and write of the table is already behind that option, and the table only mirrors table options for external tools; the catalog itself reads options from the schema files, so nothing else changes when it is off. I'd leave 2 out of this PR. A single length option like `lock-key-max-length` would have to shorten all four key columns: on `utf8mb4` the first three already take 3060 of the 3072 bytes, so shortening only `property_key` leaves room for 3 characters, and shortening the database and table names makes tables that `paimon_tables` accepts fail when their properties are written. Since the catalog only creates the table when it is missing, a deployment that wants the sync on MySQL `utf8mb4` can create it beforehand with lengths that suit it. With 1 alone, the default setup on MySQL `utf8mb4` still fails at startup, so I'd also make that failure point to these two options. Happy to change the approach if you or the maintainers prefer something else. -- 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]
