Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/5798#discussion_r29412354
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveResolutionSuite.scala
---
@@ -81,9 +81,11 @@ class HiveResolutionSuite extends HiveComparisonTest {
.toDF().registerTempTable("caseSensitivityTest")
val query = sql("SELECT a, b, A, B, n.a, n.b, n.A, n.B FROM
caseSensitivityTest")
- assert(query.schema.fields.map(_.name) === Seq("a", "b", "A", "B",
"a", "b", "A", "B"),
+ assert(query.schema.fields.map(_.name) === Seq("a", "B", "a", "B",
"a", "b", "A", "B"),
--- End diff --
Does that matter for a case-insensitive system?
But we do need keep the attribute name identical in the references chain.
This is a workaround approach for the bug fixing, in long term, we probably
need to refactor the AttributeReference `equality` for name (or take the
Resolver in?).
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]