OmniSciDB  467d548b97
 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
#define CHECK(condition)
Definition: Logger.h:197
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2016

Member Function Documentation

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

Implements Parser::InsertStmt.

Definition at line 1641 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(), Geospatial::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.

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

+ 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 1530 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.

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

1845  {
1846  auto& catalog = session.getCatalog();
1847 
1848  if (!session.checkDBAccessPrivileges(
1850  throw std::runtime_error("User has no insert privileges on " + *table + ".");
1851  }
1852 
1853  auto execute_write_lock = mapd_unique_lock<mapd_shared_mutex>(
1856 
1857  Analyzer::Query query;
1858  analyze(catalog, query);
1859 
1860  // Acquire schema write lock -- leave data lock so the fragmenter can checkpoint. For
1861  // singleton inserts we just take a write lock on the schema, which prevents concurrent
1862  // inserts.
1863  auto result_table_id = query.get_result_table_id();
1864  const auto td_with_lock =
1866  catalog, result_table_id);
1867  auto td = td_with_lock();
1868  CHECK(td);
1869 
1870  if (td->isView) {
1871  throw std::runtime_error("Singleton inserts on views is not supported.");
1872  }
1873 
1875  RelAlgExecutor ra_executor(executor.get(), catalog);
1876 
1877  ra_executor.executeSimpleInsert(query);
1878 }
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:150
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
#define CHECK(condition)
Definition: Logger.h:197
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:337

+ 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: