Skip to content

Commit

Permalink
[SPARK-24305][SQL][FOLLOWUP] Fixing failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mn-mikke committed May 17, 2018
1 parent f6368b5 commit 2862d3e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,8 @@ case class Concat(children: Seq[Expression]) extends Expression {
|}
|if ($numElements > ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}) {
| throw new RuntimeException("Unsuccessful try to concat arrays with " + $numElements +
| " elements due to exceeding the array size limit " +
| ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
| " elements due to exceeding the array size limit" +
| " ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
|}
""".stripMargin

Expand Down Expand Up @@ -1409,8 +1409,8 @@ case class Flatten(child: Expression) extends UnaryExpression {
|}
|if ($variableName > ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}) {
| throw new RuntimeException("Unsuccessful try to flatten an array of arrays with " +
| $variableName + " elements due to exceeding the array size limit " +
| ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
| $variableName + " elements due to exceeding the array size limit" +
| " ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
|}
""".stripMargin
(code, variableName)
Expand Down Expand Up @@ -1564,8 +1564,8 @@ case class ArrayRepeat(left: Expression, right: Expression)
|}
|if ($numElements > ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}) {
| throw new RuntimeException("Unsuccessful try to create array with " + $numElements +
| " elements due to exceeding the array size limit " +
| ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
| " elements due to exceeding the array size limit" +
| " ${ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}.");
|}
""".stripMargin

Expand Down

0 comments on commit 2862d3e

Please sign in to comment.