Skip to content

Commit 79b2108

Browse files
viiryamarmbrus
authored andcommitted
[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.
1 parent e222221 commit 79b2108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
268268
*/
269269
protected[sql] def runSqlHive(sql: String): Seq[String] = {
270270
val maxResults = 100000
271-
val results = runHive(sql, 100000)
271+
val results = runHive(sql, maxResults)
272272
// It is very confusing when you only get back some of the results...
273273
if (results.size == maxResults) sys.error("RESULTS POSSIBLY TRUNCATED")
274274
results

0 commit comments

Comments
 (0)