yuqi1129 commented on PR #15034: URL: https://github.com/apache/gravitino/pull/15034#issuecomment-6977458192
On the H2 column-width suggestion in [the review](https://github.com/apache/gravitino/pull/15034#pullrequestreview-5955666420), I verified the boundary with 128 copies of 😀. H2 reports a character length of 256, accepts the value in `VARCHAR(256)`, and rejects it in `VARCHAR(128)` with SQLSTATE 22001. Narrowing the column would reject a valid glossary name, synonym or source reference. The entity builder validates all three fields against the same 128-Unicode-code-point limit before storage. The backend tests also round-trip 128 supplementary characters in names and source references. The existing H2 widths in both schema scripts are intentional. [Input bounds in the glossary design](https://github.com/apache/gravitino/blob/42ad61e9bdf6a6f28b0ba86b1358152cdf3c71f8/design-docs/glossary-design.md#L194-L200) -- 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]
