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 2018/10/15 09:51:51 UTC

[GitHub] spark pull request #22713: [SPARK-25691][SQL] Use semantic equality in Alias...

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

    https://github.com/apache/spark/pull/22713#discussion_r225103000
  
    --- Diff: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/RemoveRedundantAliasAndProjectSuite.scala ---
    @@ -124,4 +124,11 @@ class RemoveRedundantAliasAndProjectSuite extends PlanTest with PredicateHelper
         val expected = Subquery(relation.select('a as "a", 'b).where('b < 10).select('a).analyze)
         comparePlans(optimized, expected)
       }
    +
    +  test("SPARK-25691: RemoveRedundantProject works also with different cases") {
    +    val relation = LocalRelation('a.int, 'b.int)
    +    val query = relation.select('A, 'b).analyzeCaseInsensitive
    +    val optimized = Optimize.execute(query)
    +    comparePlans(optimized, relation)
    --- End diff --
    
    Spark can be case-sensitive or not w.r.t. the config, but Spark should always be case-preserving.


---

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