[ https://issues.apache.org/jira/browse/SPARK-20536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16400021#comment-16400021 ]
Apache Spark commented on SPARK-20536: -------------------------------------- User 'efimpoberezkin' has created a pull request for this issue: https://github.com/apache/spark/pull/20832 > 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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org