pyflink.table.table_environment.TableEnvironment.register_table_source#
- TableEnvironment.register_table_source(name: str, table_source: pyflink.table.sources.TableSource)[source]#
Registers an external
TableSource
in thisTableEnvironment
’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.