OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parser::InsertValuesStmt Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::InsertValuesStmt:
+ Collaboration diagram for Parser::InsertValuesStmt:

Public Member Functions

 InsertValuesStmt (std::string *t, std::list< std::string * > *c, std::list< Expr * > *v)
 
const std::list
< std::unique_ptr< Expr > > & 
get_value_list () const
 
void analyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query) const override
 
size_t determineLeafIndex (const Catalog_Namespace::Catalog &catalog, size_t num_leafs)
 
void execute (const Catalog_Namespace::SessionInfo &session)
 
- Public Member Functions inherited from Parser::InsertStmt
 InsertStmt (std::string *t, std::list< std::string * > *c)
 
const std::string * get_table () const
 
const std::list
< std::unique_ptr< std::string > > & 
get_column_list () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::list< std::unique_ptr
< Expr > > 
value_list
 

Additional Inherited Members

- Protected Attributes inherited from Parser::InsertStmt
std::unique_ptr< std::string > table
 
std::list< std::unique_ptr
< std::string > > 
column_list
 

Detailed Description

Definition at line 1997 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::InsertValuesStmt::InsertValuesStmt ( std::string *  t,
std::list< std::string * > *  c,
std::list< Expr * > *  v 
)
inline

Definition at line 1999 of file ParserNode.h.

References CHECK(), and value_list.

2000  : InsertStmt(t, c) {
2001  CHECK(v);
2002  for (const auto e : *v) {
2003  value_list.emplace_back(e);
2004  }
2005  delete v;
2006  }
InsertStmt(std::string *t, std::list< std::string * > *c)
Definition: ParserNode.h:1973
CHECK(cgen_state)
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2016

+ Here is the call graph for this function:

Member Function Documentation

void Parser::InsertValuesStmt::analyze ( const Catalog_Namespace::Catalog catalog,
Analyzer::Query query 
) const
overridevirtual

Implements Parser::InsertStmt.

Definition at line 1643 of file ParserNode.cpp.

References CHECK(), CHECK_EQ, ColumnDescriptor::columnId, ColumnDescriptor::columnName, ColumnDescriptor::columnType, geospatial::compress_coords(), Datum::doubleval, SQLTypeInfo::get_notnull(), Analyzer::Query::get_result_col_list(), Analyzer::Query::get_result_table_id(), SQLTypeInfo::get_subtype(), Analyzer::Query::get_targetlist_nonconst(), SQLTypeInfo::get_type(), Catalog_Namespace::Catalog::getAllColumnMetadataForTable(), Geo_namespace::GeoTypesFactory::getGeoColumns(), Catalog_Namespace::Catalog::getMetadataForColumn(), Datum::intval, SQLTypeInfo::is_geometry(), anonymous_namespace{TypedDataAccessors.h}::is_null(), kARRAY, kCAST, kDOUBLE, kINT, kLINESTRING, kMULTIPOLYGON, kPOINT, kPOLYGON, kTINYINT, NULL_ARRAY_DOUBLE, NULL_DOUBLE, and Datum::tinyintval.

