spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Afroozeh (Jira)" <>
Subject [jira] [Updated] (SPARK-28836) Remove the canonicalize() method
Date Fri, 23 Aug 2019 09:47:00 GMT


Ali Afroozeh updated SPARK-28836:
    Summary: Remove the canonicalize() method   (was: Improve canonicalize API)

> Remove the canonicalize() method 
> ---------------------------------
>                 Key: SPARK-28836
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Ali Afroozeh
>            Priority: Minor
> The canonicalize(attrs: AttributeSeq) method in PlanExpression is somewhat confusing.

>  First, it is not clear why `PlanExpression` should have this method, and why the canonicalization
is not handled
>  by the canonicalized method of its parent, the Expression class. Second, the QueryPlan.normalizeExpressionId
>  is the only place where PlanExpression.canonicalized is being called.
> This PR removes the canonicalize method from the PlanExpression class and delegates the
normalization of expression ids to
>  the QueryPlan.normalizedExpressionId method. Also, the name normalizedExpressions is
more suitable for this method,
>  therefore, the method has also been renamed.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message