Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 010851c

Browse files
author
GustavoAngulo
committed
Updated optimizer test
1 parent 6ca129b commit 010851c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/optimizer/optimizer_test.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -338,27 +338,27 @@ TEST_F(OptimizerTests, PushFilterThroughJoinTest) {
338338

339339
// Check join in the root
340340
auto group_expr = GetSingleGroupExpression(memo, head_gexpr.get(), 0);
341-
EXPECT_EQ(OpType::InnerJoin, group_expr->Op().type());
341+
EXPECT_EQ(OpType::InnerJoin, group_expr->Op().GetType());
342342
auto join_op = group_expr->Op().As<LogicalInnerJoin>();
343343
EXPECT_EQ(1, join_op->join_predicates.size());
344344
EXPECT_TRUE(join_op->join_predicates[0].expr->ExactlyEquals(*predicates[0]));
345345

346346
// Check left get
347347
auto l_group_expr = GetSingleGroupExpression(memo, group_expr, 0);
348-
EXPECT_EQ(OpType::Get, l_group_expr->Op().type());
348+
EXPECT_EQ(OpType::Get, l_group_expr->Op().GetType());
349349
auto get_op = l_group_expr->Op().As<LogicalGet>();
350350
EXPECT_TRUE(get_op->predicates.empty());
351351

352352
// Check right filter
353353
auto r_group_expr = GetSingleGroupExpression(memo, group_expr, 1);
354-
EXPECT_EQ(OpType::LogicalFilter, r_group_expr->Op().type());
354+
EXPECT_EQ(OpType::LogicalFilter, r_group_expr->Op().GetType());
355355
auto filter_op = r_group_expr->Op().As<LogicalFilter>();
356356
EXPECT_EQ(1, filter_op->predicates.size());
357357
EXPECT_TRUE(filter_op->predicates[0].expr->ExactlyEquals(*predicates[1]));
358358

359359
// Check get below filter
360360
group_expr = GetSingleGroupExpression(memo, r_group_expr, 0);
361-
EXPECT_EQ(OpType::Get, l_group_expr->Op().type());
361+
EXPECT_EQ(OpType::Get, l_group_expr->Op().GetType());
362362
get_op = group_expr->Op().As<LogicalGet>();
363363
EXPECT_TRUE(get_op->predicates.empty());
364364

@@ -425,20 +425,20 @@ TEST_F(OptimizerTests, PredicatePushDownRewriteTest) {
425425

426426
// Check join in the root
427427
auto group_expr = GetSingleGroupExpression(memo, head_gexpr.get(), 0);
428-
EXPECT_EQ(OpType::InnerJoin, group_expr->Op().type());
428+
EXPECT_EQ(OpType::InnerJoin, group_expr->Op().GetType());
429429
auto join_op = group_expr->Op().As<LogicalInnerJoin>();
430430
EXPECT_EQ(1, join_op->join_predicates.size());
431431
EXPECT_TRUE(join_op->join_predicates[0].expr->ExactlyEquals(*predicates[0]));
432432

433433
// Check left get
434434
auto l_group_expr = GetSingleGroupExpression(memo, group_expr, 0);
435-
EXPECT_EQ(OpType::Get, l_group_expr->Op().type());
435+
EXPECT_EQ(OpType::Get, l_group_expr->Op().GetType());
436436
auto get_op = l_group_expr->Op().As<LogicalGet>();
437437
EXPECT_TRUE(get_op->predicates.empty());
438438

439439
// Check right filter
440440
auto r_group_expr = GetSingleGroupExpression(memo, group_expr, 1);
441-
EXPECT_EQ(OpType::Get, r_group_expr->Op().type());
441+
EXPECT_EQ(OpType::Get, r_group_expr->Op().GetType());
442442
get_op = r_group_expr->Op().As<LogicalGet>();
443443
EXPECT_EQ(1, get_op->predicates.size());
444444
EXPECT_TRUE(get_op->predicates[0].expr->ExactlyEquals(*predicates[1]));

0 commit comments

Comments
 (0)