You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/22 07:38:58 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #24176: [SPARK-27233] [SQL]DF schema should match with table schema when converted to table

HyukjinKwon commented on a change in pull request #24176: [SPARK-27233] [SQL]DF schema should match with table schema when converted to table
URL: https://github.com/apache/spark/pull/24176#discussion_r268060906
 
 

 ##########
 File path: sql/catalyst/src/main/scala/org/apache/spark/sql/types/ArrayType.scala
 ##########
 @@ -90,7 +90,7 @@ case class ArrayType(elementType: DataType, containsNull: Boolean) extends DataT
   override def sql: String = s"ARRAY<${elementType.sql}>"
 
   override private[spark] def asNullable: ArrayType =
-    ArrayType(elementType.asNullable, containsNull = true)
+    ArrayType(elementType.asNullable, containsNull)
 
 Review comment:
   Hey, `asNullable` should return it as nullable. This is a general problem when you read it, it becomes nullable in SparkSQL file formats. We need to revisit nullability (given the community discussion so far) in general, not only specifically for this one.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org