Skip to content

Commit 4b42c78

Browse files
committed
[SPARK-24165][SQL][branch-2.3] Fixing the failing hive tests
1 parent 163b880 commit 4b42c78

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ trait ComplexTypeMergingExpression extends Expression {
711711
inputTypesForMerging.nonEmpty,
712712
"The collection of input data types must not be empty.")
713713
require(
714-
inputTypesForMerging.sliding(2, 1).forall {
714+
inputTypesForMerging.length <= 1 || inputTypesForMerging.sliding(2, 1).forall {
715715
case Seq(dt1, dt2) => DataType.equalsIgnoreCaseAndNullability(dt1, dt2)
716716
},
717717
"All input types must be the same except nullable, containsNull, valueContainsNull flags.")

0 commit comments

Comments
 (0)