Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • Table
  • pyflink.table.Table.fetch

pyflink.table.Table.fetch#

Table.fetch(fetch: int) → Table[source]#

Limits a (possibly sorted) result to the first n rows.

This method can be combined with a preceding order_by() call for a deterministic order and offset() call to return n rows after skipping the first o rows.

Example:

Returns the first 3 records.

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

Skips the first 10 rows and returns the next 5 rows.

>>> tab.order_by(col('name').desc).offset(10).fetch(5)
Parameters:

fetch – The number of records to return. Fetch must be >= 0.

Returns:

The result table.

previous

pyflink.table.Table.explain

next

pyflink.table.Table.filter

On this page
  • Table.fetch()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.