Skip to content

Commit 2862d3e

Browse files
committed
[SPARK-24305][SQL][FOLLOWUP] Fixing failing tests.
1 parent f6368b5 commit 2862d3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,8 @@ case class Concat(children: Seq[Expression]) extends Expression {
12331233
|}
12341234
|if ($numElements > ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}) {
12351235
| throw new RuntimeException("Unsuccessful try to concat arrays with " + $numElements +
1236-
| " elements due to exceeding the array size limit " +
1237-
| ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
1236+
| " elements due to exceeding the array size limit" +
1237+
| " ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
12381238
|}
12391239
""".stripMargin
12401240

@@ -1409,8 +1409,8 @@ case class Flatten(child: Expression) extends UnaryExpression {
14091409
|}
14101410
|if ($variableName > ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}) {
14111411
| throw new RuntimeException("Unsuccessful try to flatten an array of arrays with " +
1412-
| $variableName + " elements due to exceeding the array size limit " +
1413-
| ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
1412+
| $variableName + " elements due to exceeding the array size limit" +
1413+
| " ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
14141414
|}
14151415
""".stripMargin
14161416
(code, variableName)
@@ -1564,8 +1564,8 @@ case class ArrayRepeat(left: Expression, right: Expression)
15641564
|}
15651565
|if ($numElements > ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}) {
15661566
| throw new RuntimeException("Unsuccessful try to create array with " + $numElements +
1567-
| " elements due to exceeding the array size limit " +
1568-
| ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
1567+
| " elements due to exceeding the array size limit" +
1568+
| " ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
15691569
|}
15701570
""".stripMargin
15711571

0 commit comments

Comments
 (0)