52 std::vector<std::shared_ptr<TargetEntry>>& tlist,
57 auto cv = makeExpr<ColumnVar>(
62 auto tle = std::make_shared<TargetEntry>(col_desc->columnName, cv,
false);
69 const std::string&
name) {
71 if (cd->columnName == name) {
77 column_descs.push_back(cd);
void add_all_column_descs(const Catalog_Namespace::Catalog &catalog)
class for a per-database catalog. also includes metadata for the current database and the current use...
void expand_star_in_targetlist(const Catalog_Namespace::Catalog &catalog, std::vector< std::shared_ptr< TargetEntry >> &tlist, int rte_idx)
virtual ~RangeTableEntry()
std::list< const ColumnDescriptor * > column_descs
int32_t get_table_id() const
This file contains the class specification and related data structures for Catalog.
const ColumnDescriptor * getMetadataForColumn(int tableId, const std::string &colName) const
int getDatabaseId() const
specifies the content in-memory of a row in the column metadata table
const TableDescriptor * get_table_desc() const
const std::list< const ColumnDescriptor * > & get_column_descs() const
std::list< const ColumnDescriptor * > getAllColumnMetadataForTable(const int tableId, const bool fetchSystemColumns, const bool fetchVirtualColumns, const bool fetchPhysicalColumns) const
Returns a list of pointers to constant ColumnDescriptor structs for all the columns from a particular...
const std::string & get_table_name() const
const TableDescriptor * table_desc
const ColumnDescriptor * get_column_desc(const Catalog_Namespace::Catalog &catalog, const std::string &name)