Tvf

Restituisce un oggetto TableValuedFunction che può essere utilizzato per chiamare una funzione con valori di tabella (TVF).

Sintassi

tvf

Restituzioni

tvf.TableValuedFunction

Examples

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