Aller au contenu principal

tvf

Renvoie un TableValuedFunction qui peut être utilisé pour appeler une fonction à valeur de table (TVF).

Syntaxe

tvf

Renvoie

tvf.TableValuedFunction

Exemples

Python
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|
# +---+