[Minor] Trivial fix to make codes more readable
It should just use `maxResults` there. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #2654 from viirya/trivial_fix and squashes the following commits: 1362289 [Liang-Chi Hsieh] Trivial fix to make codes more readable.
This commit is contained in:
parent
e222221e24
commit
79b2108de3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue