1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Introduction to Spark SQL in Python

Connected

अभ्यास

Caching and uncaching tables

In the lesson we learned that tables can be cached. Whereas a dataframe is cached using a cache or persist operation, a table is cached using a cacheTable operation.

A table called table1 is available.

निर्देश

100 XP
  • List the tables with the listTables() method.
  • Cache table1 and confirm that it is cached.
  • Uncache table1 and confirm that it is uncached.