@@ -338,27 +338,27 @@ TEST_F(OptimizerTests, PushFilterThroughJoinTest) {
338
338
339
339
// Check join in the root
340
340
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 ());
342
342
auto join_op = group_expr->Op ().As <LogicalInnerJoin>();
343
343
EXPECT_EQ (1 , join_op->join_predicates .size ());
344
344
EXPECT_TRUE (join_op->join_predicates [0 ].expr ->ExactlyEquals (*predicates[0 ]));
345
345
346
346
// Check left get
347
347
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 ());
349
349
auto get_op = l_group_expr->Op ().As <LogicalGet>();
350
350
EXPECT_TRUE (get_op->predicates .empty ());
351
351
352
352
// Check right filter
353
353
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 ());
355
355
auto filter_op = r_group_expr->Op ().As <LogicalFilter>();
356
356
EXPECT_EQ (1 , filter_op->predicates .size ());
357
357
EXPECT_TRUE (filter_op->predicates [0 ].expr ->ExactlyEquals (*predicates[1 ]));
358
358
359
359
// Check get below filter
360
360
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 ());
362
362
get_op = group_expr->Op ().As <LogicalGet>();
363
363
EXPECT_TRUE (get_op->predicates .empty ());
364
364
@@ -425,20 +425,20 @@ TEST_F(OptimizerTests, PredicatePushDownRewriteTest) {
425
425
426
426
// Check join in the root
427
427
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 ());
429
429
auto join_op = group_expr->Op ().As <LogicalInnerJoin>();
430
430
EXPECT_EQ (1 , join_op->join_predicates .size ());
431
431
EXPECT_TRUE (join_op->join_predicates [0 ].expr ->ExactlyEquals (*predicates[0 ]));
432
432
433
433
// Check left get
434
434
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 ());
436
436
auto get_op = l_group_expr->Op ().As <LogicalGet>();
437
437
EXPECT_TRUE (get_op->predicates .empty ());
438
438
439
439
// Check right filter
440
440
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 ());
442
442
get_op = r_group_expr->Op ().As <LogicalGet>();
443
443
EXPECT_EQ (1 , get_op->predicates .size ());
444
444
EXPECT_TRUE (get_op->predicates [0 ].expr ->ExactlyEquals (*predicates[1 ]));
0 commit comments