You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[KYUUBI #4617] [AUTHZ] Collect results for filtered show objects ahead to prevent holding unserializable spark plan
### _Why are the changes needed?_
To fix#4617.
- The reason for issue #4617 is that delegated SparkPlan is not serilizable when execution
- Collect results for filtered show objects ahead in FilterDataSourceV2Strategy to prevent holding the delegated plan
### _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
- [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
Closes#4634 from bowenliang123/4617-filter.
Closes#4617fe00ef5 [liangbowen] rename results to result
65ce03a [liangbowen] fix 4617
Authored-by: liangbowen <[email protected]>
Signed-off-by: liangbowen <[email protected]>
Copy file name to clipboardExpand all lines: extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/FilterDataSourceV2Strategy.scala
Copy file name to clipboardExpand all lines: extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/FilteredShowObjectsExec.scala
Copy file name to clipboardExpand all lines: extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,7 @@ abstract class RangerSparkExtensionSuite extends AnyFunSuite
233
233
doAs("admin", assert(sql(s"show tables from $db").collect().length ===2))
234
234
doAs("bob", assert(sql(s"show tables from $db").collect().length ===0))
235
235
doAs("i_am_invisible", assert(sql(s"show tables from $db").collect().length ===0))
236
+
doAs("i_am_invisible", assert(sql(s"show tables from $db").limit(1).isEmpty))
236
237
}
237
238
}
238
239
@@ -247,6 +248,7 @@ abstract class RangerSparkExtensionSuite extends AnyFunSuite
0 commit comments