1644  {
1645  InsertStmt::analyze(catalog, query);
1646  std::vector<std::shared_ptr<Analyzer::TargetEntry>>& tlist =
1647  query.get_targetlist_nonconst();
1648  const auto tableId = query.get_result_table_id();
1649  const std::list<const ColumnDescriptor*> non_phys_cols =
1650  catalog.getAllColumnMetadataForTable(tableId, false, false, false);
1651  if (non_phys_cols.size() != value_list.size()) {
1652  throw std::runtime_error("Insert has more target columns than expressions.");
1653  }
1654  std::list<int>::const_iterator it = query.get_result_col_list().begin();
1655  for (auto& v : value_list) {
1656  auto e = v->analyze(catalog, query);
1657  const ColumnDescriptor* cd =
1658  catalog.getMetadataForColumn(query.get_result_table_id(), *it);
1659  CHECK(cd);
1660  if (cd->columnType.get_notnull()) {
1661  auto c = std::dynamic_pointer_cast<Analyzer::Constant>(e);
1662  if (c != nullptr && c->get_is_null()) {
1663  throw std::runtime_error("Cannot insert NULL into column " + cd->columnName);
1664  }
1665  }
1666  e = e->add_cast(cd->columnType);
1667  tlist.emplace_back(new Analyzer::TargetEntry("", e, false));
1668  ++it;
1669 
1670  const auto& col_ti = cd->columnType;
1671  if (col_ti.get_physical_cols() > 0) {
1672  CHECK(cd->columnType.is_geometry());
1673  auto c = dynamic_cast<const Analyzer::Constant*>(e.get());
1674  if (!c) {
1675  auto uoper = std::dynamic_pointer_cast<Analyzer::UOper>(e);
1676  if (uoper && uoper->get_optype() == kCAST) {
1677  c = dynamic_cast<const Analyzer::Constant*>(uoper->get_operand());
1678  }
1679  }
1680  bool is_null = false;
1681  std::string* wkt{nullptr};
1682  if (c) {
1683  is_null = c->get_is_null();
1684  if (!is_null) {
1685  wkt = c->get_constval().stringval;
1686  }
1687  }
1688  if (!is_null && !wkt) {
1689  throw std::runtime_error("Expecting a WKT string for column " + cd->columnName);
1690  }
1691  std::vector<double> coords;
1692  std::vector<double> bounds;
1693  std::vector<int> ring_sizes;
1694  std::vector<int> poly_rings;
1695  int render_group =
1696  0; // @TODO simon.eves where to get render_group from in this context?!
1697  SQLTypeInfo import_ti{cd->columnType};
1698  if (!is_null) {
1700  *wkt, import_ti, coords, bounds, ring_sizes, poly_rings)) {
1701  throw std::runtime_error("Cannot read geometry to insert into column " +
1702  cd->columnName);
1703  }
1704  if (cd->columnType.get_type() != import_ti.get_type()) {
1705  // allow POLYGON to be inserted into MULTIPOLYGON column
1706  if (!(import_ti.get_type() == SQLTypes::kPOLYGON &&
1708  throw std::runtime_error(
1709  "Imported geometry doesn't match the type of column " + cd->columnName);
1710  }
1711  }
1712  } else {
1713  // Special case for NULL POINT, push NULL representation to coords
1714  if (cd->columnType.get_type() == kPOINT) {
1715  if (!coords.empty()) {
1716  throw std::runtime_error("NULL POINT with unexpected coordinates in column " +
1717  cd->columnName);
1718  }
1719  coords.push_back(NULL_ARRAY_DOUBLE);
1720  coords.push_back(NULL_DOUBLE);
1721  }
1722  }
1723 
1724  // TODO: check if import SRID matches columns SRID, may need to transform before
1725  // inserting
1726 
1727  int nextColumnOffset = 1;
1728 
1729  const ColumnDescriptor* cd_coords = catalog.getMetadataForColumn(
1730  query.get_result_table_id(), cd->columnId + nextColumnOffset);
1731  CHECK(cd_coords);
1732  CHECK_EQ(cd_coords->columnType.get_type(), kARRAY);
1733  CHECK_EQ(cd_coords->columnType.get_subtype(), kTINYINT);
1734  std::list<std::shared_ptr<Analyzer::Expr>> value_exprs;
1735  if (!is_null || cd->columnType.get_type() == kPOINT) {
1736  auto compressed_coords = geospatial::compress_coords(coords, col_ti);
1737  for (auto cc : compressed_coords) {
1738  Datum d;
1739  d.tinyintval = cc;
1740  auto e = makeExpr<Analyzer::Constant>(kTINYINT, false, d);
1741  value_exprs.push_back(e);
1742  }
1743  }
1744  tlist.emplace_back(new Analyzer::TargetEntry(
1745  "",
1746  makeExpr<Analyzer::Constant>(cd_coords->columnType, is_null, value_exprs),
1747  false));
1748  ++it;
1749  nextColumnOffset++;
1750 
1751  if (cd->columnType.get_type() == kPOLYGON ||
1752  cd->columnType.get_type() == kMULTIPOLYGON) {
1753  // Put ring sizes array into separate physical column
1754  const ColumnDescriptor* cd_ring_sizes = catalog.getMetadataForColumn(
1755  query.get_result_table_id(), cd->columnId + nextColumnOffset);
1756  CHECK(cd_ring_sizes);
1757  CHECK_EQ(cd_ring_sizes->columnType.get_type(), kARRAY);
1758  CHECK_EQ(cd_ring_sizes->columnType.get_subtype(), kINT);
1759  std::list<std::shared_ptr<Analyzer::Expr>> value_exprs;
1760  if (!is_null) {
1761  for (auto c : ring_sizes) {
1762  Datum d;
1763  d.intval = c;
1764  auto e = makeExpr<Analyzer::Constant>(kINT, false, d);
1765  value_exprs.push_back(e);
1766  }
1767  }
1768  tlist.emplace_back(new Analyzer::TargetEntry(
1769  "",
1770  makeExpr<Analyzer::Constant>(cd_ring_sizes->columnType, is_null, value_exprs),
1771  false));
1772  ++it;
1773  nextColumnOffset++;
1774 
1775  if (cd->columnType.get_type() == kMULTIPOLYGON) {
1776  // Put poly_rings array into separate physical column
1777  const ColumnDescriptor* cd_poly_rings = catalog.getMetadataForColumn(
1778  query.get_result_table_id(), cd->columnId + nextColumnOffset);
1779  CHECK(cd_poly_rings);
1780  CHECK_EQ(cd_poly_rings->columnType.get_type(), kARRAY);
1781  CHECK_EQ(cd_poly_rings->columnType.get_subtype(), kINT);
1782  std::list<std::shared_ptr<Analyzer::Expr>> value_exprs;
1783  if (!is_null) {
1784  for (auto c : poly_rings) {
1785  Datum d;
1786  d.intval = c;
1787  auto e = makeExpr<Analyzer::Constant>(kINT, false, d);
1788  value_exprs.push_back(e);
1789  }
1790  }
1791  tlist.emplace_back(new Analyzer::TargetEntry(
1792  "",
1793  makeExpr<Analyzer::Constant>(
1794  cd_poly_rings->columnType, is_null, value_exprs),
1795  false));
1796  ++it;
1797  nextColumnOffset++;
1798  }
1799  }
1800 
1801  if (cd->columnType.get_type() == kLINESTRING ||
1802  cd->columnType.get_type() == kPOLYGON ||
1803  cd->columnType.get_type() == kMULTIPOLYGON) {
1804  const ColumnDescriptor* cd_bounds = catalog.getMetadataForColumn(
1805  query.get_result_table_id(), cd->columnId + nextColumnOffset);
1806  CHECK(cd_bounds);
1807  CHECK_EQ(cd_bounds->columnType.get_type(), kARRAY);
1808  CHECK_EQ(cd_bounds->columnType.get_subtype(), kDOUBLE);
1809  std::list<std::shared_ptr<Analyzer::Expr>> value_exprs;
1810  if (!is_null) {
1811  for (auto b : bounds) {
1812  Datum d;
1813  d.doubleval = b;
1814  auto e = makeExpr<Analyzer::Constant>(kDOUBLE, false, d);
1815  value_exprs.push_back(e);
1816  }
1817  }
1818  tlist.emplace_back(new Analyzer::TargetEntry(
1819  "",
1820  makeExpr<Analyzer::Constant>(cd_bounds->columnType, is_null, value_exprs),
1821  false));
1822  ++it;
1823  nextColumnOffset++;
1824  }
1825 
1826  if (cd->columnType.get_type() == kPOLYGON ||
1827  cd->columnType.get_type() == kMULTIPOLYGON) {
1828  // Put render group into separate physical column
1829  const ColumnDescriptor* cd_render_group = catalog.getMetadataForColumn(
1830  query.get_result_table_id(), cd->columnId + nextColumnOffset);
1831  CHECK(cd_render_group);
1832  CHECK_EQ(cd_render_group->columnType.get_type(), kINT);
1833  Datum d;
1834  d.intval = render_group;
1835  tlist.emplace_back(new Analyzer::TargetEntry(
1836  "",
1837  makeExpr<Analyzer::Constant>(cd_render_group->columnType, is_null, d),
1838  false));
1839  ++it;
1840  nextColumnOffset++;
1841  }
1842  }
1843  }
1844 }
int8_t tinyintval
Definition: sqltypes.h:134
HOST DEVICE SQLTypes get_subtype() const
Definition: sqltypes.h:259
#define CHECK_EQ(x, y)
Definition: Logger.h:205
#define NULL_DOUBLE
Definition: sqltypes.h:185
Definition: Analyzer.h:1568
#define NULL_ARRAY_DOUBLE
Definition: sqltypes.h:193
Definition: sqldefs.h:49
void analyze(const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query) const override=0
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:258
int32_t intval
Definition: sqltypes.h:136
CHECK(cgen_state)
const ColumnDescriptor * getMetadataForColumn(int tableId, const std::string &colName) const
specifies the content in-memory of a row in the column metadata table
int get_result_table_id() const
Definition: Analyzer.h:1627
bool is_null(const T &v, const SQLTypeInfo &t)
std::vector< std::shared_ptr< TargetEntry > > & get_targetlist_nonconst()
Definition: Analyzer.h:1614
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...
Definition: Catalog.cpp:1704
static bool getGeoColumns(const std::string &wkt, SQLTypeInfo &ti, std::vector< double > &coords, std::vector< double > &bounds, std::vector< int > &ring_sizes, std::vector< int > &poly_rings, const bool promote_poly_to_mpoly=false)
Definition: geo_types.cpp:637
std::vector< uint8_t > compress_coords(std::vector< double > &coords, const SQLTypeInfo &ti)
bool is_geometry() const
Definition: sqltypes.h:427
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2016
Definition: sqltypes.h:46
SQLTypeInfo columnType
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:265
const std::list< int > & get_result_col_list() const
Definition: Analyzer.h:1628
std::string columnName
double doubleval
Definition: sqltypes.h:139

