tvf

Retourne une TableValuedFunction valeur qui peut être utilisée pour appeler une fonction table (TVF).

Syntaxe

tvf

Retours

tvf.TableValuedFunction

Exemples

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