nxcals.api.common.utils.array_utils.StructType.fieldNames

StructType.fieldNames() List[str]

Returns all field names in a list.

Examples

>>> from pyspark.sql.types import StringType, StructField, StructType
>>> struct = StructType([StructField("f1", StringType(), True)])
>>> struct.fieldNames()
['f1']