Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.catalog.Catalog.list_partitions#

Catalog.list_partitions(table_path: ObjectPath, partition_spec: Optional[CatalogPartitionSpec] = None) → List[CatalogPartitionSpec][source]#

Get CatalogPartitionSpec of all partitions of the table.

Parameters
  • table_path – Path ObjectPath of the table.

  • partition_spec – The partition spec CatalogPartitionSpec to list.

Returns

A list of CatalogPartitionSpec of the table.

Raise

CatalogException in case of any runtime exception. TableNotExistException thrown if the table does not exist in the catalog. TableNotPartitionedException thrown if the table is not partitioned.

previous

pyflink.table.catalog.Catalog.alter_table

next

pyflink.table.catalog.Catalog.get_partition

On this page
  • Catalog.list_partitions()
Show Source

Created using Sphinx 5.3.0.