Skip to content

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

Closed
hongyonggan wants to merge 2 commits intoapache:masterfrom
hongyonggan:master
Closed

[Hive] HiveCatalog: Table StorageDescriptor location and control HMS FileSystem scan.#2760
hongyonggan wants to merge 2 commits intoapache:masterfrom
hongyonggan:master

Conversation

@hongyonggan
Copy link
Copy Markdown

  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
Copy Markdown
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.

+ "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
Copy Markdown
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
Copy Markdown
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