1 | #include "duckdb/common/enums/join_type.hpp" |
---|---|
2 | |
3 | using namespace std; |
4 | |
5 | namespace duckdb { |
6 | |
7 | string JoinTypeToString(JoinType type) { |
8 | switch (type) { |
9 | case JoinType::LEFT: |
10 | return "LEFT"; |
11 | case JoinType::RIGHT: |
12 | return "RIGHT"; |
13 | case JoinType::INNER: |
14 | return "INNER"; |
15 | case JoinType::OUTER: |
16 | return "OUTER"; |
17 | case JoinType::SEMI: |
18 | return "SEMI"; |
19 | case JoinType::ANTI: |
20 | return "ANTI"; |
21 | case JoinType::SINGLE: |
22 | return "SINGLE"; |
23 | case JoinType::MARK: |
24 | return "MARK"; |
25 | case JoinType::INVALID: |
26 | default: |
27 | return "INVALID"; |
28 | } |
29 | } |
30 | |
31 | } // namespace duckdb |
32 |