1 | #include "duckdb/common/exception.hpp" |
---|---|
2 | #include "duckdb/parser/tableref.hpp" |
3 | #include "duckdb/parser/transformer.hpp" |
4 | |
5 | using namespace duckdb; |
6 | using namespace std; |
7 | |
8 | unique_ptr<TableRef> Transformer::TransformTableRefNode(PGNode *n) { |
9 | switch (n->type) { |
10 | case T_PGRangeVar: |
11 | return TransformRangeVar(reinterpret_cast<PGRangeVar *>(n)); |
12 | case T_PGJoinExpr: |
13 | return TransformJoin(reinterpret_cast<PGJoinExpr *>(n)); |
14 | case T_PGRangeSubselect: |
15 | return TransformRangeSubselect(reinterpret_cast<PGRangeSubselect *>(n)); |
16 | case T_PGRangeFunction: |
17 | return TransformRangeFunction(reinterpret_cast<PGRangeFunction *>(n)); |
18 | default: |
19 | throw NotImplementedException("From Type %d not supported yet...", n->type); |
20 | } |
21 | } |
22 |