Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SPARK-24305][SQL][FOLLOWUP] Fixing failing tests.
  • Loading branch information
mn-mikke committed May 17, 2018
commit 2862d3e4ad7c2207f23db2f2d58fb27ba6e708c5
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