Skip to content
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

[Hive] HiveCatalog: Table StorageDescriptor location and control HMS FileSystem scan. #2760

Closed
wants to merge 2 commits into from

Conversation

hongyonggan
Copy link

  1. fix alter hive Table StorageDescriptor location is empty issue;
  2. Add a switch for statistics on file information under Hive Metastore table location, skip HMS FileSystem scan.

Purpose

Linked issue: close #2729

Tests

API and Format

Documentation

1. fix alter hive Table StorageDescriptor location is empty issue;
2. Add a switch for statistics on file information under Hive Metastore table location, skip HMS FileSystem scan.
environmentContext.putToProperties(
StatsSetupConst.DO_NOT_UPDATE_STATS, StatsSetupConst.TRUE);
}
client.alter_table_with_environmentContext(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we need to support multiple versions of hive, can the alter here be done using reflection and compatible with multiple versions?

You can take a look to iceberg: org.apache.iceberg.hive.MetastoreUtil.

@@ -52,5 +52,13 @@ public final class HiveCatalogOptions {
+ "If you don't want to access the location by the filesystem of hive when using a object storage such as s3,oss\n"
+ "you can set this option to true.\n");

public static final ConfigOption<Boolean> TABLE_STATS_SKIP =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this, always skip Hive stats.

@JingsongLi
Copy link
Contributor

close inactive pr.

@JingsongLi JingsongLi closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] modify paimon table failed when using hive-metastore
2 participants