Skip to content

Conversation

@parisni
Copy link
Contributor

@parisni parisni commented May 17, 2023

Change Logs

This adds the glue metastore comments feature - which was not implemented yet. Tools such athena or presto are then able to grab the comment when describe operation is done. However spark hudi won't grab them from the metastore, instead it get them from the avro schema on s3.

I don't see a way to add tests to this, since it would need a local aws stack to mimic glue

Impact

Describe any public API or user-facing feature change or any performance impact.

Risk level (write none, low medium or high below)

If medium or high, explain what verification was done to mitigate the risks.

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

private String getTableDoc() {
try {
return new TableSchemaResolver(metaClient).getTableAvroSchema(true).getDoc();
} catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the table avro schema be reused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK the avro schema is already reused by running method getTableAvroSchema ?

@danny0405 danny0405 self-assigned this May 23, 2023
@danny0405 danny0405 added the priority:high Significant impact; potential bugs label May 23, 2023
@danny0405
Copy link
Contributor

@parisni Hi, do we have plan to push-forward this feature?

@parisni
Copy link
Contributor Author

parisni commented Jun 1, 2023

@parisni Hi, do we have plan to push-forward this feature?

Yes I do. I am currently in vacations

@danny0405 danny0405 added area:gcp GCP ecosystem support and removed aws-support labels Jun 2, 2023
@parisni
Copy link
Contributor Author

parisni commented Jun 5, 2023

@danny0405 it is aws and not gcp (about the tags changes)

@danny0405 danny0405 added aws-support and removed area:gcp GCP ecosystem support labels Jun 6, 2023
@yihua
Copy link
Contributor

yihua commented Jun 9, 2023

Hi @parisni, I assume you have manually tested this with Glue catalog, correct?

@parisni
Copy link
Contributor Author

parisni commented Jun 10, 2023 via email

@danny0405
Copy link
Contributor

@parisni

Can you fix the checkstyle issue:

Error:  src/main/java/org/apache/hudi/aws/sync/AWSGlueCatalogSyncClient.java:[26,8] (imports) UnusedImports: Unused import - org.apache.hudi.hive.HoodieHiveSyncException.
Error:  src/main/java/org/apache/hudi/aws/sync/AWSGlueCatalogSyncClient.java:[63] (imports) AvoidStarImport: Using the '.*' form of import should be avoided - java.util.*.

@parisni
Copy link
Contributor Author

parisni commented Jun 12, 2023

@danny0405 rebased master, fixed imports, and also tested locally

@danny0405 danny0405 closed this Jun 13, 2023
@danny0405 danny0405 reopened this Jun 13, 2023
@danny0405
Copy link
Contributor

@hudi-bot run azure

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405 danny0405 merged commit d45df4d into apache:master Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:high Significant impact; potential bugs

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants