-
- Downloads
[SPARK-17104][SQL] LogicalRelation.newInstance should follow the semantics of MultiInstanceRelation
## What changes were proposed in this pull request? Currently `LogicalRelation.newInstance()` simply creates another `LogicalRelation` object with the same parameters. However, the `newInstance()` method inherited from `MultiInstanceRelation` should return a copy of object with unique expression ids. Current `LogicalRelation.newInstance()` can cause failure when doing self-join. ## How was this patch tested? Jenkins tests. Author: Liang-Chi Hsieh <simonh@tw.ibm.com> Closes #14682 from viirya/fix-localrelation.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/LogicalRelation.scala 9 additions, 2 deletions...che/spark/sql/execution/datasources/LogicalRelation.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/parquetSuites.scala 7 additions, 0 deletions.../test/scala/org/apache/spark/sql/hive/parquetSuites.scala
Please register or sign in to comment