Revision cb8de35b749e8e2ff3d0667be3e933c682c528ee authored by kylerong-db on 18 August 2023, 18:07:21 UTC, committed by Gengliang Wang on 18 August 2023, 18:07:30 UTC
### What changes were proposed in this pull request?
Previously, if a view's schema contains a nested struct, alterTable using Hive client will fail. This change supports a view with a nested struct. The mechanism is to store an empty schema when we call Hive client, since we already store the actual schema in table properties. This fix is similar to https://github.com/apache/spark/pull/37364

### Why are the changes needed?
This supports using view with nested structs in Hive metastore.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Added unit test.

Closes #42532 from kylerong-db/hive_view.

Authored-by: kylerong-db <kyle.rong@databricks.com>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
(cherry picked from commit c7d63eac48d3a81099456360f1c30e6049824749)
Signed-off-by: Gengliang Wang <gengliang@apache.org>
1 parent b24dbc9
History

README.md

back to top