Fixed the bug that all columns for cached tables get pruned in lateral view (and as a result returning nulls for everything).