Skip to content

Conversation

@dain
Copy link
Member

@dain dain commented Mar 15, 2024

Description

More refactoring and simplifications.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@dain dain requested a review from electrum March 15, 2024 21:49
@cla-bot cla-bot bot added the cla-signed label Mar 15, 2024
@github-actions github-actions bot added tests:hive hudi Hudi connector iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector labels Mar 15, 2024
@dain dain force-pushed the metastore-cleanups branch from 7e0617e to 08f97a0 Compare March 15, 2024 21:55
@dain dain force-pushed the metastore-cleanups branch from 08f97a0 to 85df3aa Compare March 16, 2024 02:37
dain added 2 commits March 15, 2024 20:20
ThriftHiveMetastore uses getTableMeta which returns table name, table
type and comment. This can be used to determine if the table is a
regular table, view, or materialized view, and for the latter two, the
comment can determine if it is a Trino view.
For Glue and file metastores, the full table information is already
available.
This simplifies the metastore cache and makes it more effective since
each schema has a separate cache which expires independently. This also
removes the risk of the all-tables and schema specific caches being out
of sync.
This method was only implemented by the ThriftHiveMetstore. In large
installations this is often disabled because the Thrift response can be
too large. For installations with a large number of schemas, this will
increase HMS request count for clients listing all tables and all
columns. This may or may not increase backing database load since, the
smaller requests may be easier to process. It is recommended that the
metastore cache be enabled for installations concerned about this
potential increase in load.
@dain dain force-pushed the metastore-cleanups branch from 85df3aa to 6c91f68 Compare March 16, 2024 03:51
@dain dain merged commit cb4d168 into trinodb:master Mar 16, 2024
@dain dain deleted the metastore-cleanups branch March 16, 2024 04:48
@github-actions github-actions bot added this to the 443 milestone Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector hive Hive connector hudi Hudi connector iceberg Iceberg connector

Development

Successfully merging this pull request may close these issues.

2 participants