diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2014-10-26 14:29:13 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-10-26 14:29:13 -0700 |
commit | 0af7e514c6790cb78ee216986c45dbfe1217cd7d (patch) | |
tree | 48f8e38f7d722083161dabbef68d216c16e43d05 /sql/catalyst | |
parent | 677852c3fa734326f9642245584b05d5604963ac (diff) | |
download | spark-0af7e514c6790cb78ee216986c45dbfe1217cd7d.tar.gz spark-0af7e514c6790cb78ee216986c45dbfe1217cd7d.tar.bz2 spark-0af7e514c6790cb78ee216986c45dbfe1217cd7d.zip |
[SPARK-3925][SQL] Do not consider the ordering of qualifiers during comparison
The orderings should not be considered during the comparison between old qualifiers and new qualifiers.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #2783 from viirya/full_qualifier_comp and squashes the following commits:
89f652c [Liang-Chi Hsieh] modification for comment.
abb5762 [Liang-Chi Hsieh] More comprehensive comparison of qualifiers.
Diffstat (limited to 'sql/catalyst')
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala index d023db44d8..fe13a661f6 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala @@ -156,7 +156,7 @@ case class AttributeReference(name: String, dataType: DataType, nullable: Boolea * Returns a copy of this [[AttributeReference]] with new qualifiers. */ override def withQualifiers(newQualifiers: Seq[String]) = { - if (newQualifiers == qualifiers) { + if (newQualifiers.toSet == qualifiers.toSet) { this } else { AttributeReference(name, dataType, nullable)(exprId, newQualifiers) |