@@ -31,7 +31,7 @@ class UpdateClause;
31
31
}
32
32
33
33
namespace catalog {
34
- class TableCatalogObject ;
34
+ class TableCatalogObject ;
35
35
}
36
36
37
37
namespace optimizer {
@@ -51,10 +51,10 @@ class LeafOperator : OperatorNode<LeafOperator> {
51
51
// ===--------------------------------------------------------------------===//
52
52
class LogicalGet : public OperatorNode <LogicalGet> {
53
53
public:
54
- static Operator make (oid_t get_id = 0 ,
55
- std::vector<AnnotatedExpression> predicates = {},
56
- std::shared_ptr<catalog::TableCatalogObject> table = nullptr ,
57
- std::string alias = " " , bool update = false );
54
+ static Operator make (
55
+ oid_t get_id = 0 , std::vector<AnnotatedExpression> predicates = {},
56
+ std::shared_ptr<catalog::TableCatalogObject> table = nullptr ,
57
+ std::string alias = " " , bool update = false );
58
58
59
59
bool operator ==(const BaseOperatorNode &r) override ;
60
60
@@ -169,7 +169,8 @@ class LogicalJoin : public OperatorNode<LogicalJoin> {
169
169
public:
170
170
static Operator make (JoinType _type);
171
171
172
- static Operator make (JoinType _type, std::vector<AnnotatedExpression> &conditions);
172
+ static Operator make (JoinType _type,
173
+ std::vector<AnnotatedExpression> &conditions);
173
174
174
175
bool operator ==(const BaseOperatorNode &r) override ;
175
176
@@ -179,52 +180,6 @@ class LogicalJoin : public OperatorNode<LogicalJoin> {
179
180
JoinType type;
180
181
};
181
182
182
- // ===--------------------------------------------------------------------===//
183
- // InnerJoin
184
- // ===--------------------------------------------------------------------===//
185
- class LogicalInnerJoin : public OperatorNode <LogicalInnerJoin> {
186
- public:
187
- static Operator make ();
188
-
189
- static Operator make (std::vector<AnnotatedExpression> &conditions);
190
-
191
- bool operator ==(const BaseOperatorNode &r) override ;
192
-
193
- hash_t Hash () const override ;
194
-
195
- std::vector<AnnotatedExpression> join_predicates;
196
- };
197
-
198
- // ===--------------------------------------------------------------------===//
199
- // LeftJoin
200
- // ===--------------------------------------------------------------------===//
201
- class LogicalLeftJoin : public OperatorNode <LogicalLeftJoin> {
202
- public:
203
- static Operator make (expression::AbstractExpression *condition = nullptr );
204
-
205
- std::shared_ptr<expression::AbstractExpression> join_predicate;
206
- };
207
-
208
- // ===--------------------------------------------------------------------===//
209
- // RightJoin
210
- // ===--------------------------------------------------------------------===//
211
- class LogicalRightJoin : public OperatorNode <LogicalRightJoin> {
212
- public:
213
- static Operator make (expression::AbstractExpression *condition = nullptr );
214
-
215
- std::shared_ptr<expression::AbstractExpression> join_predicate;
216
- };
217
-
218
- // ===--------------------------------------------------------------------===//
219
- // OuterJoin
220
- // ===--------------------------------------------------------------------===//
221
- class LogicalOuterJoin : public OperatorNode <LogicalOuterJoin> {
222
- public:
223
- static Operator make (expression::AbstractExpression *condition = nullptr );
224
-
225
- std::shared_ptr<expression::AbstractExpression> join_predicate;
226
- };
227
-
228
183
// ===--------------------------------------------------------------------===//
229
184
// SemiJoin
230
185
// ===--------------------------------------------------------------------===//
@@ -263,7 +218,8 @@ class LogicalAggregateAndGroupBy
263
218
class LogicalInsert : public OperatorNode <LogicalInsert> {
264
219
public:
265
220
static Operator make (
266
- std::shared_ptr<catalog::TableCatalogObject> target_table, const std::vector<std::string> *columns,
221
+ std::shared_ptr<catalog::TableCatalogObject> target_table,
222
+ const std::vector<std::string> *columns,
267
223
const std::vector<std::vector<
268
224
std::unique_ptr<expression::AbstractExpression>>> *values);
269
225
@@ -275,7 +231,8 @@ class LogicalInsert : public OperatorNode<LogicalInsert> {
275
231
276
232
class LogicalInsertSelect : public OperatorNode <LogicalInsertSelect> {
277
233
public:
278
- static Operator make (std::shared_ptr<catalog::TableCatalogObject> target_table);
234
+ static Operator make (
235
+ std::shared_ptr<catalog::TableCatalogObject> target_table);
279
236
280
237
std::shared_ptr<catalog::TableCatalogObject> target_table;
281
238
};
@@ -303,7 +260,8 @@ class LogicalLimit : public OperatorNode<LogicalLimit> {
303
260
// ===--------------------------------------------------------------------===//
304
261
class LogicalDelete : public OperatorNode <LogicalDelete> {
305
262
public:
306
- static Operator make (std::shared_ptr<catalog::TableCatalogObject> target_table);
263
+ static Operator make (
264
+ std::shared_ptr<catalog::TableCatalogObject> target_table);
307
265
308
266
std::shared_ptr<catalog::TableCatalogObject> target_table;
309
267
};
@@ -334,7 +292,8 @@ class DummyScan : public OperatorNode<DummyScan> {
334
292
// ===--------------------------------------------------------------------===//
335
293
class PhysicalSeqScan : public OperatorNode <PhysicalSeqScan> {
336
294
public:
337
- static Operator make (oid_t get_id, std::shared_ptr<catalog::TableCatalogObject> table,
295
+ static Operator make (oid_t get_id,
296
+ std::shared_ptr<catalog::TableCatalogObject> table,
338
297
std::string alias,
339
298
std::vector<AnnotatedExpression> predicates,
340
299
bool update);
@@ -356,7 +315,8 @@ class PhysicalSeqScan : public OperatorNode<PhysicalSeqScan> {
356
315
// ===--------------------------------------------------------------------===//
357
316
class PhysicalIndexScan : public OperatorNode <PhysicalIndexScan> {
358
317
public:
359
- static Operator make (oid_t get_id, std::shared_ptr<catalog::TableCatalogObject> table,
318
+ static Operator make (oid_t get_id,
319
+ std::shared_ptr<catalog::TableCatalogObject> table,
360
320
std::string alias,
361
321
std::vector<AnnotatedExpression> predicates, bool update,
362
322
oid_t index_id, std::vector<oid_t > key_column_id_list,
@@ -430,8 +390,7 @@ class PhysicalLimit : public OperatorNode<PhysicalLimit> {
430
390
class PhysicalNLJoin : public OperatorNode <PhysicalNLJoin> {
431
391
public:
432
392
static Operator make (
433
- JoinType _type,
434
- std::vector<AnnotatedExpression> conditions,
393
+ JoinType _type, std::vector<AnnotatedExpression> conditions,
435
394
std::vector<std::unique_ptr<expression::AbstractExpression>> &left_keys,
436
395
std::vector<std::unique_ptr<expression::AbstractExpression>> &right_keys);
437
396
@@ -452,8 +411,7 @@ class PhysicalNLJoin : public OperatorNode<PhysicalNLJoin> {
452
411
class PhysicalHashJoin : public OperatorNode <PhysicalHashJoin> {
453
412
public:
454
413
static Operator make (
455
- JoinType _type,
456
- std::vector<AnnotatedExpression> conditions,
414
+ JoinType _type, std::vector<AnnotatedExpression> conditions,
457
415
std::vector<std::unique_ptr<expression::AbstractExpression>> &left_keys,
458
416
std::vector<std::unique_ptr<expression::AbstractExpression>> &right_keys);
459
417
@@ -574,7 +532,8 @@ class PhysicalOuterHashJoin : public OperatorNode<PhysicalOuterHashJoin> {
574
532
class PhysicalInsert : public OperatorNode <PhysicalInsert> {
575
533
public:
576
534
static Operator make (
577
- std::shared_ptr<catalog::TableCatalogObject> target_table, const std::vector<std::string> *columns,
535
+ std::shared_ptr<catalog::TableCatalogObject> target_table,
536
+ const std::vector<std::string> *columns,
578
537
const std::vector<std::vector<
579
538
std::unique_ptr<expression::AbstractExpression>>> *values);
580
539
@@ -586,7 +545,8 @@ class PhysicalInsert : public OperatorNode<PhysicalInsert> {
586
545
587
546
class PhysicalInsertSelect : public OperatorNode <PhysicalInsertSelect> {
588
547
public:
589
- static Operator make (std::shared_ptr<catalog::TableCatalogObject> target_table);
548
+ static Operator make (
549
+ std::shared_ptr<catalog::TableCatalogObject> target_table);
590
550
591
551
std::shared_ptr<catalog::TableCatalogObject> target_table;
592
552
};
@@ -596,7 +556,8 @@ class PhysicalInsertSelect : public OperatorNode<PhysicalInsertSelect> {
596
556
// ===--------------------------------------------------------------------===//
597
557
class PhysicalDelete : public OperatorNode <PhysicalDelete> {
598
558
public:
599
- static Operator make (std::shared_ptr<catalog::TableCatalogObject> target_table);
559
+ static Operator make (
560
+ std::shared_ptr<catalog::TableCatalogObject> target_table);
600
561
std::shared_ptr<catalog::TableCatalogObject> target_table;
601
562
};
602
563
0 commit comments