snowflake.snowpark.DataFrame.join_table_function¶
- DataFrame.join_table_function(func: Union[str, List[str], TableFunctionCall], *func_arguments: Union[Column, str], **func_named_arguments: Union[Column, str]) DataFrame[source]¶
Lateral joins the current DataFrame with the output of the specified table function.
References: Snowflake SQL functions.
- Example 1
Lateral join a table function by using the name and parameters directly:
- Example 2
Lateral join a table function by calling:
- Example 3
Lateral join a table function with the partition and order by clause:
- Example 4
Lateral join a table function with aliasing the output column names:
- Parameters:
func_name – The SQL function name.
func_arguments – The positional arguments for the SQL function.
func_named_arguments – The named arguments for the SQL function, if it accepts named arguments.
- Returns:
A new
DataFramethat has the columns carried from thisDataFrame, plus new columns and rows from the lateral join with the table function.
See also
Session.table_function(), which creates a newDataFrameby using the SQL table function.