182564 left_outer(
IsLeftOuterJoin(op.join_type)), lhs_executor(client), fetch_next_left(
true) {
182565 lhs_keys.Initialize(client, op.join_key_types);
182566 for (const auto &cond : op.conditions) {
182567 lhs_executor.AddExpression(*cond.left);
182568 }
182569
182570 lhs_payload.Initialize(client, op.children[0].get().GetTypes());
182571 rhs_payload.Initialize(client, op.children[1].get().GetTypes());
182572 rhs_input.Initialize(client, op.children[1].get().GetTypes());
182573
182574 lhs_match_sel.Initialize();
182575 rhs_match_sel.Initialize();
182576 left_outer.Initialize(STANDARD_VECTOR_SIZE);
182577
182578
182579 vector<LogicalType> prefix_types;
182580 for (
idx_t i = 0; i < op.conditions.size() - 1; ++i) {
182581 const auto &cond = op.conditions[i];
182582 const auto &type = cond.left->return_type;
182583 prefix_types.emplace_back(type);
182584 SortKeyPrefixComparisonColumn col;
182586 switch (type.id()) {
182587 case LogicalTypeId::VARCHAR:
182588 case LogicalTypeId::BLOB:
182589 col.type = SortKeyPrefixComparisonType::VARCHAR;
182590 break;
182591 case LogicalTypeId::STRUCT:
182592 case LogicalTypeId::LIST:
182593 case LogicalTypeId::ARRAY:
182594 col.type = SortKeyPrefixComparisonType::NESTED;
182595 break;
182596 default:
182597 col.type = SortKeyPrefixComparisonType::FIXED;
182598 col.size = 1 + GetTypeIdSize(type.InternalType());
182599 break;
182600 }
182601 prefix.columns.emplace_back(col);
182602 }
182603 if (!prefix_types.empty()) {
182604
182605 prefix.decoded.Initialize(client, prefix_types, 2);
182606 }
182607}
const bool strict
Is the inequality strict?
Definition duckdb.cpp:182526
AsOfGlobalSourceState & gsource
The source state.
Definition duckdb.cpp:182524
bool IsLeftOuterJoin(JoinType type)
True if join is left or full outer join.
Definition duckdb.cpp:68419
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117