You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by cloud-fan <gi...@git.apache.org> on 2017/02/03 15:23:33 UTC

[GitHub] spark pull request #16757: [SPARK-18609][SPARK-18841][SQL] Fix redundant Ali...

Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16757#discussion_r99357432
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala ---
    @@ -154,56 +155,108 @@ class SimpleTestOptimizer extends Optimizer(
       new SimpleCatalystConf(caseSensitiveAnalysis = true))
     
     /**
    - * Removes the Project only conducting Alias of its child node.
    - * It is created mainly for removing extra Project added in EliminateSerialization rule,
    - * but can also benefit other operators.
    + * Remove redundant aliases from a query plan. A redundant alias is an alias that does not change
    + * the name or metadata of a column, and does not deduplicate it.
      */
    -object RemoveAliasOnlyProject extends Rule[LogicalPlan] {
    +object RemoveRedundantAliases extends Rule[LogicalPlan] {
    +
       /**
    -   * Returns true if the project list is semantically same as child output, after strip alias on
    -   * attribute.
    +   * Replace the attributes in an expression using the given mapping.
    --- End diff --
    
    looks like this doc is wrong?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org