[ https://issues.apache.org/jira/browse/SPARK-20536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-20536: ------------------------------------ Assignee: Apache Spark > 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 > Assignee: Apache Spark > 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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org