+ Here is the call graph for this function:

size_t Parser::InsertValuesStmt::determineLeafIndex ( const Catalog_Namespace::Catalog catalog,
size_t  num_leafs 
)

Definition at line 1532 of file ParserNode.cpp.

References Datum::bigintval, CHECK(), CHECK_EQ, ColumnDescriptor::columnName, ColumnDescriptor::columnType, run_benchmark_import::con, SQLTypeInfo::get_comp_param(), Analyzer::Constant::get_constval(), Analyzer::Constant::get_is_null(), SQLTypeInfo::get_logical_size(), SQLTypeInfo::get_size(), Catalog_Namespace::Catalog::getAllColumnMetadataForTable(), Catalog_Namespace::Catalog::getMetadataForDict(), Catalog_Namespace::Catalog::getMetadataForTable(), Catalog_Namespace::Catalog::getShardColumnMetadataForTable(), inline_fixed_encoding_null_val(), Datum::intval, SQLTypeInfo::is_string(), TableDescriptor::isView, kCAST, TableDescriptor::nShards, TableDescriptor::partitions, SHARD_FOR_KEY, Datum::smallintval, DictDescriptor::stringDict, Datum::stringval, TableDescriptor::tableId, and Datum::tinyintval.

1533  {
1534  const TableDescriptor* td = catalog.getMetadataForTable(*table);
1535  if (td == nullptr) {
1536  throw std::runtime_error("Table " + *table + " does not exist.");
1537  }
1538  if (td->isView) {
1539  throw std::runtime_error("Insert to views is not supported yet.");
1540  }
1541 
1542  if (td->partitions == "REPLICATED") {
1543  throw std::runtime_error("Cannot determine leaf on replicated table.");
1544  }
1545 
1546  if (0 == td->nShards) {
1547  std::random_device rd;
1548  std::mt19937_64 gen(rd());
1549  std::uniform_int_distribution<size_t> dis;
1550  const auto leaf_idx = dis(gen) % num_leafs;
1551  return leaf_idx;
1552  }
1553 
1554  size_t indexOfShardColumn = 0;
1555  const ColumnDescriptor* shardColumn = catalog.getShardColumnMetadataForTable(td);
1556  CHECK(shardColumn);
1557 
1558  if (column_list.empty()) {
1559  auto all_cols =
1560  catalog.getAllColumnMetadataForTable(td->tableId, false, false, false);
1561  auto iter = std::find(all_cols.begin(), all_cols.end(), shardColumn);
1562  CHECK(iter != all_cols.end());
1563  indexOfShardColumn = std::distance(all_cols.begin(), iter);
1564  } else {
1565  for (auto& c : column_list) {
1566  if (*c == shardColumn->columnName) {
1567  break;
1568  }
1569  indexOfShardColumn++;
1570  }
1571 
1572  if (indexOfShardColumn == column_list.size()) {
1573  throw std::runtime_error("No value defined for shard column.");
1574  }
1575  }
1576 
1577  if (indexOfShardColumn >= value_list.size()) {
1578  throw std::runtime_error("No value defined for shard column.");
1579  }
1580 
1581  auto& shardColumnValueExpr = *(std::next(value_list.begin(), indexOfShardColumn));
1582 
1583  Analyzer::Query query;
1584  auto e = shardColumnValueExpr->analyze(catalog, query);
1585  e = e->add_cast(shardColumn->columnType);
1586  const Analyzer::Constant* con = dynamic_cast<Analyzer::Constant*>(e.get());
1587  if (!con) {
1588  auto col_cast = dynamic_cast<const Analyzer::UOper*>(e.get());
1589  CHECK(col_cast);
1590  CHECK_EQ(kCAST, col_cast->get_optype());
1591  con = dynamic_cast<const Analyzer::Constant*>(col_cast->get_operand());
1592  }
1593  CHECK(con);
1594 
1595  Datum d = con->get_constval();
1596 
1597  auto shard_count = td->nShards * num_leafs;
1598  int64_t shardId = 0;
1599 
1600  if (con->get_is_null()) {
1602  shard_count);
1603  } else if (shardColumn->columnType.is_string()) {
1604  auto dictDesc =
1605  catalog.getMetadataForDict(shardColumn->columnType.get_comp_param(), true);
1606  auto str_id = dictDesc->stringDict->getOrAdd(*d.stringval);
1607  bool invalid = false;
1608 
1609  if (4 == shardColumn->columnType.get_size()) {
1610  invalid = str_id > max_valid_int_value<int32_t>();
1611  } else if (2 == shardColumn->columnType.get_size()) {
1612  invalid = str_id > max_valid_int_value<uint16_t>();
1613  } else if (1 == shardColumn->columnType.get_size()) {
1614  invalid = str_id > max_valid_int_value<uint8_t>();
1615  }
1616 
1617  if (invalid || str_id == inline_int_null_value<int32_t>()) {
1618  str_id = inline_fixed_encoding_null_val(shardColumn->columnType);
1619  }
1620  shardId = SHARD_FOR_KEY(str_id, shard_count);
1621  } else {
1622  switch (shardColumn->columnType.get_logical_size()) {
1623  case 8:
1624  shardId = SHARD_FOR_KEY(d.bigintval, shard_count);
1625  break;
1626  case 4:
1627  shardId = SHARD_FOR_KEY(d.intval, shard_count);
1628  break;
1629  case 2:
1630  shardId = SHARD_FOR_KEY(d.smallintval, shard_count);
1631  break;
1632  case 1:
1633  shardId = SHARD_FOR_KEY(d.tinyintval, shard_count);
1634  break;
1635  default:
1636  CHECK(false);
1637  }
1638  }
1639 
1640  return shardId / td->nShards;
1641 }
int8_t tinyintval
Definition: sqltypes.h:134
#define CHECK_EQ(x, y)
Definition: Logger.h:205
std::string partitions
std::unique_ptr< std::string > table
Definition: ParserNode.h:1989
HOST DEVICE int get_size() const
Definition: sqltypes.h:268
Definition: sqldefs.h:49
const ColumnDescriptor * getShardColumnMetadataForTable(const TableDescriptor *td) const
Definition: Catalog.cpp:3476
int32_t intval
Definition: sqltypes.h:136
std::shared_ptr< StringDictionary > stringDict
CHECK(cgen_state)
int get_logical_size() const
Definition: sqltypes.h:269
int64_t bigintval
Definition: sqltypes.h:137
int16_t smallintval
Definition: sqltypes.h:135
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:1990
const DictDescriptor * getMetadataForDict(int dict_ref, bool loadDict=true) const
Definition: Catalog.cpp:1449
specifies the content in-memory of a row in the column metadata table
std::string * stringval
Definition: sqltypes.h:142
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...
Definition: Catalog.cpp:1704
HOST DEVICE int get_comp_param() const
Definition: sqltypes.h:267
int64_t inline_fixed_encoding_null_val(const SQL_TYPE_INFO &ti)
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2016
SQLTypeInfo columnType
const TableDescriptor * getMetadataForTable(const std::string &tableName, const bool populateFragmenter=true) const
Returns a pointer to a const TableDescriptor struct matching the provided tableName.
bool is_string() const
Definition: sqltypes.h:415
specifies the content in-memory of a row in the table metadata table
std::string columnName
#define SHARD_FOR_KEY(key, num_shards)
Definition: shard_key.h:20

