Repository: spark Updated Branches: refs/heads/master e222221e2 -> 79b2108de
[Minor] Trivial fix to make codes more readable It should just use `maxResults` there. Author: Liang-Chi Hsieh <[email protected]> Closes #2654 from viirya/trivial_fix and squashes the following commits: 1362289 [Liang-Chi Hsieh] Trivial fix to make codes more readable. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/79b2108d Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/79b2108d Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/79b2108d Branch: refs/heads/master Commit: 79b2108de30bf91c8e58bb36405d334aeb2a00ad Parents: e222221 Author: Liang-Chi Hsieh <[email protected]> Authored: Sun Oct 5 17:44:38 2014 -0700 Committer: Michael Armbrust <[email protected]> Committed: Sun Oct 5 17:44:38 2014 -0700 ---------------------------------------------------------------------- .../src/main/scala/org/apache/spark/sql/hive/HiveContext.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/79b2108d/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala ---------------------------------------------------------------------- diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala index 8bcc098..fad3b39 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala @@ -268,7 +268,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) { */ protected[sql] def runSqlHive(sql: String): Seq[String] = { val maxResults = 100000 - val results = runHive(sql, 100000) + val results = runHive(sql, maxResults) // It is very confusing when you only get back some of the results... if (results.size == maxResults) sys.error("RESULTS POSSIBLY TRUNCATED") results --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
