This is fixed in Spark 1.3. https://issues.apache.org/jira/browse/SPARK-5195
On Wed, Apr 1, 2015 at 4:05 PM, Judy Nash <judyn...@exchange.microsoft.com> wrote: > Hi all, > > > > Noticed a bug in my current version of Spark 1.2.1. > > > > After a table is cached with “cache table <table>” command, query will not > read from memory if SQL query renames the table. > > > > This query reads from in memory table > > i.e. select hivesampletable.country from default.hivesampletable group by > hivesampletable.country > > > > This query with renamed table reads from hive > > i.e. select table.country from default.hivesampletable table group by > table.country > > > > > > Is this a known bug? > > Most BI tools rename tables to avoid table name collision. > > > > Thanks, > > Judy > > >