lasdf1234 commented on issue #14428: URL: https://github.com/apache/gravitino/issues/14428#issuecomment-6732207041
@markhoerth Thanks for the reopen and for calling out the OSS check. The remaining failure on `test_unknown_or_miscased_policy_type_named_in_error[SYSTEM_ICEBERG_COMPACTION]` (expected 400, got 200) is intentional with the current fix, not a partial regression. For known built-in `policyType` values, Gravitino accepts the id case-insensitively on create/update and stores/returns the canonical lowercase form (e.g. `SYSTEM_ICEBERG_COMPACTION` → `system_iceberg_compaction`). That matches the project REST convention elsewhere: the server `ObjectMapper` enables `ACCEPT_CASE_INSENSITIVE_ENUMS` (and writes enums lowercase), so similar wire enums such as catalog `type` are also case-insensitive on the API. `policyType` is a string + content polymorphism rather than a Jackson enum, so #14520 aligned that path the same way. This approach was also discussed with @mchads. Unknown / typo types such as `system_iceberg_bogus` still return 400 and name the type. Only the mis-cased-but-known built-in case is accepted. Could you update the OSS suite so mis-cased known types expect 200 (canonical lowercase in the response), while keeping the 400 expectation for truly unknown types? Happy to adjust if you intended strict canonical-only matching instead. -- 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]
