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_environment.TableEnvironment.register_table#

TableEnvironment.register_table(name: str, table: pyflink.table.table.Table)[source]#

Registers a Table under a unique name in the TableEnvironment’s catalog. Registered tables can be referenced in SQL queries.

Example:

>>> tab = table_env.from_elements([(1, 'Hi'), (2, 'Hello')], ['a', 'b'])
>>> table_env.register_table("source", tab)
Parameters
  • name – The name under which the table will be registered.

  • table – The table to register.

Note

Deprecated in 1.10. Use create_temporary_view() instead.

previous

pyflink.table.table_environment.TableEnvironment.register_java_function

next

pyflink.table.table_environment.TableEnvironment.register_table_sink

Show Source

Created using Sphinx 4.5.0.