@@ -109,6 +109,10 @@ void InnerJoinAssociativity::Transform(
109
109
auto middle = children[0 ]->Children ()[1 ];
110
110
auto right = children[1 ];
111
111
112
+ LOG_TRACE (" Reordered join structured: (%s JOIN %s) JOIN %s" ,
113
+ left->Op ().GetName ().c_str (), middle->Op ().GetName ().c_str (),
114
+ right->Op ().GetName ().c_str ());
115
+
112
116
// Get Alias sets
113
117
auto &memo = context->metadata ->memo ;
114
118
auto middle_group_id = middle->Op ().As <LeafOperator>()->origin_group ;
@@ -163,10 +167,6 @@ void InnerJoinAssociativity::Transform(
163
167
new_parent_join->PushChild (left);
164
168
new_parent_join->PushChild (new_child_join);
165
169
166
- LOG_DEBUG (" Reordered join structured: (%s JOIN %s) JOIN %s" ,
167
- left->Op ().GetName ().c_str (), middle->Op ().GetName ().c_str (),
168
- right->Op ().GetName ().c_str ());
169
-
170
170
transformed.push_back (new_parent_join);
171
171
}
172
172
@@ -1059,7 +1059,7 @@ int MarkJoinToInnerJoin::Promise(GroupExpression *group_expr,
1059
1059
(void )context;
1060
1060
auto root_type = match_pattern->Type ();
1061
1061
// This rule is not applicable
1062
- if (root_type != OpType::Leaf && root_type != group_expr->Op ().type ()) {
1062
+ if (root_type != OpType::Leaf && root_type != group_expr->Op ().GetType ()) {
1063
1063
return 0 ;
1064
1064
}
1065
1065
return static_cast <int >(UnnestPromise::Low);
@@ -1110,7 +1110,7 @@ int SingleJoinToInnerJoin::Promise(GroupExpression *group_expr,
1110
1110
(void )context;
1111
1111
auto root_type = match_pattern->Type ();
1112
1112
// This rule is not applicable
1113
- if (root_type != OpType::Leaf && root_type != group_expr->Op ().type ()) {
1113
+ if (root_type != OpType::Leaf && root_type != group_expr->Op ().GetType ()) {
1114
1114
return 0 ;
1115
1115
}
1116
1116
return static_cast <int >(UnnestPromise::Low);
@@ -1163,7 +1163,7 @@ int PullFilterThroughMarkJoin::Promise(GroupExpression *group_expr,
1163
1163
(void )context;
1164
1164
auto root_type = match_pattern->Type ();
1165
1165
// This rule is not applicable
1166
- if (root_type != OpType::Leaf && root_type != group_expr->Op ().type ()) {
1166
+ if (root_type != OpType::Leaf && root_type != group_expr->Op ().GetType ()) {
1167
1167
return 0 ;
1168
1168
}
1169
1169
return static_cast <int >(UnnestPromise::High);
@@ -1224,7 +1224,7 @@ int PullFilterThroughAggregation::Promise(GroupExpression *group_expr,
1224
1224
(void )context;
1225
1225
auto root_type = match_pattern->Type ();
1226
1226
// This rule is not applicable
1227
- if (root_type != OpType::Leaf && root_type != group_expr->Op ().type ()) {
1227
+ if (root_type != OpType::Leaf && root_type != group_expr->Op ().GetType ()) {
1228
1228
return 0 ;
1229
1229
}
1230
1230
return static_cast <int >(UnnestPromise::High);
0 commit comments