Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sezruby committed Mar 11, 2021
1 parent 2089026 commit e1dee72
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,14 @@ class DeltaLakeIntegrationTest extends QueryTest with HyperspaceSuite {
spark.disableHyperspace()
val dfWithHyperspaceDisabled = query()
val basePlan = dfWithHyperspaceDisabled.queryExecution.optimizedPlan
val resultDisabled = dfWithHyperspaceDisabled.collect().toSeq.toSet
val resultDisabled = dfWithHyperspaceDisabled.collect().toSeq.sortBy(_.hashCode())
spark.enableHyperspace()
val dfWithHyperspaceEnabled = query()
assert(!basePlan.equals(dfWithHyperspaceEnabled.queryExecution.optimizedPlan))
val resultEnabled = dfWithHyperspaceEnabled.collect().toSeq.toSet
val updatedPlan = dfWithHyperspaceEnabled.queryExecution.optimizedPlan
val resultEnabled = dfWithHyperspaceEnabled.collect().toSeq.sortBy(_.hashCode())
assert(!basePlan.equals(updatedPlan))
assert(resultEnabled.equals(resultDisabled))
checkAnswer(dfWithHyperspaceDisabled, dfWithHyperspaceEnabled)
}
}
}
Expand Down

0 comments on commit e1dee72

Please sign in to comment.