1 | #include "duckdb/planner/operator/logical_comparison_join.hpp" |
---|---|
2 | #include "duckdb/common/string_util.hpp" |
3 | |
4 | using namespace duckdb; |
5 | using namespace std; |
6 | |
7 | LogicalComparisonJoin::LogicalComparisonJoin(JoinType join_type, LogicalOperatorType logical_type) |
8 | : LogicalJoin(join_type, logical_type) { |
9 | } |
10 | |
11 | string LogicalComparisonJoin::ParamsToString() const { |
12 | string result = "["+ JoinTypeToString(join_type); |
13 | if (conditions.size() > 0) { |
14 | result += " "; |
15 | result += StringUtil::Join(conditions, conditions.size(), ", ", [](const JoinCondition &condition) { |
16 | return ExpressionTypeToString(condition.comparison) + "("+ condition.left->GetName() + ", "+ |
17 | condition.right->GetName() + ")"; |
18 | }); |
19 | result += "]"; |
20 | } |
21 | |
22 | return result; |
23 | } |
24 |