Skip to content

Commit

Permalink
enable uts
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbo-ustc committed Aug 22, 2024
1 parent 6976121 commit 4db26ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ object CHJoinValidateUtil extends Logging {
rightOutputSet: AttributeSet,
condition: Option[Expression]): Boolean = {

val hasMixedFiltCondition =
val hasMixedFilterCondition =
condition.isDefined && hasTwoTableColumn(leftOutputSet, rightOutputSet, condition.get)
val shouldFallback = joinStrategy match {
case SortMergeJoinStrategy(joinType) =>
joinType.sql.contains("SEMI") || joinType.sql.contains("ANTI") || joinType.toString
.contains("ExistenceJoin") || hasMixedFiltCondition
.contains("ExistenceJoin") || hasMixedFilterCondition
case UnknownJoinStrategy(joinType) =>
throw new IllegalArgumentException(s"Unknown join type $joinStrategy")
case _ => false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ abstract class GlutenClickHouseTPCDSAbstractSuite
})

protected def fallbackSets(isAqe: Boolean): Set[Int] = {
val more = if (isSparkVersionGE("3.5")) Set(44, 67, 70) else Set.empty[Int]

// q16 smj + left semi + not condition
// Q94 BroadcastHashJoin, LeftSemi, NOT condition
Set(16, 94) | more
if (isSparkVersionGE("3.5")) Set(44, 67, 70) else Set.empty[Int]
}
protected def excludedTpcdsQueries: Set[String] = Set(
"q66" // inconsistent results
Expand Down

0 comments on commit 4db26ba

Please sign in to comment.