Skip to content

Prevent Hudi from accessing system tables of non-Hudi tables and other Hudi metadata refactor#17955

Merged
findepi merged 6 commits intomasterfrom
findepi/hudixies
Jun 22, 2023
Merged

Prevent Hudi from accessing system tables of non-Hudi tables and other Hudi metadata refactor#17955
findepi merged 6 commits intomasterfrom
findepi/hudixies

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Jun 19, 2023

No description provided.

@findepi findepi added no-release-notes This pull request does not require release notes entry hudi Hudi connector labels Jun 19, 2023
@cla-bot cla-bot bot added the cla-signed label Jun 19, 2023
@findepi findepi force-pushed the findepi/hudixies branch 3 times, most recently from 93a840c to 090672d Compare June 20, 2023 14:54
@github-actions github-actions bot added the hive Hive connector label Jun 20, 2023
@findepi findepi force-pushed the findepi/hudixies branch 3 times, most recently from 4e230a5 to ccb5bd0 Compare June 20, 2023 15:53
@github-actions github-actions bot added the iceberg Iceberg connector label Jun 20, 2023
@findepi findepi force-pushed the findepi/hudixies branch from ccb5bd0 to cb75913 Compare June 20, 2023 21:21
@findepi findepi requested a review from findinpath June 20, 2023 21:21
@findepi findepi force-pushed the findepi/hudixies branch from cb75913 to 4dc69e3 Compare June 21, 2023 07:27
@findepi findepi force-pushed the findepi/hudixies branch 2 times, most recently from b208ec0 to 8396f43 Compare June 21, 2023 14:07
findepi added 6 commits June 21, 2023 22:51
Copy of `TestIcebergHiveTablesCompatibility`.
Make clearer we don't default to `true`.
And add TODO about $data system table.
This changes file metastore to support storage formats other than those
described by Hive's `HiveStorageFormat` enum. This makes the
implementation more suitable for testing other connectors, such as Hudi,
which uses different storage formats.

This resolves a TODO in the code.
In case of redirects between catalogs it's important to have unified
view of the table type. Logically this splits `HudiUtil.isHudiTable`
into

- checking if table SHOULD BE hudi table (done by
  `HiveUtil.isHudiTable`, but without checking on-disk metadata)
- checking if Hudi table has some metadata files, i.e. verifying the
  location (done by `hudiMetadataExists`, new method).
@findepi findepi force-pushed the findepi/hudixies branch from 8396f43 to 77b57e4 Compare June 21, 2023 20:54
@findepi findepi merged commit 41b5fad into master Jun 22, 2023
@findepi findepi deleted the findepi/hudixies branch June 22, 2023 08:15
@github-actions github-actions bot added this to the 420 milestone Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed hive Hive connector hudi Hudi connector iceberg Iceberg connector no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

3 participants