本文简要介绍 python 语言中 pyflink.table.TableEnvironment.register_table
的用法。
用法:
register_table(name: str, table: pyflink.table.table.Table)
在 TableEnvironment 目录中以唯一名称注册
Table
。可以在 SQL 查询中引用已注册的表。例子:
>>> tab = table_env.from_elements([(1, 'Hi'), (2, 'Hello')], ['a', 'b']) >>> table_env.register_table("source", tab)
参数:
name- 将在其下注册表的名称。
table- 要注册的表。
注意:
1.10 中已弃用。请改用
create_temporary_view()
。
相关用法
- Python pyflink TableEnvironment.register_table_source用法及代码示例
- Python pyflink TableEnvironment.register_table_sink用法及代码示例
- Python pyflink TableEnvironment.register_java_function用法及代码示例
- Python pyflink TableEnvironment.register_function用法及代码示例
- Python pyflink TableEnvironment.create_temporary_function用法及代码示例
- Python pyflink TableEnvironment.create_java_temporary_function用法及代码示例
- Python pyflink TableEnvironment.use_catalog用法及代码示例
- Python pyflink TableEnvironment.create_temporary_system_function用法及代码示例
- Python pyflink TableEnvironment.create_temporary_table用法及代码示例
- Python pyflink TableEnvironment.sql_query用法及代码示例
- Python pyflink TableEnvironment.create_java_temporary_system_function用法及代码示例
- Python pyflink TableEnvironment.scan用法及代码示例
- Python pyflink TableEnvironment.from_path用法及代码示例
- Python pyflink TableEnvironment.from_elements用法及代码示例
- Python pyflink TableEnvironment.use_database用法及代码示例
- Python pyflink TableEnvironment.create_table用法及代码示例
- Python pyflink TableEnvironment.from_table_source用法及代码示例
- Python pyflink TableEnvironment.add_python_archive用法及代码示例
- Python pyflink TableEnvironment.set_python_requirements用法及代码示例
- Python pyflink TableEnvironment.create_java_function用法及代码示例
- Python pyflink TableEnvironment.from_pandas用法及代码示例
- Python pyflink TableEnvironment.from_descriptor用法及代码示例
- Python pyflink Table.intersect_all用法及代码示例
- Python pyflink Table.fetch用法及代码示例
- Python pyflink Table.right_outer_join用法及代码示例
注:本文由纯净天空筛选整理自apache.org大神的英文原创作品 pyflink.table.TableEnvironment.register_table。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。