Skip to content

Commit

Permalink
Update PrivilegesBuilder.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Nov 29, 2023
1 parent 9a58fb0 commit 11b7a4c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ object PrivilegesBuilder {

case p =>
for (child <- p.children) {
// If current plan's references don't have relation to it's input, have two case
// 1. Such as `MapInPandas`, `ScriptTransformation`
// 2. Project output only have constant value
// For case 1, we should pass it's input as projection list
// since it's children's columns was pruned.
// For case too, we just skip.
if (columnPrune(p.references.toSeq, p.inputSet).isEmpty) {
// If plan is project and output don't have relation to input, can ignore.
if (!p.isInstanceOf[Project]) {
Expand Down

0 comments on commit 11b7a4c

Please sign in to comment.