We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f19fe5 commit 9a26611Copy full SHA for 9a26611
1 file changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
@@ -120,7 +120,8 @@ case class InsertIntoTable(
120
override def output = child.output
121
122
override lazy val resolved = childrenResolved && child.output.zip(table.output).forall {
123
- case (childAttr, tableAttr) => childAttr.dataType == tableAttr.dataType
+ case (childAttr, tableAttr) =>
124
+ DataType.equalsIgnoreCompatibleNullability(childAttr.dataType, tableAttr.dataType)
125
}
126
127
0 commit comments