Skip to content

Commit

Permalink
Adapt tests after query planner fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ullingerc committed Nov 22, 2024
1 parent 39fd03d commit ebe8b17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/engine/SpatialJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ PreparedSpatialJoinParams SpatialJoin::prepareJoin() const {
Result SpatialJoin::computeResult([[maybe_unused]] bool requestLaziness) {
AD_CONTRACT_CHECK(
isConstructed(),
"SpatialJoin cannot be computed because at least one child is missing.");
"SpatialJoin needs two children, but at least one is missing");
SpatialJoinAlgorithms algorithms{_executionContext, prepareJoin(), config_};
if (config_->algo_ == SpatialJoinAlgorithm::BASELINE) {
return algorithms.BaselineAlgorithm();
Expand Down
4 changes: 2 additions & 2 deletions test/engine/SpatialJoinTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ TEST(SpatialJoin, getChildren) {
std::shared_ptr<Operation> op = spatialJoinOperation->getRootOperation();
SpatialJoin* spatialJoin = static_cast<SpatialJoin*>(op.get());

ASSERT_ANY_THROW(spatialJoin->getChildren());
ASSERT_EQ(spatialJoin->getChildren().size(), 0);

auto spJoin1 = spatialJoin->addChild(leftChild, point1.getVariable());
spatialJoin = static_cast<SpatialJoin*>(spJoin1.get());

ASSERT_ANY_THROW(spatialJoin->getChildren());
ASSERT_EQ(spatialJoin->getChildren().size(), 1);

auto spJoin2 = spatialJoin->addChild(rightChild, point2.getVariable());
spatialJoin = static_cast<SpatialJoin*>(spJoin2.get());
Expand Down

0 comments on commit ebe8b17

Please sign in to comment.