-
Notifications
You must be signed in to change notification settings - Fork 923
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 #5447][AUTHZ] Support Hudi DeleteHoodieTableCommand/UpdateHoodieTableCommand/MergeIntoHoodieTableCommand #5482
Conversation
…ateHoodieTableCommand/MergeIntoHoodieTableCommand
Codecov Report
@@ Coverage Diff @@
## master #5482 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 588 588
Lines 33466 33481 +15
Branches 4401 4405 +4
======================================
- Misses 33466 33481 +15
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
...c/main/resources/META-INF/services/org.apache.kyuubi.plugin.spark.authz.serde.QueryExtractor
Outdated
Show resolved
Hide resolved
...c/main/resources/META-INF/services/org.apache.kyuubi.plugin.spark.authz.serde.TableExtractor
Outdated
Show resolved
Hide resolved
...-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/tableExtractors.scala
Outdated
Show resolved
Hide resolved
...scala/org/apache/kyuubi/plugin/spark/authz/ranger/HudiCatalogRangerSparkExtensionSuite.scala
Show resolved
Hide resolved
And again, please do not forget the positive cases. |
The current implementation looks to break the original intention of plan serde layer. |
How about current? match all case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Minor comment.
@@ -33,7 +33,7 @@ import org.apache.kyuubi.util.AssertionUtils.interceptContains | |||
*/ | |||
@HudiTest | |||
class HudiCatalogRangerSparkExtensionSuite extends RangerSparkExtensionSuite { | |||
override protected val catalogImpl: String = "hive" | |||
override protected val catalogImpl: String = "in-memory" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we have to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we have to change this?
To trigger a positive case, if not change this, will trigger some hive hms-related derby error and can' run. I have checked that this changing to in-memory
the plan is also Hudi's command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
Thanks, merged to master. |
…ateHoodieTableCommand/MergeIntoHoodieTableCommand ### _Why are the changes needed?_ To close apache#5447. Kyuubi authz Support hudi DeleteHoodieTableCommand/UpdateHoodieTableCommand/MergeIntoHoodieTableCommand - DeleteHoodieTableCommand: https://github.com/apache/hudi/blob/master/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/DeleteHoodieTableCommand.scala - UpdateHoodieTableCommand: https://github.com/apache/hudi/blob/master/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/UpdateHoodieTableCommand.scala - MergeIntoHoodieTableCommand: https://github.com/apache/hudi/blob/master/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/MergeIntoHoodieTableCommand.scala ### _How was this patch tested?_ - [x] 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](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ No Closes apache#5482 from AngersZhuuuu/KYUUBI-5447. Closes apache#5447 2598af2 [Angerszhuuuu] Update HudiCatalogRangerSparkExtensionSuite.scala 08be589 [Angerszhuuuu] Update org.apache.kyuubi.plugin.spark.authz.serde.QueryExtractor 19497d1 [Angerszhuuuu] Update tableExtractors.scala df6e244 [Angerszhuuuu] update 1a72f13 [Angerszhuuuu] update f7ca684 [Angerszhuuuu] Merge branch 'master' into KYUUBI-5447 3700686 [Angerszhuuuu] [KYUUBI apache#5447][AUTHZ] Support hudi DeleteHoodieTableCommand/UpdateHoodieTableCommand/MergeIntoHoodieTableCommand Authored-by: Angerszhuuuu <[email protected]> Signed-off-by: liangbowen <[email protected]>
Why are the changes needed?
To close #5447. Kyuubi authz Support hudi DeleteHoodieTableCommand/UpdateHoodieTableCommand/MergeIntoHoodieTableCommand
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