[ https://issues.apache.org/jira/browse/SPARK-20536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Cheung updated SPARK-20536: --------------------------------- Affects Version/s: (was: 2.3.0) 2.2.0 > Extend ColumnName to create StructFields with explicit nullable > --------------------------------------------------------------- > > Key: SPARK-20536 > URL: https://issues.apache.org/jira/browse/SPARK-20536 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.2.0 > Reporter: Jacek Laskowski > Priority: Trivial > > {{ColumnName}} defines methods to create {{StructFields}}. > It'd be very user-friendly if there were methods to create {{StructFields}} > with explicit {{nullable}} property (currently implicitly {{true}}). > That could look as follows: > {code} > // E.g. def int: StructField = StructField(name, IntegerType) > def int(nullable: Boolean): StructField = StructField(name, IntegerType, > nullable) > // or (untested) > def int(nullable: Boolean): StructField = int.copy(nullable = nullable) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org