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
  • TableEnvironment
  • pyflink.table.table_environment.TableEnvironment.scan

pyflink.table.table_environment.TableEnvironment.scan#

TableEnvironment.scan(*table_path: str) → Table[source]#

Scans a registered table and returns the resulting Table. A table to scan must be registered in the TableEnvironment. It can be either directly registered or be an external member of a Catalog.

See the documentation of use_database() or use_catalog() for the rules on the path resolution.

Examples:

Scanning a directly registered table

>>> tab = table_env.scan("tableName")

Scanning a table from a registered catalog

>>> tab = table_env.scan("catalogName", "dbName", "tableName")
Parameters:

table_path – The path of the table to scan.

Throws:

Exception if no table is found using the given table path.

Returns:

The resulting table.

Note

Deprecated in 1.10. Use from_path() instead.

previous

pyflink.table.table_environment.TableEnvironment.register_table_source

next

pyflink.table.table_environment.TableEnvironment.set_python_requirements

On this page
  • TableEnvironment.scan()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.