[SPARK-2135][SQL] Use planner for in-memory scans

We don't invalidate cached table content here. Maybe we should add a link to the corresponding JIRA ticket to remind that.