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.Table.order_by#

Table.order_by(*fields: Union[str, pyflink.table.expression.Expression]) → pyflink.table.table.Table[source]#

Sorts the given Table. Similar to SQL ORDER BY. The resulting Table is sorted globally sorted across all parallel partitions.

Example:

>>> tab.order_by(col('name').desc)

For unbounded tables, this operation requires a sorting on a time attribute or a subsequent fetch operation.

Parameters

fields – Order fields expression string.

Returns

The result table.

previous

pyflink.table.Table.offset

next

pyflink.table.Table.over_window

Show Source

Created using Sphinx 4.5.0.