OmniSciDB  0fdbebe030
 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 1987 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 1989 of file ParserNode.h.

References CHECK(), and value_list.

1990  : InsertStmt(t, c) {
1991  CHECK(v);
1992  for (const auto e : *v) {
1993  value_list.emplace_back(e);
1994  }
1995  delete v;
1996  }
InsertStmt(std::string *t, std::list< std::string * > *c)
Definition: ParserNode.h:1963
CHECK(cgen_state)
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2006

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

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

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

1513  {
1514  const TableDescriptor* td = catalog.getMetadataForTable(*table);
1515  if (td == nullptr) {
1516  throw std::runtime_error("Table " + *table + " does not exist.");
1517  }
1518  if (td->isView) {
1519  throw std::runtime_error("Insert to views is not supported yet.");
1520  }
1521 
1522  if (td->partitions == "REPLICATED") {
1523  throw std::runtime_error("Cannot determine leaf on replicated table.");
1524  }
1525 
1526  if (0 == td->nShards) {
1527  std::random_device rd;
1528  std::mt19937_64 gen(rd());
1529  std::uniform_int_distribution<size_t> dis;
1530  const auto leaf_idx = dis(gen) % num_leafs;
1531  return leaf_idx;
1532  }
1533 
1534  size_t indexOfShardColumn = 0;
1535  const ColumnDescriptor* shardColumn = catalog.getShardColumnMetadataForTable(td);
1536  CHECK(shardColumn);
1537 
1538  if (column_list.empty()) {
1539  auto all_cols =
1540  catalog.getAllColumnMetadataForTable(td->tableId, false, false, false);
1541  auto iter = std::find(all_cols.begin(), all_cols.end(), shardColumn);
1542  CHECK(iter != all_cols.end());
1543  indexOfShardColumn = std::distance(all_cols.begin(), iter);
1544  } else {
1545  for (auto& c : column_list) {
1546  if (*c == shardColumn->columnName) {
1547  break;
1548  }
1549  indexOfShardColumn++;
1550  }
1551 
1552  if (indexOfShardColumn == column_list.size()) {
1553  throw std::runtime_error("No value defined for shard column.");
1554  }
1555  }
1556 
1557  if (indexOfShardColumn >= value_list.size()) {
1558  throw std::runtime_error("No value defined for shard column.");
1559  }
1560 
1561  auto& shardColumnValueExpr = *(std::next(value_list.begin(), indexOfShardColumn));
1562 
1563  Analyzer::Query query;
1564  auto e = shardColumnValueExpr->analyze(catalog, query);
1565  e = e->add_cast(shardColumn->columnType);
1566  const Analyzer::Constant* con = dynamic_cast<Analyzer::Constant*>(e.get());
1567  if (!con) {
1568  auto col_cast = dynamic_cast<const Analyzer::UOper*>(e.get());
1569  CHECK(col_cast);
1570  CHECK_EQ(kCAST, col_cast->get_optype());
1571  con = dynamic_cast<const Analyzer::Constant*>(col_cast->get_operand());
1572  }
1573  CHECK(con);
1574 
1575  Datum d = con->get_constval();
1576 
1577  auto shard_count = td->nShards * num_leafs;
1578  int64_t shardId = 0;
1579 
1580  if (con->get_is_null()) {
1582  shard_count);
1583  } else if (shardColumn->columnType.is_string()) {
1584  auto dictDesc =
1585  catalog.getMetadataForDict(shardColumn->columnType.get_comp_param(), true);
1586  auto str_id = dictDesc->stringDict->getOrAdd(*d.stringval);
1587  bool invalid = false;
1588 
1589  if (4 == shardColumn->columnType.get_size()) {
1590  invalid = str_id > max_valid_int_value<int32_t>();
1591  } else if (2 == shardColumn->columnType.get_size()) {
1592  invalid = str_id > max_valid_int_value<uint16_t>();
1593  } else if (1 == shardColumn->columnType.get_size()) {
1594  invalid = str_id > max_valid_int_value<uint8_t>();
1595  }
1596 
1597  if (invalid || str_id == inline_int_null_value<int32_t>()) {
1598  str_id = inline_fixed_encoding_null_val(shardColumn->columnType);
1599  }
1600  shardId = SHARD_FOR_KEY(str_id, shard_count);
1601  } else {
1602  switch (shardColumn->columnType.get_logical_size()) {
1603  case 8:
1604  shardId = SHARD_FOR_KEY(d.bigintval, shard_count);
1605  break;
1606  case 4:
1607  shardId = SHARD_FOR_KEY(d.intval, shard_count);
1608  break;
1609  case 2:
1610  shardId = SHARD_FOR_KEY(d.smallintval, shard_count);
1611  break;
1612  case 1:
1613  shardId = SHARD_FOR_KEY(d.tinyintval, shard_count);
1614  break;
1615  default:
1616  CHECK(false);
1617  }
1618  }
1619 
1620  return shardId / td->nShards;
1621 }
int8_t tinyintval
Definition: sqltypes.h:124
#define CHECK_EQ(x, y)
Definition: Logger.h:205
std::string partitions
std::unique_ptr< std::string > table
Definition: ParserNode.h:1979
HOST DEVICE int get_size() const
Definition: sqltypes.h:258
Definition: sqldefs.h:49
const ColumnDescriptor * getShardColumnMetadataForTable(const TableDescriptor *td) const
Definition: Catalog.cpp:3271
int32_t intval
Definition: sqltypes.h:126
std::shared_ptr< StringDictionary > stringDict
CHECK(cgen_state)
int get_logical_size() const
Definition: sqltypes.h:259
int64_t bigintval
Definition: sqltypes.h:127
int16_t smallintval
Definition: sqltypes.h:125
std::list< std::unique_ptr< std::string > > column_list
Definition: ParserNode.h:1980
const DictDescriptor * getMetadataForDict(int dict_ref, bool loadDict=true) const
Definition: Catalog.cpp:1444
specifies the content in-memory of a row in the column metadata table
std::string * stringval
Definition: sqltypes.h:132
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:1675
HOST DEVICE int get_comp_param() const
Definition: sqltypes.h:257
int64_t inline_fixed_encoding_null_val(const SQL_TYPE_INFO &ti)
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2006
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:399
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 1826 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, and TableDBObjectType.

