[ 
https://issues.apache.org/jira/browse/SPARK-17425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yadong Qi updated SPARK-17425:
------------------------------
    Description: 
When I run the below SQL(table src is text format):
{code:sql}
SELECT 1 FROM src t1
JOIN src t2 ON t1.key = t2.key
JOIN src t3 ON t1.key = t3.key;
{code}
The PhysicalPlan doesn't contain *ReuseExchange*. And I use src_pqt(parquet 
format) instead of src(text format), PhysicalPlan contain *ReuseExchange* in 
PhysicalPlan.
I found the *sameResult* in *FileSourceScanExec* has already overrided, but 
*HiveTableScanExec* didn't,

  was:
When I run the below SQL(table src is text format):
{code:sql}
SELECT 1 FROM src t1
JOIN src t2 ON t1.key = t2.key
JOIN src t3 ON t1.key = t3.key;
{code}
The PhysicalPlan doesn't contain *ReuseExchange*. And I use src_pqt(parquet 
format) instead of src, PhysicalPlan contain *ReuseExchange* in PhysicalPlan.
I found the *sameResult* in *FileSourceScanExec* has already overrided, but 
*HiveTableScanExec* didn't,


> Override sameResult in HiveTableScanExec to make ReusedExchange work in text 
> format table
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-17425
>                 URL: https://issues.apache.org/jira/browse/SPARK-17425
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Yadong Qi
>
> When I run the below SQL(table src is text format):
> {code:sql}
> SELECT 1 FROM src t1
> JOIN src t2 ON t1.key = t2.key
> JOIN src t3 ON t1.key = t3.key;
> {code}
> The PhysicalPlan doesn't contain *ReuseExchange*. And I use src_pqt(parquet 
> format) instead of src(text format), PhysicalPlan contain *ReuseExchange* in 
> PhysicalPlan.
> I found the *sameResult* in *FileSourceScanExec* has already overrided, but 
> *HiveTableScanExec* didn't,



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to