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

[KYUUBI #5452][AUTHZ] Support Compaction table commands for Hudi #5454

Closed
wants to merge 4 commits into from

Conversation

AngersZhuuuu
Copy link
Contributor

@AngersZhuuuu AngersZhuuuu commented Oct 18, 2023

Why are the changes needed?

To close #5452
Support Compaction table/path related command. The SQL grammar is https://github.com/apache/hudi/blob/release-0.14.0/hudi-spark-datasource/hudi-spark/src/main/antlr4/org/apache/hudi/spark/sql/parser/HoodieSqlCommon.g4

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

Was this patch authored or co-authored using generative AI tooling?

No


val CompactionHoodiePathCommand = {
val cmd = "org.apache.spark.sql.hudi.command.CompactionHoodiePathCommand"
TableCommandSpec(cmd, Seq.empty, CREATETABLE)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For path-related commands, we just ignore or handle them in another way? Is there any example? cc @yaooqinn @bowenliang123

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe ignoring path based table first? There's another issue for path-based table #5368. We can align the processing way there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe ignoring path based table first? There's another issue for path-based table #5368. We can align the processing way there.

Yea, will remain a sub task for compaction path

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

@AngersZhuuuu AngersZhuuuu changed the title [KYUUBI #5452][AUTHZ] Support Compaction table/path related command [KYUUBI #5452][AUTHZ] Support Compaction tablerelated command Oct 18, 2023
Copy link
Contributor

@bowenliang123 bowenliang123 left a comment

Choose a reason for hiding this comment

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

LGTM overall. Minor comments.

@bowenliang123 bowenliang123 changed the title [KYUUBI #5452][AUTHZ] Support Compaction tablerelated command [KYUUBI #5452][AUTHZ] Support Compaction table commands for Hudi Oct 18, 2023
@pan3793 pan3793 added this to the v1.9.0 milestone Oct 18, 2023
@pan3793 pan3793 closed this in facfe57 Oct 18, 2023
@pan3793
Copy link
Member

pan3793 commented Oct 18, 2023

Thanks, merged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK][EASY] Support Hudi Compaction Table Command #5284
3 participants