Unbind metastore config from iceberg and delta lake modules#12595
Conversation
cf30d2d to
9ebbe2b
Compare
a5d8d5d to
367c2e1
Compare
There was a problem hiding this comment.
in Delta this makes little sense to hide Delta tables.
maybe fix Iceberg and Delta in one go?
There was a problem hiding this comment.
this should come from the config
@HideDeltaLakeTables
@Singleton
@Provides
public boolean hideDeltaLakeTables(HiveMetastoreConfig hiveMetastoreConfig)
{
return hiveMetastoreConfig.isHideDeltaLakeTables();
There was a problem hiding this comment.
Ok I considered this but I was not sure about it
43673c2 to
d5f9248
Compare
|
@findepi do you mind taking another look ? |
| new NodeVersion("testversion"), | ||
| hdfsEnvironment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
| new NodeVersion("test_version"), | ||
| hdfsEnvironment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
| .setHideDeltaLakeTables(true) | ||
| .isHideDeltaLakeTables(), |
| { | ||
| binder.bind(IcebergTransactionManager.class).in(Scopes.SINGLETON); | ||
| configBinder(binder).bindConfig(IcebergConfig.class); | ||
| configBinder(binder).bindConfig(HiveMetastoreConfig.class); |
There was a problem hiding this comment.
I think you should be able to just do the same in Delta, right?
you did all the Delta changes anyway.
Just update the commit message and PR title when doing so.
...rg/src/main/java/io/trino/plugin/iceberg/catalog/file/IcebergFileMetastoreCatalogModule.java
Outdated
Show resolved
Hide resolved
| new NodeVersion("test_version"), | ||
| hdfsEnvironment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
There was a problem hiding this comment.
false (as in IcebergHiveMetastoreCatalogModule)
| new NodeVersion("testversion"), | ||
| hdfsEnvironment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
There was a problem hiding this comment.
false (as in IcebergHiveMetastoreCatalogModule)
| new NodeVersion("testversion"), | ||
| hdfsEnvironment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
There was a problem hiding this comment.
false (as in IcebergHiveMetastoreCatalogModule)
| new NodeVersion("testversion"), | ||
| hdfsEnvironment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
There was a problem hiding this comment.
false (as in IcebergHiveMetastoreCatalogModule)
| new NodeVersion("testversion"), | ||
| environment, | ||
| new HiveMetastoreConfig(), | ||
| new HiveMetastoreConfig().isHideDeltaLakeTables(), |
5e95e3a to
02d2029
Compare
There was a problem hiding this comment.
Use TestingIcebergPlugin.HIDE_DELTA_LAKE_TABLES (of course requires moving the constant)
There was a problem hiding this comment.
Use TestingIcebergPlugin.HIDE_DELTA_LAKE_TABLES
There was a problem hiding this comment.
maybe "HIDE_DELTA_LAKE_TABLES_IN_ICEBERG"
so that staticly imported remains unambiguous
(Hive, Iceberg and Delta connectors have overlapping classpaths, so we need to be extra careful)
02d2029 to
305608a
Compare
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: