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
File | Mode | Size |
---|---|---|
.github | ||
R | ||
assembly | ||
bin | ||
binder | ||
build | ||
common | ||
conf | ||
connector | ||
core | ||
data | ||
dev | ||
docs | ||
examples | ||
graphx | ||
hadoop-cloud | ||
launcher | ||
licenses | ||
licenses-binary | ||
mllib | ||
mllib-local | ||
project | ||
python | ||
repl | ||
resource-managers | ||
sbin | ||
sql | ||
streaming | ||
tools | ||
.asf.yaml | -rw-r--r-- | 1.3 KB |
.gitattributes | -rw-r--r-- | 130 bytes |
.gitignore | -rw-r--r-- | 1.8 KB |
CONTRIBUTING.md | -rw-r--r-- | 997 bytes |
LICENSE | -rw-r--r-- | 13.1 KB |
LICENSE-binary | -rw-r--r-- | 22.4 KB |
NOTICE | -rw-r--r-- | 2.0 KB |
NOTICE-binary | -rw-r--r-- | 56.5 KB |
README.md | -rw-r--r-- | 4.5 KB |
appveyor.yml | -rw-r--r-- | 2.8 KB |
pom.xml | -rw-r--r-- | 138.8 KB |
scalastyle-config.xml | -rw-r--r-- | 23.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...