You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "gengliangwang (via GitHub)" <gi...@apache.org> on 2025/12/09 18:30:17 UTC

Re: [PR] [SPARK-54653][DOCS] Add cross-session note to cache/persist public APIs [spark]

gengliangwang commented on PR #53401:
URL: https://github.com/apache/spark/pull/53401#issuecomment-3633666328

   @yyanyy let's update the doc for cache table/uncache table as well
   ```
   sql-ref-syntax-aux-cache-cache-table.md:title: CACHE TABLE
   sql-ref-syntax-aux-cache-cache-table.md:displayTitle: CACHE TABLE
   sql-ref-syntax-aux-cache-cache-table.md:`CACHE TABLE` statement caches contents of a table or output of a query with the given storage level. If a query is cached, then a temp view will be created for this query.
   sql-ref-syntax-aux-cache-cache-table.md:CACHE TABLE testCache OPTIONS ('storageLevel' 'DISK_ONLY') SELECT * FROM testData;
   sql-ref-syntax-aux-cache-refresh.md:CACHE TABLE test;
   sql-ref-syntax-aux-cache-uncache-table.md:title: UNCACHE TABLE
   sql-ref-syntax-aux-cache-uncache-table.md:displayTitle: UNCACHE TABLE
   sql-ref-syntax-aux-cache-uncache-table.md:`UNCACHE TABLE` removes the entries and associated data from the in-memory and/or on-disk cache for a given table or view. The
   sql-ref-syntax-aux-cache-uncache-table.md:underlying entries should already have been brought to cache by previous `CACHE TABLE` operation. `UNCACHE TABLE` on a non-existent table throws an exception if `IF EXISTS` is not specified.
   sql-ref-syntax-aux-cache-uncache-table.md:UNCACHE TABLE [ IF EXISTS ] table_identifier
   sql-ref-syntax-aux-cache-uncache-table.md:UNCACHE TABLE t1;
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org