Remove HiveConfig from Iceberg module#12506
Conversation
ba87988 to
fbcc078
Compare
fbcc078 to
4e2b9c2
Compare
There was a problem hiding this comment.
It's not metastore-related. isTranslateHiveViews is used in HiveMetadata.
What would happen if you move this back to HiveConfig?
There was a problem hiding this comment.
I guess this use-place is the reason why you moved the config from HiveConfig to metastoreConfig.
However, we don't need this configurable in iceberg. There is no concept of "hive views" in Iceberg.
- we may be able to solve this using a technique like
@MaxDomainCompactionThreshold - add a
TestIcebergPlugintest that configuring connector withhive.hive-views.enabledfails
There was a problem hiding this comment.
Ok my bad, I was pretty sure iceberg needs this. Thanks
4e2b9c2 to
a004720
Compare
build is failing locally. Do note that the branch has conflicts with |
df9d6b6 to
5f1dab8
Compare
There was a problem hiding this comment.
Looks like extension point, but Delta doesn't need to create extension points. At best, Hive would do this.
what about
binder.bind(Key.get(boolean.class, TranslateHiveViews.class)).toInstance(false);There was a problem hiding this comment.
tough I guess it is not needed for delta lake as there is still hive config there
There was a problem hiding this comment.
because I didn't understand the idea...
There was a problem hiding this comment.
Why Optional? it's always either true or false
| @TranslateHiveViews Optional<Boolean> translateHiveViews) | |
| @TranslateHiveViews boolean translateHiveViews) |
There was a problem hiding this comment.
also, this class takes HiveConfig hiveConfig, so if the fields goes back there (as it should), remove the new paramater.
There was a problem hiding this comment.
Why Optional? it's always either true or false
| @TranslateHiveViews Optional<Boolean> translateHiveViews, | |
| @TranslateHiveViews boolean translateHiveViews) |
There was a problem hiding this comment.
Define a constant so that the test always uses a correct config property name
d42c963 to
358abb3
Compare
There was a problem hiding this comment.
If this is Thrift specific, it can go in IcebergHiveMetastoreCatalogModule
There was a problem hiding this comment.
i see thjis added to IcebergHiveMetastoreCatalogModule.java but not removed here
358abb3 to
f58e8b1
Compare
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeModule.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
There was a problem hiding this comment.
new HiveConfig().isTranslateHiveViews()
There was a problem hiding this comment.
new HiveConfig().isTranslateHiveViews()
There was a problem hiding this comment.
new HiveConfig().isTranslateHiveViews()
There was a problem hiding this comment.
new HiveConfig().isTranslateHiveViews()
There was a problem hiding this comment.
i see thjis added to IcebergHiveMetastoreCatalogModule.java but not removed here
There was a problem hiding this comment.
The constant has value only if used in @Config annotation value of the io.trino.plugin.hive.HiveConfig#setTranslateHiveViews method.
f58e8b1 to
b11f77f
Compare
|
CI #11848 |
| } | ||
|
|
||
| @LegacyConfig("hive.target-max-file-size") | ||
| @Config("iceberg.target-max-file-size") |
There was a problem hiding this comment.
I will submit a pr. Thanks for pointing it out
Description
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: