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

Table.join_lateral(table_function_call: Union[str, pyflink.table.expression.Expression, pyflink.table.udf.UserDefinedTableFunctionWrapper], join_predicate: Optional[Union[str, pyflink.table.expression.Expression[bool]]] = None) → pyflink.table.table.Table[source]#

Joins this Table with an user-defined TableFunction. This join is similar to a SQL inner join but works with a table function. Each row of the table is joined with the rows produced by the table function.

Example:

>>> from pyflink.table.expressions import *
>>> t_env.create_java_temporary_system_function("split",
...     "java.table.function.class.name")
>>> tab.join_lateral(call('split', ' ').alias('b'), col('a') == col('b'))
>>> # take all the columns as inputs
>>> @udtf(result_types=[DataTypes.INT(), DataTypes.STRING()])
... def split_row(row: Row):
...     for s in row[1].split(","):
...         yield row[0], s
>>> tab.join_lateral(split_row.alias("a", "b"))
Parameters
  • table_function_call – An expression representing a table function call.

  • join_predicate – Optional, The join predicate expression string, join ON TRUE if not exist.

Returns

The result Table.

previous

pyflink.table.Table.join

next

pyflink.table.Table.left_outer_join

Show Source

Created using Sphinx 4.5.0.