-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#3403] fix(hive-catalog): add hive catalog property list-all-tables #3703
[#3403] fix(hive-catalog): add hive catalog property list-all-tables #3703
Conversation
...alog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogPropertiesMeta.java
Outdated
Show resolved
Hide resolved
Can you please fix the style issue? |
…abless ,modify property desc(apache#3403)
…mygrsun/gravitino into bugfix/3403-hiveinclude-iceberg
...alog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogPropertiesMeta.java
Outdated
Show resolved
Hide resolved
...alog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogPropertiesMeta.java
Outdated
Show resolved
Hide resolved
.../catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java
Outdated
Show resolved
Hide resolved
It's recommended to add a test in |
You could use |
.../catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java
Show resolved
Hide resolved
...alog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogPropertiesMeta.java
Outdated
Show resolved
Hide resolved
.../catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java
Outdated
Show resolved
Hide resolved
could you fix the ci errror? |
@@ -36,6 +36,10 @@ public class HiveCatalogPropertiesMeta extends BaseCatalogPropertiesMetadata { | |||
|
|||
public static final String FETCH_TIMEOUT_SEC = "kerberos.keytab-fetch-timeout-sec"; | |||
|
|||
public static final String LIST_ALL_TABLES = "list-all-tables"; | |||
|
|||
public static final boolean DEFAULT_LIST_ALL_TABLES = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to potential performance issues that table filters may introduce when there are many tables, we should set the default value to true
, and the default true
also align with Hive client behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
talked with @mchades, we could remove the list-all-tables
parameters and the default action is list only hive tables because we already need to get table meta data when listing table for now. If encountering performance issues we could add a parameter to control whether get all tables, but we could do track it in another issue.
...alog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogPropertiesMeta.java
Outdated
Show resolved
Hide resolved
Overall LGTM, could you please resolve this comment? |
I don't have time to do this, I have tested this feature manualy. So ,can it be merged in advance? |
thankx, |
If so, could you please open a new issue to track this? thanks! |
#3783 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contributions!
@FANNG1 do you want to take another look?
LGTM |
…3703) <!-- 1. Title: [#<issue>] <type>(<scope>): <subject> Examples: - "[#123] feat(operator): support xxx" - "[#233] fix: check null before access result in xxx" - "[MINOR] refactor: fix typo in variable name" - "[MINOR] docs: fix typo in README" - "[#255] test: fix flaky test NameOfTheTest" Reference: https://www.conventionalcommits.org/en/v1.0.0/ 2. If the PR is unfinished, please mark this PR as draft. --> ### What changes were proposed in this pull request? Add a Hive catalog property "list-all-tables". Using this property to control whether the Iceberg table is displayed in the Hive table list. ### Why are the changes needed? The bug is a schema has the Iceberg tables in the Hive catalog Fix: #3403 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? 1.create a hive catalog with "list-all-tables " property. 2.crate a database and a iceberg table in the catalog by hive beeline 3.check whether the table is displayed in the catalog . --------- Co-authored-by: ericqin <[email protected]>
…ables (apache#3703) <!-- 1. Title: [#<issue>] <type>(<scope>): <subject> Examples: - "[apache#123] feat(operator): support xxx" - "[apache#233] fix: check null before access result in xxx" - "[MINOR] refactor: fix typo in variable name" - "[MINOR] docs: fix typo in README" - "[apache#255] test: fix flaky test NameOfTheTest" Reference: https://www.conventionalcommits.org/en/v1.0.0/ 2. If the PR is unfinished, please mark this PR as draft. --> ### What changes were proposed in this pull request? Add a Hive catalog property "list-all-tables". Using this property to control whether the Iceberg table is displayed in the Hive table list. ### Why are the changes needed? The bug is a schema has the Iceberg tables in the Hive catalog Fix: apache#3403 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? 1.create a hive catalog with "list-all-tables " property. 2.crate a database and a iceberg table in the catalog by hive beeline 3.check whether the table is displayed in the catalog . --------- Co-authored-by: ericqin <[email protected]>
What changes were proposed in this pull request?
Add a Hive catalog property "list-all-tables". Using this property to control whether the Iceberg table is displayed in the Hive table list.
Why are the changes needed?
The bug is a schema has the Iceberg tables in the Hive catalog
Fix: #3403
Does this PR introduce any user-facing change?
N/A.
How was this patch tested?
1.create a hive catalog with "list-all-tables " property.
2.crate a database and a iceberg table in the catalog by hive beeline
3.check whether the table is displayed in the catalog .