lasdf1234 commented on PR #14972: URL: https://github.com/apache/gravitino/pull/14972#issuecomment-7089880171
**Re: `query_digest`** Storing the canonical query string in plaintext looks fine for this table. Iceberg REST mutations rarely put secrets in the query string, and we already persist the full response body in `response_summary`, which is usually more sensitive than query params. Path is already stored in plaintext in `request_uri` as well. We still need the **query to be part of the operation binding** (same key + same path + different query must not replay). What we do **not** need is a dedicated SHA-256 column for that. Suggestion: 1. Drop the hash in `operationBinding`; keep sorted/encoded query as-is. 2. Either fold `?<canonical-query>` into `request_uri`, or rename the column to something like `query_string` (`TEXT`, nullable) if we want method/path/query split for readability. `query_digest` as a hashed, fixed-width column is optional hygiene, not required for correctness. Happy to simplify unless there is a concrete reason to avoid persisting caller query values. -- 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]