1826  {
1827  auto& catalog = session.getCatalog();
1828 
1829  if (!session.checkDBAccessPrivileges(
1831  throw std::runtime_error("User has no insert privileges on " + *table + ".");
1832  }
1833 
1834  auto execute_write_lock = mapd_unique_lock<mapd_shared_mutex>(
1837 
1838  Analyzer::Query query;
1839  analyze(catalog, query);
1840 
1841  // Acquire schema write lock -- leave data lock so the fragmenter can checkpoint. For
1842  // singleton inserts we just take a write lock on the schema, which prevents concurrent
1843  // inserts.
1844  auto result_table_id = query.get_result_table_id();
1845  const auto td_with_lock =
1847  catalog, result_table_id);
1848  auto td = td_with_lock();
1849  CHECK(td);
1850 
1851  if (td->isView) {
1852  throw std::runtime_error("Singleton inserts on views is not supported.");
1853  }
1854 
1855  auto executor = Executor::getExecutor(catalog.getCurrentDB().dbId);
1856  RelAlgExecutor ra_executor(executor.get(), catalog);
1857 
1858  ra_executor.executeSimpleInsert(query);
1859 }
std::unique_ptr< std::string > table
Definition: ParserNode.h:1979
static std::shared_ptr< Executor > getExecutor(const int db_id, const std::string &debug_dir="", const std::string &debug_file="", const MapDParameters mapd_parameters=MapDParameters())
Definition: Execute.cpp:130
static const AccessPrivileges INSERT_INTO_TABLE
Definition: DBObject.h:161
CHECK(cgen_state)
ExecutionResult executeSimpleInsert(const Analyzer::Query &insert_query)
Catalog & getCatalog() const
Definition: SessionInfo.h:76
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

+ 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 1997 of file ParserNode.h.

References value_list.

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

Member Data Documentation

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

Definition at line 2006 of file ParserNode.h.

Referenced by get_value_list(), and InsertValuesStmt().


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