-
- Downloads
[SPARK-3688][SQL]LogicalPlan can't resolve column correctlly
This PR fixed the resolving problem described in https://issues.apache.org/jira/browse/SPARK-3688 ``` CREATE TABLE t1(x INT); CREATE TABLE t2(a STRUCT<x: INT>, k INT); SELECT a.x FROM t1 a JOIN t2 b ON a.x = b.k; ``` Author: tianyi <tianyi.asiainfo@gmail.com> Closes #4524 from tianyi/SPARK-3688 and squashes the following commits: 237a256 [tianyi] resolve a name with table.column pattern first.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala 32 additions, 18 deletions...apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala
- sql/hive/src/test/resources/golden/test ambiguousReferences resolved as hive-0-c6d02549aec166e16bfc44d5905fa33a 0 additions, 0 deletions...ences resolved as hive-0-c6d02549aec166e16bfc44d5905fa33a
- sql/hive/src/test/resources/golden/test ambiguousReferences resolved as hive-1-a8987ff8c7b9ca95bf8b32314694ed1f 0 additions, 0 deletions...ences resolved as hive-1-a8987ff8c7b9ca95bf8b32314694ed1f
- sql/hive/src/test/resources/golden/test ambiguousReferences resolved as hive-2-26f54240cf5b909086fc34a34d7fdb56 0 additions, 0 deletions...ences resolved as hive-2-26f54240cf5b909086fc34a34d7fdb56
- sql/hive/src/test/resources/golden/test ambiguousReferences resolved as hive-3-d08d5280027adea681001ad82a5a6974 0 additions, 0 deletions...ences resolved as hive-3-d08d5280027adea681001ad82a5a6974
- sql/hive/src/test/resources/golden/test ambiguousReferences resolved as hive-4-22eb25b5be6daf72a6649adfe5041749 1 addition, 0 deletions...ences resolved as hive-4-22eb25b5be6daf72a6649adfe5041749
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveResolutionSuite.scala 9 additions, 0 deletions...apache/spark/sql/hive/execution/HiveResolutionSuite.scala
Please register or sign in to comment