OmniSciDB  04ee39c94c
Parser::SubqueryExpr Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::SubqueryExpr:
+ Collaboration diagram for Parser::SubqueryExpr:

Public Member Functions

 SubqueryExpr (QuerySpec *q)
 
const QuerySpecget_query () const
 
std::shared_ptr< Analyzer::Expranalyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query, TlistRefType allow_tlist_ref=TLIST_NONE) const override
 
std::string to_string () const override
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::unique_ptr< QuerySpecquery
 

Additional Inherited Members

- Public Types inherited from Parser::Expr
enum  TlistRefType { TLIST_NONE, TLIST_REF, TLIST_COPY }
 

Detailed Description

Definition at line 331 of file ParserNode.h.

Constructor & Destructor Documentation

◆ SubqueryExpr()

Parser::SubqueryExpr::SubqueryExpr ( QuerySpec q)
inlineexplicit

Definition at line 333 of file ParserNode.h.

333 : query(q) {}
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:342

Member Function Documentation

◆ analyze()

std::shared_ptr< Analyzer::Expr > Parser::SubqueryExpr::analyze ( const Catalog_Namespace::Catalog catalog,
Analyzer::Query query,
TlistRefType  allow_tlist_ref = TLIST_NONE 
) const
overridevirtual

Implements Parser::Expr.

Definition at line 332 of file ParserNode.cpp.

335  {
336  throw std::runtime_error("Subqueries are not supported yet.");
337  return nullptr;
338 }

◆ get_query()

const QuerySpec* Parser::SubqueryExpr::get_query ( ) const
inline

Definition at line 334 of file ParserNode.h.

References anonymous_namespace{UpdateMetadataTest.cpp}::query, and to_string().

334 { return query.get(); }
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:342
+ Here is the call graph for this function:

◆ to_string()

std::string Parser::SubqueryExpr::to_string ( ) const
overridevirtual

Implements Parser::Expr.

Definition at line 1362 of file ParserNode.cpp.

References anonymous_namespace{UpdateMetadataTest.cpp}::query.

1362  {
1363  std::string str;
1364  str = "(";
1365  str += query->to_string();
1366  str += ")";
1367  return str;
1368 }
std::unique_ptr< QuerySpec > query
Definition: ParserNode.h:342

Member Data Documentation

◆ query

std::unique_ptr<QuerySpec> Parser::SubqueryExpr::query
private

Definition at line 342 of file ParserNode.h.


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