返回一个可用于调用表值函数 (TVF) 的函数 TableValuedFunction 。
Syntax
tvf
退货
tvf.TableValuedFunction
示例
import pyspark.sql.functions as sf
spark.tvf.explode(sf.array(sf.lit(1), sf.lit(2), sf.lit(3))).show()
# +---+
# |col|
# +---+
# | 1|
# | 2|
# | 3|
# +---+