yuqi1129 opened a new pull request, #14800:
URL: https://github.com/apache/gravitino/pull/14800

   ### What changes were proposed in this pull request?
   
   - Reject non-null `defaultCatalog` and `defaultSchema` for the Spark dialect 
in `HiveViewCatalogOperations`, as the `hive` and `flink` dialects already do. 
The check covers both create and `replaceView`.
   - Move the shared check into a private helper.
   - Pass `null` defaults in the two `SparkHiveCatalogIT` fixtures that set 
them. Their SQL is fully qualified, so the values had no effect.
   
   ### Why are the changes needed?
   
   The Hive catalog does not store these values for Spark views, so requests 
succeeded while the values were silently discarded.
   
   Fix: #14799
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Creating or replacing a Spark-dialect Hive view with a non-null 
`defaultCatalog` or `defaultSchema` now returns HTTP 400 instead of succeeding 
and dropping the values.
   
   ### How was this patch tested?
   
   - Added unit tests for create (catalog only, schema only, and both) and for 
`replaceView`, and confirmed they fail without the fix.
   - `TestHiveCatalogOperations` and `TestHiveView` pass.
   - `SparkHiveCatalogIT` compiles; it runs in CI.
   


-- 
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]

Reply via email to