Skip to content

Commit bffe0e8

Browse files
committed
[SPARK-4930][SQL][DOCS]Update SQL programming guide, CACHE TABLE tbl is eager
1 parent a96b727 commit bffe0e8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

docs/sql-programming-guide.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,12 +1010,7 @@ let user control table caching explicitly:
10101010
CACHE TABLE logs_last_month;
10111011
UNCACHE TABLE logs_last_month;
10121012

1013-
**NOTE:** `CACHE TABLE tbl` is lazy, similar to `.cache` on an RDD. This command only marks `tbl` to ensure that
1014-
partitions are cached when calculated but doesn't actually cache it until a query that touches `tbl` is executed.
1015-
To force the table to be cached, you may simply count the table immediately after executing `CACHE TABLE`:
1016-
1017-
CACHE TABLE logs_last_month;
1018-
SELECT COUNT(1) FROM logs_last_month;
1013+
**NOTE:** `CACHE TABLE tbl` is now __eager__ by default not __lazy__. Don’t need to trigger cache materialization manually anymore.
10191014

10201015
Several caching related features are not supported yet:
10211016

0 commit comments

Comments
 (0)