I just wondered if there is an EnumType
in PySpark/Spark.
I want to add constraints on StringType
s (or other types as well) to have certain values only in my DataFrame
's schema.
Asked
Active
Viewed 1,188 times
7

Ehsan Poursaeed
- 125
- 9
-
Might be a duplicate of https://stackoverflow.com/questions/44723938/enum-equivalent-in-spark-dataframe-parquet – w177us May 18 '21 at 15:22