Skip to content

Commit

Permalink
Check rand()
Browse files Browse the repository at this point in the history
  • Loading branch information
Indhumathi27 committed Oct 23, 2018
1 parent c58ef59 commit 5b21078
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -782,7 +782,7 @@ class CarbonLateDecodeRule extends Rule[LogicalPlan] with PredicateHelper {

val updateDtrFn = finalPlan transform {
case p@Project(projectList: Seq[NamedExpression], cd) =>
if (cd.isInstanceOf[Filter] || cd.isInstanceOf[LogicalRelation]) {
if (cd.isInstanceOf[LogicalRelation]) {
p.transformAllExpressions {
case a@Alias(exp, _)
if !exp.deterministic && !exp.isInstanceOf[CustomDeterministicExpression] =>
Expand All @@ -800,7 +800,7 @@ class CarbonLateDecodeRule extends Rule[LogicalPlan] with PredicateHelper {
p
}
case f@Filter(condition: Expression, cd) =>
if (cd.isInstanceOf[Project] || cd.isInstanceOf[LogicalRelation]) {
if (cd.isInstanceOf[LogicalRelation]) {
f.transformAllExpressions {
case a@Alias(exp, _)
if !exp.deterministic && !exp.isInstanceOf[CustomDeterministicExpression] =>
Expand Down

0 comments on commit 5b21078

Please sign in to comment.