Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hive.hive-views.run-as-invoker handling with legacy view translation
Prevent ViewReaders from passing view owner to ConnectorViewDefinition constructor, as it may fail the sanity check. The owner is added later on in HiveMetadata class Also add product test for `hive.hive-views.run-as-invoker` config option. Unit tests will not work here since we need to create a hive view not via Trino. Co-authored-by: Joe Chu <5282594+joechu1@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ources/docker/presto-product-tests/common/hadoop/hive_with_run_view_as_invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
connector.name=hive | ||
hive.metastore.uri=thrift://hadoop-master:9083 | ||
hive.config.resources=/docker/presto-product-tests/conf/presto/etc/hive-default-fs-site.xml | ||
hive.metastore-cache-ttl=0s | ||
hive.fs.cache.max-size=10 | ||
hive.hive-views.enabled=true | ||
hive.hive-views.run-as-invoker=true | ||
hive.security=sql-standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters