[
https://issues.apache.org/jira/browse/SPARK-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-5195.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.1
1.3.0
Issue resolved by pull request 3898
[https://github.com/apache/spark/pull/3898]
> when hive table is query with alias the cache data lose effectiveness.
> ------------------------------------------------------------------------
>
> Key: SPARK-5195
> URL: https://issues.apache.org/jira/browse/SPARK-5195
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.2.0
> Reporter: yixiaohua
> Fix For: 1.3.0, 1.2.1
>
>
> override the MetastoreRelation's sameresult method only compare databasename
> and table name
> because in previous :
> cache table t1;
> select count() from t1;
> it will read data from memory but the sql below will not,instead it read from
> hdfs:
> select count() from t1 t;
> because cache data is keyed by logical plan and compare with sameResult ,so
> when table with alias the same table 's logicalplan is not the same logical
> plan with out alias so modify the sameresult method only compare databasename
> and table name
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]