Skip to content

Commit 9a26611

Browse files
committed
Make InsertIntoTable happy.
1 parent 8f19fe5 commit 9a26611

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ case class InsertIntoTable(
120120
override def output = child.output
121121

122122
override lazy val resolved = childrenResolved && child.output.zip(table.output).forall {
123-
case (childAttr, tableAttr) => childAttr.dataType == tableAttr.dataType
123+
case (childAttr, tableAttr) =>
124+
DataType.equalsIgnoreCompatibleNullability(childAttr.dataType, tableAttr.dataType)
124125
}
125126
}
126127

0 commit comments

Comments
 (0)