Skip to content

Commit

Permalink
fix + test
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonport-db committed Jan 5, 2024
1 parent fdcfa62 commit 1b23a90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ private static boolean hasNonPartitionColumns(
return true;
}
} else {
return hasNonPartitionColumns(child.getChildren(), partitionColNames);
if(hasNonPartitionColumns(child.getChildren(), partitionColNames)) {
return true;
}
}
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ class PartitionUtilsSuite extends AnyFunSuite {
(
"(column(`part3`) >= sss)",
"(column(`data1`) = column(`part1`))"
)
),

// predicate only on data column but reverse order of literal and column
predicate("=", ofInt(12), col("data1")) ->
("ALWAYS_TRUE()", "(12 = column(`data1`))")
)

partitionTestCases.foreach {
Expand Down

0 comments on commit 1b23a90

Please sign in to comment.