188942 : client(client), allocator(Allocator::Get(client)), op(op), left_outer(
IsLeftOuterJoin(op.join_type)),
188943 left_position(0), first_fetch(true), finished(true), right_position(0), right_chunk_index(0),
188944 rhs_executor(client) {
188945 left_outer.Initialize(STANDARD_VECTOR_SIZE);
188946 lhs_payload.Initialize(client, op.children[0].get().GetTypes());
188947
188948
188949 lhs_order.emplace_back(op.lhs_orders[0].Copy());
188950
188951
188952 sel.Initialize(STANDARD_VECTOR_SIZE);
188953 vector<LogicalType> condition_types;
188954 for (auto &order : op.rhs_orders) {
188955 rhs_executor.AddExpression(*order.expression);
188956 condition_types.push_back(order.expression->return_type);
188957 }
188958 rhs_keys.Initialize(client, condition_types);
188959 rhs_input.Initialize(client, op.children[1].get().GetTypes());
188960
188961 auto &gsink = op.sink_state->Cast<MergeJoinGlobalState>();
188962 auto &rhs_table = *gsink.table;
188963 rhs_iterator = rhs_table.CreateIteratorState();
188964 rhs_table.InitializePayloadState(rhs_chunk_state);
188965 rhs_scan_state = rhs_table.CreateScanState(client);
188966
188967
188968 sort_key_type = rhs_table.GetSortKeyType();
188969 }
bool IsLeftOuterJoin(JoinType type)
True if join is left or full outer join.
Definition duckdb.cpp:68419