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.from_table_source#

TableEnvironment.from_table_source(table_source: pyflink.table.sources.TableSource) → pyflink.table.table.Table[source]#

Creates a table from a table source.

Example:

>>> csv_table_source = CsvTableSource(
...     csv_file_path, ['a', 'b'], [DataTypes.STRING(), DataTypes.BIGINT()])
>>> table_env.from_table_source(csv_table_source)
Parameters

table_source – The table source used as table.

Returns

The result table.

previous

pyflink.table.table_environment.TableEnvironment.from_path

next

pyflink.table.table_environment.TableEnvironment.get_catalog

Show Source

Created using Sphinx 4.5.0.