Skip to content

Commit

Permalink
[update] doc
Browse files Browse the repository at this point in the history
  • Loading branch information
YannByron committed Nov 29, 2024
1 parent c3dbdb4 commit 58d9227
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/content/spark/auxiliary.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ SHOW PARTITIONS my_table;
SHOW PARTITIONS my_table PARTITION (dt=20230817);
```

## Show Table Extended
The SHOW TABLE EXTENDED statement is used to list table or partition information.

```sql
-- Lists tables that satisfy regular expressions
SHOW TABLE EXTENDED IN db_name LIKE 'test*';

-- Lists the specified partition information for the table
SHOW TABLE EXTENDED IN db_name LIKE 'table_name' PARTITION(pt = '2024');
```

## Analyze table

The ANALYZE TABLE statement collects statistics about the table, that are to be used by the query optimizer to find a better query execution plan.
Expand Down

0 comments on commit 58d9227

Please sign in to comment.