Description
Right now we do not have a logical concept for in memory data. This breaks planning in several ways:
This sort of query fails to analyze:
TestSQLContext.sql("SELECT * FROM testData").registerAsTable("selectStar") TestSQLContext.cacheTable("selectStar") TestSQLContext.sql("SELECT * FROM selectStar WHERE key = 1").collect()
Also, we read all of the columns even when we don't need to.