Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::BoundSubqueryExpression Class Reference
Inheritance diagram for duckdb::BoundSubqueryExpression:
Collaboration diagram for duckdb::BoundSubqueryExpression:

Public Member Functions

 BoundSubqueryExpression (LogicalType return_type)
bool IsCorrelated () const
bool HasSubquery () const override
 Returns true if the query contains a subquery.
bool IsScalar () const override
 Returns true if expression does not contain a group ref or col ref or parameter.
bool IsFoldable () const override
string ToString () const override
 Convert the Expression to a String.
bool Equals (const BaseExpression &other) const override
 Returns true if this expression is equal to another expression.
unique_ptr< Expression > Copy () const override
 Create a copy of this expression.
bool PropagatesNullValues () const override
Public Member Functions inherited from duckdb::Expression
 Expression (ExpressionType type, ExpressionClass expression_class, LogicalType return_type)
bool IsAggregate () const override
 Returns true if this expression is an aggregate or not.
bool IsWindow () const override
 Returns true if the expression has a window function or not.
bool HasSubquery () const override
 Returns true if the query contains a subquery.
bool IsScalar () const override
 Returns true if expression does not contain a group ref or col ref or parameter.
bool HasParameter () const override
 Returns true if the expression has a parameter.
virtual bool IsVolatile () const
virtual bool IsConsistent () const
virtual bool CanThrow () const
hash_t Hash () const override
bool Equals (const BaseExpression &other) const override
 Returns true if this expression is equal to another expression.
virtual void Serialize (Serializer &serializer) const
Public Member Functions inherited from duckdb::BaseExpression
 BaseExpression (ExpressionType type, ExpressionClass expression_class)
 Create an Expression.
ExpressionClass GetExpressionClass () const
 Returns the class of the expression.
ExpressionType GetExpressionType () const
 Returns the type of the expression.
void SetExpressionTypeUnsafe (ExpressionType new_type)
optional_idx GetQueryLocation () const
 Returns the location in the query (if any).
void SetQueryLocation (optional_idx location)
 Sets the location in the query.
bool HasAlias () const
 Returns true if the expression has a non-empty alias.
const string & GetAlias () const
 Returns the alias of the expression.
void SetAlias (const string &alias_p)
 Sets the alias of the expression.
void SetAlias (string &&alias_p)
 Sets the alias of the expression.
void ClearAlias ()
 Clears the alias of the expression.
virtual string GetName () const
 Get the name of the expression.
void Print () const
 Print the expression to stdout.
bool operator== (const BaseExpression &rhs) const
virtual void Verify () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

shared_ptr< Binder > binder
 The binder used to bind the subquery node.
BoundStatement subquery
 The bound subquery node.
SubqueryType subquery_type
 The subquery type.
vector< unique_ptr< Expression > > children
 the child expressions to compare with (in case of IN, ANY, ALL operators)
ExpressionType comparison_type
 The comparison type of the child expression with the subquery (in case of ANY, ALL operators).
vector< LogicalType > child_types
 The LogicalTypes of the subquery result. Only used for ANY expressions.
vector< LogicalType > child_targets
Public Attributes inherited from duckdb::Expression
LogicalType return_type
 The return type of the expression.
unique_ptr< BaseStatistics > verification_stats
 Expression statistics (if any) - ONLY USED FOR VERIFICATION.
Public Attributes inherited from duckdb::BaseExpression
ExpressionType type
 Type of the expression.
ExpressionClass expression_class
 The expression class of the node.
string alias
 The alias of the expression,.
optional_idx query_location
 The location in the query (if any).

Static Public Attributes

static constexpr const ExpressionClass TYPE = ExpressionClass::BOUND_SUBQUERY

Additional Inherited Members

Static Public Member Functions inherited from duckdb::Expression
static bool Equals (const Expression &left, const Expression &right)
static bool Equals (const unique_ptr< Expression > &left, const unique_ptr< Expression > &right)
static bool ListEquals (const vector< unique_ptr< Expression > > &left, const vector< unique_ptr< Expression > > &right)
static unique_ptr< Expression > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::BaseExpression
static bool Equals (const BaseExpression &left, const BaseExpression &right)
Protected Member Functions inherited from duckdb::Expression
void CopyProperties (const Expression &other)

Constructor & Destructor Documentation

◆ BoundSubqueryExpression()

duckdb::BoundSubqueryExpression::BoundSubqueryExpression ( LogicalType return_type)
explicit
376790 : Expression(ExpressionType::SUBQUERY, ExpressionClass::BOUND_SUBQUERY, std::move(return_type)) {
376791}
LogicalType return_type
The return type of the expression.
Definition duckdb.hpp:17743

Member Function Documentation

◆ IsCorrelated()

bool duckdb::BoundSubqueryExpression::IsCorrelated ( ) const
inline
149704 {
149705 return !binder->correlated_columns.empty();
149706 }
shared_ptr< Binder > binder
The binder used to bind the subquery node.
Definition duckdb.cpp:149709

◆ HasSubquery()

bool duckdb::BoundSubqueryExpression::HasSubquery ( ) const
inlineoverridevirtual

Returns true if the query contains a subquery.

Implements duckdb::BaseExpression.

149725 {
149726 return true;
149727 }

◆ IsScalar()

bool duckdb::BoundSubqueryExpression::IsScalar ( ) const
inlineoverridevirtual

Returns true if expression does not contain a group ref or col ref or parameter.

Implements duckdb::BaseExpression.

149728 {
149729 return false;
149730 }

◆ IsFoldable()

bool duckdb::BoundSubqueryExpression::IsFoldable ( ) const
inlineoverridevirtual

Reimplemented from duckdb::Expression.

149731 {
149732 return false;
149733 }

◆ ToString()

string duckdb::BoundSubqueryExpression::ToString ( ) const
overridevirtual

Convert the Expression to a String.

Implements duckdb::BaseExpression.

376793 {
376794 return "SUBQUERY";
376795}

◆ Equals()

bool duckdb::BoundSubqueryExpression::Equals ( const BaseExpression & other) const
overridevirtual

Returns true if this expression is equal to another expression.

Reimplemented from duckdb::BaseExpression.

376797 {
376798 // equality between bound subqueries not implemented currently
376799 return false;
376800}

◆ Copy()

unique_ptr< Expression > duckdb::BoundSubqueryExpression::Copy ( ) const
overridevirtual

Create a copy of this expression.

Implements duckdb::Expression.

376802 {
376803 throw SerializationException("Cannot copy BoundSubqueryExpression");
376804}

◆ PropagatesNullValues()

bool duckdb::BoundSubqueryExpression::PropagatesNullValues ( ) const
overridevirtual

Reimplemented from duckdb::Expression.

376806 {
376807 // TODO this can be optimized further by checking the actual subquery node
376808 return false;
376809}

Member Data Documentation

◆ child_targets

vector<LogicalType> duckdb::BoundSubqueryExpression::child_targets

The target LogicalType of the subquery result (i.e. to which type it should be casted, if child_type <> child_target). Only used for ANY expressions.


The documentation for this class was generated from the following file: