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