Files
doris/docs/en/sql-manual/sql-reference/Show-Statements/SHOW-PARTITIONS.md
Mingyu Chen 74a482ca7f [fix] fix docs build bug (#9293)
After this PR #9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
2022-04-28 22:19:04 +08:00

2.0 KiB

title, language
title language
SHOW-PARTITIONS en

SHOW-PARTITIONS

Name

SHOW PARTITIONS

Description

This statement is used to display partition information

grammar:

  SHOW [TEMPORARY] PARTITIONS FROM [db_name.]table_name [WHERE] [ORDER BY] [LIMIT];

illustrate:

  1. Support the filtering of PartitionId, PartitionName, State, Buckets, ReplicationNum, LastConsistencyCheckTime and other columns
  2. TEMPORARY specifies to list temporary partitions

Example

  1. Display all non-temporary partition information of the specified table under the specified db
  SHOW PARTITIONS FROM example_db.table_name;
  1. Display all temporary partition information of the specified table under the specified db

    SHOW TEMPORARY PARTITIONS FROM example_db.table_name;
    
  2. Display the information of the specified non-temporary partition of the specified table under the specified db

     SHOW PARTITIONS FROM example_db.table_name WHERE PartitionName = "p1";
    
  3. Display the latest non-temporary partition information of the specified table under the specified db

    SHOW PARTITIONS FROM example_db.table_name ORDER BY PartitionId DESC LIMIT 1;
    

Keywords

SHOW, PARTITIONS

Best Practice