Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nartal1 committed Dec 7, 2023
1 parent 319e25e commit de8111f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,10 @@ class QualificationSuite extends BaseTestSuite {

val filename = s"$outpath/rapids_4_spark_qualification_output/" +
s"rapids_4_spark_qualification_output_unsupportedOperators.csv"
val stageDurationFile = s"$outpath/rapids_4_spark_qualification_output/" +
s"rapids_4_spark_qualification_output_unsupportedOperatorsStageDuration.csv"
val inputSource = Source.fromFile(filename)
val unsupportedStageDuration = Source.fromFile(stageDurationFile)
try {
val lines = inputSource.getLines.toSeq
// 1 for header, 1 for values
Expand All @@ -1166,6 +1169,11 @@ class QualificationSuite extends BaseTestSuite {
assert(lines.size == expLinesSize)
assert(lines.head.contains("App ID,Unsupported Type,"))
assert(lines(1).contains("\"Read\",\"JSON\",\"Types not supported - bigint:int\""))

val stageDurationLines = unsupportedStageDuration.getLines.toSeq
assert(stageDurationLines.head.contains("" +
"Stage Wall Clock Duration,App Duration,Recommendation"))
assert(stageDurationLines(1).contains("Not Recommended"))
} finally {
inputSource.close()
}
Expand Down

0 comments on commit de8111f

Please sign in to comment.