186868 auto &left_table = *gsink.tables[0];
186869 auto &right_table = *gsink.tables[1];
186870
186871 left_blocks = left_table.BlockCount();
186872 if (left_table.found_match) {
186873 left_outers = left_blocks;
186874 }
186875
186876 right_blocks = right_table.BlockCount();
186877 if (right_table.found_match) {
186878 right_outers = right_blocks;
186879 }
186880
186881
186882
186883
186884
186885
186886
186887 const auto &order1 = op.lhs_orders[0];
186888 const auto &order2 = op.lhs_orders[1];
186889
186890
186891
186892
186893
186894
186895
186896 vector<LogicalType> types;
186897 types.emplace_back(order2.expression->return_type);
186898 types.emplace_back(LogicalType::BIGINT);
186899
186900
186901 auto ref = make_uniq<BoundReferenceExpression>(order1.expression->return_type, 0U);
186902 vector<BoundOrderByNode> orders;
186903 orders.emplace_back(order1.type, order1.null_order, std::move(ref));
186904
186905
186906
186907
186908
186909
186910
186911
186912
186913
186914
186915
186916
186917
186918
186919 auto from_left = make_uniq<BoundConstantExpression>(
Value::BOOLEAN(
true));
186920 const auto strict1 = IEJoinUnion::IsStrictComparison(op.conditions[0].comparison);
186921 orders.emplace_back(!strict1 ? OrderType::DESCENDING : OrderType::ASCENDING, OrderByNullType::ORDER_DEFAULT,
186922 std::move(from_left));
186923
186924 l1 = make_uniq<SortedTable>(client, orders, types, op);
186925
186926
186927
186928
186929
186930
186931 types.clear();
186932 types.emplace_back(LogicalType::BIGINT);
186933
186934
186935 orders.clear();
186936 ref = make_uniq<BoundReferenceExpression>(order2.expression->return_type, 0U);
186937 orders.emplace_back(order2.type, order2.null_order, std::move(ref));
186938
186939 l2 = make_uniq<SortedTable>(client, orders, types, op);
186940
186941
186942 const auto join_count = left_table.count.load() + right_table.count.load();
186943 l2_blocks = BinValue<idx_t>(join_count, STANDARD_VECTOR_SIZE);
186944
186945
186946 auto &ts = TaskScheduler::GetScheduler(client);
186947 const auto threads = NumericCast<idx_t>(ts.NumberOfThreads());
186948 per_thread = BinValue<idx_t>(l2_blocks, threads);
186949
186950 Initialize();
186951}
unique_ptr< SortedTable > l2
L2.
Definition duckdb.cpp:186413
atomic< IEJoinSourceStage > stage
The processing stage.
Definition duckdb.cpp:186392
atomic< idx_t > finished
The number of tasks finished.
Definition duckdb.cpp:186404
atomic< idx_t > started
The number of started tasks.
Definition duckdb.cpp:186402
atomic< bool > stopped
Stop producing tasks.
Definition duckdb.cpp:186406
unique_ptr< SortedTable > l1
L1.
Definition duckdb.cpp:186411
static DUCKDB_API Value BOOLEAN(bool value)
Create a boolean Value from a specified value.
Definition duckdb.cpp:132118