| 1 | #include "duckdb/planner/expression/bound_subquery_expression.hpp" |
|---|---|
| 2 | |
| 3 | #include "duckdb/common/exception.hpp" |
| 4 | |
| 5 | namespace duckdb { |
| 6 | |
| 7 | BoundSubqueryExpression::BoundSubqueryExpression(LogicalType return_type) |
| 8 | : Expression(ExpressionType::SUBQUERY, ExpressionClass::BOUND_SUBQUERY, std::move(return_type)) { |
| 9 | } |
| 10 | |
| 11 | string BoundSubqueryExpression::ToString() const { |
| 12 | return "SUBQUERY"; |
| 13 | } |
| 14 | |
| 15 | bool BoundSubqueryExpression::Equals(const BaseExpression &other_p) const { |
| 16 | // equality between bound subqueries not implemented currently |
| 17 | return false; |
| 18 | } |
| 19 | |
| 20 | unique_ptr<Expression> BoundSubqueryExpression::Copy() { |
| 21 | throw SerializationException("Cannot copy BoundSubqueryExpression"); |
| 22 | } |
| 23 | |
| 24 | bool BoundSubqueryExpression::PropagatesNullValues() const { |
| 25 | // TODO this can be optimized further by checking the actual subquery node |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | void BoundSubqueryExpression::Serialize(FieldWriter &writer) const { |
| 30 | throw NotImplementedException(ExpressionTypeToString(type)); |
| 31 | } |
| 32 | |
| 33 | } // namespace duckdb |
| 34 |