Skip to content

Commit

Permalink
Fix the qualification tool per sql number output rows option (#6181)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graves <tgraves@apache.org>
  • Loading branch information
tgravescs authored Aug 1, 2022
1 parent d586b28 commit 19e914a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class QualOutputWriter(outputDir: String, reportReadSchema: Boolean,
sortedAsc.reverse
}
val finalSums = sorted.take(numOutputRows)
sorted.foreach { estInfo =>
finalSums.foreach { estInfo =>
val wStr = QualOutputWriter.constructPerSqlSummaryInfo(estInfo, headersAndSizes,
appIdMaxSize, TEXT_DELIMITER, true, maxSQLDescLength)
writer.write(wStr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class QualificationSuite extends FunSuite with BeforeAndAfterEach with Logging {
try {
val lines = persqlInputSource.getLines
// 4 lines of header and footer, limit is 2
assert(lines.size == (4 + 17))
assert(lines.size == (4 + 2))
} finally {
persqlInputSource.close()
}
Expand Down

0 comments on commit 19e914a

Please sign in to comment.