Skip to content

Commit

Permalink
[CARBONDATA-3467] Fix count(*) with filter on string column
Browse files Browse the repository at this point in the history
  • Loading branch information
Indhumathi27 committed Jul 10, 2019
1 parent 8f0ec97 commit a10d12a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class MVAnalyzerRule(sparkSession: SparkSession) extends Rule[LogicalPlan] {
plan.transform {
case aggregate@Aggregate(grp, aExp, child) =>
// check for if plan is for dataload for preaggregate table, then skip applying mv
if (aExp.exists(p => p.name.equals("preAggLoad") || p.name.equals("preAgg"))) {
if (aExp.exists(p =>
!p.isInstanceOf[UnresolvedAlias] && (p.name.equals("preAggLoad") ||
p.name.equals("preAgg")))) {
needAnalysis = false
}
Aggregate(grp, aExp, child)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,6 @@ class TestAllOperationsOnMV extends QueryTest with BeforeAndAfterEach {
newSet.addAll(oldSet)
newSet
}

}

0 comments on commit a10d12a

Please sign in to comment.