HyukjinKwon commented on code in PR #39970: URL: https://github.com/apache/spark/pull/39970#discussion_r1106536193
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala: ########## @@ -4840,7 +4840,7 @@ case class ArrayInsert(srcArrayExpr: Expression, posExpr: Expression, itemExpr: override def third: Expression = itemExpr override def prettyName: String = "array_insert" - override def dataType: DataType = first.dataType + override def dataType: DataType = if (third.nullable) first.dataType.asNullable else first.dataType Review Comment: Thanks man! -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
