Skip to content

Commit

Permalink
- Fixing compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonal committed Sep 6, 2019
1 parent cd9ab83 commit 6a12a57
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dtests/src/test/scala/io/snappydata/hydra/SnappyTestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,14 @@ object SnappyTestUtils {
fullRSValidationFailed = true
pw.println("Found mismatch in resultset")
if(missingDF.size() > 0) {
pw.println(s"The following ${missingDF.size} rows were missing in snappyDF:\n " +
missingDF.forEach(println))
pw.println(s"The following ${missingDF.size} rows were missing in snappyDF:\n ")
for(i <- 0 to missingDF.size())
pw.println(missingDF.get(i))
}
if(unexpectedDF.size() > 0) {
pw.println(s"The following ${unexpectedDF.size} rows were unexpected in snappyDF:\n" +
missingDF.forEach(println))
pw.println(s"The following ${unexpectedDF.size} rows were unexpected in snappyDF:\n")
for(i <- 0 to unexpectedDF.size())
pw.println(unexpectedDF.get(i))
}
}
// fullRSValidationFailed
Expand Down Expand Up @@ -441,7 +443,7 @@ object SnappyTestUtils {
}

// check if the mismatch is due to decimal, and can be ignored
if ((missing.size() > 0) && missing.size() == unexpected.size()) {
if ((missing.size() > 0) && (missing.size() == unexpected.size())) {
Collections.sort(missing)
Collections.sort(unexpected)
for (i <- 0 until missing.size()) {
Expand Down

0 comments on commit 6a12a57

Please sign in to comment.