GitHub user seayi opened a pull request:
https://github.com/apache/spark/pull/3898
Update HiveMetastoreCatalog.scala
modify the 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 so modify the sameresult method only compare databasename and table name
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/seayi/spark branch-1.2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3898.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3898
----
commit 8d910aa45372c0cf0a3b2a4704b0e1a480bbeb1c
Author: seayi <[email protected]>
Date: 2015-01-05T09:02:51Z
Update HiveMetastoreCatalog.scala
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 with alias the same table 's logicalplan is not the same logical plan
so modify the sameresult method only compare databasename and table name
----
---
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]