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.StreamTableEnvironment.register_table_source#

StreamTableEnvironment.register_table_source(name: str, table_source: pyflink.table.sources.TableSource)#

Registers an external TableSource in this TableEnvironment’s catalog. Registered tables can be referenced in SQL queries.

Example:

>>> table_env.register_table_source("source",
...                                 CsvTableSource("./1.csv",
...                                                ["a", "b"],
...                                                [DataTypes.INT(),
...                                                 DataTypes.STRING()]))
Parameters
  • name – The name under which the table source is registered.

  • table_source – The table source to register.

Note

Deprecated in 1.10. Use execute_sql() instead.

previous

pyflink.table.table_environment.StreamTableEnvironment.register_table_sink

next

pyflink.table.table_environment.StreamTableEnvironment.scan

Show Source

Created using Sphinx 4.5.0.