Skip to content

Commit

Permalink
Fix indentation for the previous patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jan 8, 2016
1 parent 5028a00 commit 726bd3c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions sql/core/src/test/scala/org/apache/spark/sql/SQLConfSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,20 @@ class SQLConfSuite extends QueryTest with SharedSQLContext {

// Test overflow exception
intercept[IllegalArgumentException] {
// This value exceeds Long.MaxValue
// Utils.byteStringAsBytes("90000000000g")
sqlContext.setConf(SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key, "90000000000g")
// This value exceeds Long.MaxValue
sqlContext.setConf(SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key, "90000000000g")
}

intercept[IllegalArgumentException] {
// This value less than Int.MinValue
// Utils.byteStringAsBytes("-90000000000g")
// This value less than Int.MinValue
sqlContext.setConf(SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key, "-90000000000g")
}
}

// Test invalid input
intercept[IllegalArgumentException] {
// This value exceeds Long.MaxValue
// Utils.byteStringAsBytes("-1g")
sqlContext.setConf(SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key, "-1g")
}
// This value exceeds Long.MaxValue
sqlContext.setConf(SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key, "-1g")
}
sqlContext.conf.clear()
}
}

0 comments on commit 726bd3c

Please sign in to comment.