+ Here is the call graph for this function:

void Parser::InsertValuesStmt::execute ( const Catalog_Namespace::SessionInfo session)

Definition at line 1846 of file ParserNode.cpp.

References CHECK(), Catalog_Namespace::SessionInfo::checkDBAccessPrivileges(), RelAlgExecutor::executeSimpleInsert(), legacylockmgr::ExecutorOuterLock, Catalog_Namespace::SessionInfo::getCatalog(), Executor::getExecutor(), legacylockmgr::LockMgr< MutexType, KeyType >::getMutex(), AccessPrivileges::INSERT_INTO_TABLE, TableDBObjectType, and Executor::UNITARY_EXECUTOR_ID.

1846  {
1847  auto& catalog = session.getCatalog();
1848 
1849  if (!session.checkDBAccessPrivileges(
1851  throw std::runtime_error("User has no insert privileges on " + *table + ".");
1852  }
1853 
1854  auto execute_write_lock = mapd_unique_lock<mapd_shared_mutex>(
1857 
1858  Analyzer::Query query;
1859  analyze(catalog, query);
1860 
1861  // Acquire schema write lock -- leave data lock so the fragmenter can checkpoint. For
1862  // singleton inserts we just take a write lock on the schema, which prevents concurrent
1863  // inserts.
1864  auto result_table_id = query.get_result_table_id();
1865  const auto td_with_lock =
1867  catalog, result_table_id);
1868  auto td = td_with_lock();
1869  CHECK(td);
1870 
1871  if (td->isView) {
1872  throw std::runtime_error("Singleton inserts on views is not supported.");
1873  }
1874 
1876  RelAlgExecutor ra_executor(executor.get(), catalog);
1877 
1878  ra_executor.executeSimpleInsert(query);
1879 }
std::unique_ptr< std::string > table
Definition: ParserNode.h:1989
static const AccessPrivileges INSERT_INTO_TABLE
Definition: DBObject.h:162
static std::shared_ptr< Executor > getExecutor(const ExecutorId id, const std::string &debug_dir="", const std::string &debug_file="", const SystemParameters system_parameters=SystemParameters())
Definition: Execute.cpp:148
CHECK(cgen_state)
ExecutionResult executeSimpleInsert(const Analyzer::Query &insert_query)
Catalog & getCatalog() const
Definition: SessionInfo.h:65
static std::shared_ptr< MutexType > getMutex(const LockType lockType, const KeyType &key)
Definition: LegacyLockMgr.h:51
bool checkDBAccessPrivileges(const DBObjectType &permissionType, const AccessPrivileges &privs, const std::string &objectName="") const
Definition: SessionInfo.cpp:24
void analyze(const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query) const override
static const ExecutorId UNITARY_EXECUTOR_ID
Definition: Execute.h:303

+ Here is the call graph for this function:

const std::list<std::unique_ptr<Expr> >& Parser::InsertValuesStmt::get_value_list ( ) const
inline

Definition at line 2007 of file ParserNode.h.

References value_list.

2007 { return value_list; }
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2016

Member Data Documentation

std::list<std::unique_ptr<Expr> > Parser::InsertValuesStmt::value_list
private

Definition at line 2016 of file ParserNode.h.

Referenced by get_value_list(), and InsertValuesStmt().


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