OmniSciDB  ca0c39ec8f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Analyzer::BinOper Class Reference

#include <Analyzer.h>

+ Inheritance diagram for Analyzer::BinOper:
+ Collaboration diagram for Analyzer::BinOper:

Public Member Functions

 BinOper (const SQLTypeInfo &ti, bool has_agg, SQLOps o, SQLQualifier q, std::shared_ptr< Analyzer::Expr > l, std::shared_ptr< Analyzer::Expr > r)
 
 BinOper (SQLTypes t, SQLOps o, SQLQualifier q, std::shared_ptr< Analyzer::Expr > l, std::shared_ptr< Analyzer::Expr > r)
 
SQLOps get_optype () const
 
bool is_overlaps_oper () const
 
SQLQualifier get_qualifier () const
 
const Exprget_left_operand () const
 
const Exprget_right_operand () const
 
const std::shared_ptr
< Analyzer::Expr
get_own_left_operand () const
 
const std::shared_ptr
< Analyzer::Expr
get_own_right_operand () const
 
void check_group_by (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby) const override
 
std::shared_ptr< Analyzer::Exprdeep_copy () const override
 
std::shared_ptr< Analyzer::Exprnormalize_simple_predicate (int &rte_idx) const override
 
void group_predicates (std::list< const Expr * > &scan_predicates, std::list< const Expr * > &join_predicates, std::list< const Expr * > &const_predicates) const override
 
void collect_rte_idx (std::set< int > &rte_idx_set) const override
 
void collect_column_var (std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &colvar_set, bool include_agg) const override
 
std::shared_ptr< Analyzer::Exprrewrite_with_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override
 
std::shared_ptr< Analyzer::Exprrewrite_with_child_targetlist (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override
 
std::shared_ptr< Analyzer::Exprrewrite_agg_to_var (const std::vector< std::shared_ptr< TargetEntry >> &tlist) const override
 
bool operator== (const Expr &rhs) const override
 
std::string toString () const override
 
void find_expr (bool(*f)(const Expr *), std::list< const Expr * > &expr_list) const override
 
- Public Member Functions inherited from Analyzer::Expr
 Expr (SQLTypes t, bool notnull)
 
 Expr (SQLTypes t, int d, bool notnull)
 
 Expr (SQLTypes t, int d, int s, bool notnull)
 
 Expr (const SQLTypeInfo &ti, bool has_agg=false)
 
virtual ~Expr ()
 
std::shared_ptr< Analyzer::Exprget_shared_ptr ()
 
const SQLTypeInfoget_type_info () const
 
void set_type_info (const SQLTypeInfo &ti)
 
bool get_contains_agg () const
 
void set_contains_agg (bool a)
 
virtual std::shared_ptr
< Analyzer::Expr
add_cast (const SQLTypeInfo &new_type_info)
 
virtual size_t get_num_column_vars (const bool include_agg) const
 
virtual void print () const
 
virtual void add_unique (std::list< const Expr * > &expr_list) const
 
std::shared_ptr< Analyzer::Exprdecompress ()
 
virtual void get_domain (DomainSet &domain_set) const
 

Static Public Member Functions

static SQLTypeInfo analyze_type_info (SQLOps op, const SQLTypeInfo &left_type, const SQLTypeInfo &right_type, SQLTypeInfo *new_left_type, SQLTypeInfo *new_right_type)
 
static SQLTypeInfo common_numeric_type (const SQLTypeInfo &type1, const SQLTypeInfo &type2)
 
static SQLTypeInfo common_string_type (const SQLTypeInfo &type1, const SQLTypeInfo &type2)
 
static bool simple_predicate_has_simple_cast (const std::shared_ptr< Analyzer::Expr > cast_operand, const std::shared_ptr< Analyzer::Expr > const_operand)
 

Private Attributes

SQLOps optype
 
SQLQualifier qualifier
 
std::shared_ptr< Analyzer::Exprleft_operand
 
std::shared_ptr< Analyzer::Exprright_operand
 

Additional Inherited Members

- Protected Attributes inherited from Analyzer::Expr
SQLTypeInfo type_info
 
bool contains_agg
 

Detailed Description

Definition at line 428 of file Analyzer.h.

Constructor & Destructor Documentation

Analyzer::BinOper::BinOper ( const SQLTypeInfo ti,
bool  has_agg,
SQLOps  o,
SQLQualifier  q,
std::shared_ptr< Analyzer::Expr l,
std::shared_ptr< Analyzer::Expr r 
)
inline

Definition at line 430 of file Analyzer.h.

436  : Expr(ti, has_agg), optype(o), qualifier(q), left_operand(l), right_operand(r) {}
Expr(SQLTypes t, bool notnull)
Definition: Analyzer.h:73
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
Analyzer::BinOper::BinOper ( SQLTypes  t,
SQLOps  o,
SQLQualifier  q,
std::shared_ptr< Analyzer::Expr l,
std::shared_ptr< Analyzer::Expr r 
)
inline

Definition at line 437 of file Analyzer.h.

442  : Expr(t, l->get_type_info().get_notnull() && r->get_type_info().get_notnull())
443  , optype(o)
444  , qualifier(q)
445  , left_operand(l)
446  , right_operand(r) {}
Expr(SQLTypes t, bool notnull)
Definition: Analyzer.h:73
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524

Member Function Documentation

SQLTypeInfo Analyzer::BinOper::analyze_type_info ( SQLOps  op,
const SQLTypeInfo left_type,
const SQLTypeInfo right_type,
SQLTypeInfo new_left_type,
SQLTypeInfo new_right_type 
)
static

Definition at line 250 of file Analyzer.cpp.

References CHECK, common_numeric_type(), SQLTypeInfo::get_dimension(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_type(), SQLTypeInfo::get_type_name(), IS_ARITHMETIC, SQLTypeInfo::is_boolean(), IS_COMPARISON, SQLTypeInfo::is_decimal(), SQLTypeInfo::is_integer(), IS_LOGIC, SQLTypeInfo::is_number(), SQLTypeInfo::is_string(), SQLTypeInfo::is_time(), SQLTypeInfo::is_timeinterval(), kBOOLEAN, kDATE, kMINUS, kMODULO, kMULTIPLY, kPLUS, kTIME, kTIMESTAMP, SQLTypeInfo::set_dimension(), SQLTypeInfo::set_notnull(), and SQLTypeInfo::set_scale().

Referenced by Parser::BetweenExpr::analyze(), and Parser::OperExpr::normalize().

254  {
255  SQLTypeInfo result_type;
256  SQLTypeInfo common_type;
257  *new_left_type = left_type;
258  *new_right_type = right_type;
259  if (IS_LOGIC(op)) {
260  if (left_type.get_type() != kBOOLEAN || right_type.get_type() != kBOOLEAN) {
261  throw std::runtime_error(
262  "non-boolean operands cannot be used in logic operations.");
263  }
264  result_type = SQLTypeInfo(kBOOLEAN, false);
265  } else if (IS_COMPARISON(op)) {
266  if (left_type != right_type) {
267  if (left_type.is_number() && right_type.is_number()) {
268  common_type = common_numeric_type(left_type, right_type);
269  *new_left_type = common_type;
270  new_left_type->set_notnull(left_type.get_notnull());
271  *new_right_type = common_type;
272  new_right_type->set_notnull(right_type.get_notnull());
273  } else if (left_type.is_time() && right_type.is_time()) {
274  switch (left_type.get_type()) {
275  case kTIMESTAMP:
276  switch (right_type.get_type()) {
277  case kTIME:
278  throw std::runtime_error("Cannont compare between TIMESTAMP and TIME.");
279  break;
280  case kDATE:
281  *new_left_type = SQLTypeInfo(left_type.get_type(),
282  left_type.get_dimension(),
283  0,
284  left_type.get_notnull());
285  *new_right_type = *new_left_type;
286  new_right_type->set_notnull(right_type.get_notnull());
287  break;
288  case kTIMESTAMP:
289  *new_left_type = SQLTypeInfo(
290  kTIMESTAMP,
291  std::max(left_type.get_dimension(), right_type.get_dimension()),
292  0,
293  left_type.get_notnull());
294  *new_right_type = SQLTypeInfo(
295  kTIMESTAMP,
296  std::max(left_type.get_dimension(), right_type.get_dimension()),
297  0,
298  right_type.get_notnull());
299  break;
300  default:
301  CHECK(false);
302  }
303  break;
304  case kTIME:
305  switch (right_type.get_type()) {
306  case kTIMESTAMP:
307  throw std::runtime_error("Cannont compare between TIME and TIMESTAMP.");
308  break;
309  case kDATE:
310  throw std::runtime_error("Cannont compare between TIME and DATE.");
311  break;
312  case kTIME:
313  *new_left_type = SQLTypeInfo(
314  kTIME,
315  std::max(left_type.get_dimension(), right_type.get_dimension()),
316  0,
317  left_type.get_notnull());
318  *new_right_type = SQLTypeInfo(
319  kTIME,
320  std::max(left_type.get_dimension(), right_type.get_dimension()),
321  0,
322  right_type.get_notnull());
323  break;
324  default:
325  CHECK(false);
326  }
327  break;
328  case kDATE:
329  switch (right_type.get_type()) {
330  case kTIMESTAMP:
331  *new_left_type = SQLTypeInfo(right_type.get_type(),
332  right_type.get_dimension(),
333  0,
334  left_type.get_notnull());
335  *new_right_type = *new_left_type;
336  new_right_type->set_notnull(right_type.get_notnull());
337  break;
338  case kDATE:
339  *new_left_type = SQLTypeInfo(left_type.get_type(),
340  left_type.get_dimension(),
341  0,
342  left_type.get_notnull());
343  *new_right_type = *new_left_type;
344  new_right_type->set_notnull(right_type.get_notnull());
345  break;
346  case kTIME:
347  throw std::runtime_error("Cannont compare between DATE and TIME.");
348  break;
349  default:
350  CHECK(false);
351  }
352  break;
353  default:
354  CHECK(false);
355  }
356  } else if (left_type.is_string() && right_type.is_time()) {
357  *new_left_type = right_type;
358  new_left_type->set_notnull(left_type.get_notnull());
359  *new_right_type = right_type;
360  } else if (left_type.is_time() && right_type.is_string()) {
361  *new_left_type = left_type;
362  *new_right_type = left_type;
363  new_right_type->set_notnull(right_type.get_notnull());
364  } else if (left_type.is_string() && right_type.is_string()) {
365  *new_left_type = left_type;
366  *new_right_type = right_type;
367  } else if (left_type.is_boolean() && right_type.is_boolean()) {
368  const bool notnull = left_type.get_notnull() && right_type.get_notnull();
369  common_type = SQLTypeInfo(kBOOLEAN, notnull);
370  *new_left_type = common_type;
371  *new_right_type = common_type;
372  } else {
373  throw std::runtime_error("Cannot compare between " + left_type.get_type_name() +
374  " and " + right_type.get_type_name());
375  }
376  }
377  result_type = SQLTypeInfo(kBOOLEAN, false);
378  } else if (op == kMINUS &&
379  (left_type.get_type() == kDATE || left_type.get_type() == kTIMESTAMP) &&
380  right_type.is_timeinterval()) {
381  *new_left_type = left_type;
382  *new_right_type = right_type;
383  result_type = left_type;
384  } else if (IS_ARITHMETIC(op)) {
385  if (!(left_type.is_number() || left_type.is_timeinterval()) ||
386  !(right_type.is_number() || right_type.is_timeinterval())) {
387  throw std::runtime_error("non-numeric operands in arithmetic operations.");
388  }
389  if (op == kMODULO && (!left_type.is_integer() || !right_type.is_integer())) {
390  throw std::runtime_error("non-integer operands in modulo operation.");
391  }
392  common_type = common_numeric_type(left_type, right_type);
393  if (common_type.is_decimal()) {
394  if (op == kMULTIPLY) {
395  // Decimal multiplication requires common_type adjustment:
396  // dimension and scale of the result should be increased.
397  auto new_dimension = left_type.get_dimension() + right_type.get_dimension();
398  // If new dimension is over 20 digits, the result may overflow, or it may not.
399  // Rely on the runtime overflow detection rather than a static check here.
400  if (common_type.get_dimension() < new_dimension) {
401  common_type.set_dimension(new_dimension);
402  }
403  common_type.set_scale(left_type.get_scale() + right_type.get_scale());
404  } else if (op == kPLUS || op == kMINUS) {
405  // Scale should remain the same but dimension could actually go up
406  common_type.set_dimension(common_type.get_dimension() + 1);
407  }
408  }
409  *new_left_type = common_type;
410  new_left_type->set_notnull(left_type.get_notnull());
411  *new_right_type = common_type;
412  new_right_type->set_notnull(right_type.get_notnull());
413  if (op == kMULTIPLY) {
414  new_left_type->set_scale(left_type.get_scale());
415  new_right_type->set_scale(right_type.get_scale());
416  }
417  result_type = common_type;
418  } else {
419  throw std::runtime_error("invalid binary operator type.");
420  }
421  result_type.set_notnull(left_type.get_notnull() && right_type.get_notnull());
422  return result_type;
423 }
#define IS_LOGIC(X)
Definition: sqldefs.h:60
Definition: sqltypes.h:64
HOST DEVICE int get_scale() const
Definition: sqltypes.h:384
Definition: sqldefs.h:40
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:379
bool is_number() const
Definition: sqltypes.h:580
bool is_time() const
Definition: sqltypes.h:581
bool is_integer() const
Definition: sqltypes.h:577
void set_scale(int s)
Definition: sqltypes.h:494
bool is_timeinterval() const
Definition: sqltypes.h:586
static SQLTypeInfo common_numeric_type(const SQLTypeInfo &type1, const SQLTypeInfo &type2)
Definition: Analyzer.cpp:465
bool is_boolean() const
Definition: sqltypes.h:582
Definition: sqltypes.h:68
Definition: sqldefs.h:39
#define IS_ARITHMETIC(X)
Definition: sqldefs.h:61
void set_dimension(int d)
Definition: sqltypes.h:491
HOST DEVICE int get_dimension() const
Definition: sqltypes.h:381
std::string get_type_name() const
Definition: sqltypes.h:503
void set_notnull(bool n)
Definition: sqltypes.h:496
#define CHECK(condition)
Definition: Logger.h:222
bool is_string() const
Definition: sqltypes.h:575
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:386
bool is_decimal() const
Definition: sqltypes.h:578
#define IS_COMPARISON(X)
Definition: sqldefs.h:57

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Analyzer::BinOper::check_group_by ( const std::list< std::shared_ptr< Analyzer::Expr >> &  groupby) const
overridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 1484 of file Analyzer.cpp.

References left_operand, and right_operand.

1485  {
1486  left_operand->check_group_by(groupby);
1487  right_operand->check_group_by(groupby);
1488 }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
void Analyzer::BinOper::collect_column_var ( std::set< const ColumnVar *, bool(*)(const ColumnVar *, const ColumnVar *)> &  colvar_set,
bool  include_agg 
) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 478 of file Analyzer.h.

References left_operand, and right_operand.

481  {
482  left_operand->collect_column_var(colvar_set, include_agg);
483  right_operand->collect_column_var(colvar_set, include_agg);
484  }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
void Analyzer::BinOper::collect_rte_idx ( std::set< int > &  rte_idx_set) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 474 of file Analyzer.h.

References left_operand, and right_operand.

474  {
475  left_operand->collect_rte_idx(rte_idx_set);
476  right_operand->collect_rte_idx(rte_idx_set);
477  }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
SQLTypeInfo Analyzer::BinOper::common_numeric_type ( const SQLTypeInfo type1,
const SQLTypeInfo type2 
)
static

Definition at line 465 of file Analyzer.cpp.

References CHECK, SQLTypeInfo::get_dimension(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_scale(), SQLTypeInfo::get_type(), SQLTypeInfo::get_type_name(), SQLTypeInfo::is_boolean(), SQLTypeInfo::is_number(), SQLTypeInfo::is_timeinterval(), kBIGINT, kDECIMAL, kDOUBLE, kFLOAT, kINT, sql_constants::kMaxRepresentableNumericPrecision, kNUMERIC, kSMALLINT, kTINYINT, and SQLTypeInfo::set_fixed_size().

Referenced by Parser::InValues::analyze(), analyze_type_info(), and Parser::CaseExpr::normalize().

466  {
467  SQLTypeInfo common_type;
468  const bool notnull = type1.get_notnull() && type2.get_notnull();
469  if (type1.get_type() == type2.get_type()) {
470  CHECK(((type1.is_number() || type1.is_timeinterval()) &&
471  (type2.is_number() || type2.is_timeinterval())) ||
472  (type1.is_boolean() && type2.is_boolean()));
473  common_type = SQLTypeInfo(type1.get_type(),
474  std::max(type1.get_dimension(), type2.get_dimension()),
475  std::max(type1.get_scale(), type2.get_scale()),
476  notnull);
477  return common_type;
478  }
479  std::string timeinterval_op_error{
480  "Operator type not supported for time interval arithmetic: "};
481  if (type1.is_timeinterval()) {
482  if (!type2.is_number()) {
483  // allow `number` types to interpret millisecond / microsecond / nanosecond b/c it
484  // may require double and decimal types to represent their time value correctly
485  throw std::runtime_error(timeinterval_op_error + type2.get_type_name());
486  }
487  return type1;
488  }
489  if (type2.is_timeinterval()) {
490  if (!type1.is_number()) {
491  throw std::runtime_error(timeinterval_op_error + type1.get_type_name());
492  }
493  return type2;
494  }
495  CHECK(type1.is_number() && type2.is_number());
496  switch (type1.get_type()) {
497  case kTINYINT:
498  switch (type2.get_type()) {
499  case kSMALLINT:
500  common_type = SQLTypeInfo(kSMALLINT, notnull);
501  break;
502  case kINT:
503  common_type = SQLTypeInfo(kINT, notnull);
504  break;
505  case kBIGINT:
506  common_type = SQLTypeInfo(kBIGINT, notnull);
507  break;
508  case kFLOAT:
509  common_type = SQLTypeInfo(kFLOAT, notnull);
510  break;
511  case kDOUBLE:
512  common_type = SQLTypeInfo(kDOUBLE, notnull);
513  break;
514  case kNUMERIC:
515  case kDECIMAL:
516  common_type =
518  std::max(5 + type2.get_scale(), type2.get_dimension()),
519  type2.get_scale(),
520  notnull);
521  break;
522  default:
523  CHECK(false);
524  }
525  break;
526  case kSMALLINT:
527  switch (type2.get_type()) {
528  case kTINYINT:
529  common_type = SQLTypeInfo(kSMALLINT, notnull);
530  break;
531  case kINT:
532  common_type = SQLTypeInfo(kINT, notnull);
533  break;
534  case kBIGINT:
535  common_type = SQLTypeInfo(kBIGINT, notnull);
536  break;
537  case kFLOAT:
538  common_type = SQLTypeInfo(kFLOAT, notnull);
539  break;
540  case kDOUBLE:
541  common_type = SQLTypeInfo(kDOUBLE, notnull);
542  break;
543  case kNUMERIC:
544  case kDECIMAL:
545  common_type =
547  std::max(5 + type2.get_scale(), type2.get_dimension()),
548  type2.get_scale(),
549  notnull);
550  break;
551  default:
552  CHECK(false);
553  }
554  break;
555  case kINT:
556  switch (type2.get_type()) {
557  case kTINYINT:
558  common_type = SQLTypeInfo(kINT, notnull);
559  break;
560  case kSMALLINT:
561  common_type = SQLTypeInfo(kINT, notnull);
562  break;
563  case kBIGINT:
564  common_type = SQLTypeInfo(kBIGINT, notnull);
565  break;
566  case kFLOAT:
567  common_type = SQLTypeInfo(kFLOAT, notnull);
568  break;
569  case kDOUBLE:
570  common_type = SQLTypeInfo(kDOUBLE, notnull);
571  break;
572  case kNUMERIC:
573  case kDECIMAL:
574  common_type = SQLTypeInfo(
575  kDECIMAL,
577  10 + type2.get_scale()),
578  type2.get_dimension()),
579  type2.get_scale(),
580  notnull);
581  break;
582  default:
583  CHECK(false);
584  }
585  break;
586  case kBIGINT:
587  switch (type2.get_type()) {
588  case kTINYINT:
589  common_type = SQLTypeInfo(kBIGINT, notnull);
590  break;
591  case kSMALLINT:
592  common_type = SQLTypeInfo(kBIGINT, notnull);
593  break;
594  case kINT:
595  common_type = SQLTypeInfo(kBIGINT, notnull);
596  break;
597  case kFLOAT:
598  common_type = SQLTypeInfo(kFLOAT, notnull);
599  break;
600  case kDOUBLE:
601  common_type = SQLTypeInfo(kDOUBLE, notnull);
602  break;
603  case kNUMERIC:
604  case kDECIMAL:
605  common_type = SQLTypeInfo(kDECIMAL,
607  type2.get_scale(),
608  notnull);
609  break;
610  default:
611  CHECK(false);
612  }
613  break;
614  case kFLOAT:
615  switch (type2.get_type()) {
616  case kTINYINT:
617  common_type = SQLTypeInfo(kFLOAT, notnull);
618  break;
619  case kSMALLINT:
620  common_type = SQLTypeInfo(kFLOAT, notnull);
621  break;
622  case kINT:
623  common_type = SQLTypeInfo(kFLOAT, notnull);
624  break;
625  case kBIGINT:
626  common_type = SQLTypeInfo(kFLOAT, notnull);
627  break;
628  case kDOUBLE:
629  common_type = SQLTypeInfo(kDOUBLE, notnull);
630  break;
631  case kNUMERIC:
632  case kDECIMAL:
633  common_type = SQLTypeInfo(kFLOAT, notnull);
634  break;
635  default:
636  CHECK(false);
637  }
638  break;
639  case kDOUBLE:
640  switch (type2.get_type()) {
641  case kTINYINT:
642  case kSMALLINT:
643  case kINT:
644  case kBIGINT:
645  case kFLOAT:
646  case kNUMERIC:
647  case kDECIMAL:
648  common_type = SQLTypeInfo(kDOUBLE, notnull);
649  break;
650  default:
651  CHECK(false);
652  }
653  break;
654  case kNUMERIC:
655  case kDECIMAL:
656  switch (type2.get_type()) {
657  case kTINYINT:
658  common_type =
660  std::max(3 + type1.get_scale(), type1.get_dimension()),
661  type1.get_scale(),
662  notnull);
663  break;
664  case kSMALLINT:
665  common_type =
667  std::max(5 + type1.get_scale(), type1.get_dimension()),
668  type1.get_scale(),
669  notnull);
670  break;
671  case kINT:
672  common_type = SQLTypeInfo(
673  kDECIMAL,
675  10 + type1.get_scale()),
676  type2.get_dimension()),
677  type1.get_scale(),
678  notnull);
679  break;
680  case kBIGINT:
681  common_type = SQLTypeInfo(kDECIMAL,
683  type1.get_scale(),
684  notnull);
685  break;
686  case kFLOAT:
687  common_type = SQLTypeInfo(kFLOAT, notnull);
688  break;
689  case kDOUBLE:
690  common_type = SQLTypeInfo(kDOUBLE, notnull);
691  break;
692  case kNUMERIC:
693  case kDECIMAL: {
694  int common_scale = std::max(type1.get_scale(), type2.get_scale());
695  common_type = SQLTypeInfo(kDECIMAL,
696  std::max(type1.get_dimension() - type1.get_scale(),
697  type2.get_dimension() - type2.get_scale()) +
698  common_scale,
699  common_scale,
700  notnull);
701  break;
702  }
703  default:
704  CHECK(false);
705  }
706  break;
707  default:
708  CHECK(false);
709  }
710  common_type.set_fixed_size();
711  return common_type;
712 }
static constexpr int32_t kMaxRepresentableNumericPrecision
Definition: sqltypes.h:48
HOST DEVICE int get_scale() const
Definition: sqltypes.h:384
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:379
bool is_number() const
Definition: sqltypes.h:580
bool is_timeinterval() const
Definition: sqltypes.h:586
bool is_boolean() const
Definition: sqltypes.h:582
HOST DEVICE int get_dimension() const
Definition: sqltypes.h:381
std::string get_type_name() const
Definition: sqltypes.h:503
#define CHECK(condition)
Definition: Logger.h:222
Definition: sqltypes.h:60
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:386

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SQLTypeInfo Analyzer::BinOper::common_string_type ( const SQLTypeInfo type1,
const SQLTypeInfo type2 
)
static

Definition at line 425 of file Analyzer.cpp.

References CHECK, SQLTypeInfo::get_comp_param(), SQLTypeInfo::get_compression(), SQLTypeInfo::get_dimension(), SQLTypeInfo::get_notnull(), SQLTypeInfo::get_type(), SQLTypeInfo::is_string(), kENCODING_DICT, kENCODING_NONE, kNULLT, kTEXT, kVARCHAR, and TRANSIENT_DICT.

Referenced by Parser::InValues::analyze().

426  {
427  SQLTypeInfo common_type;
429  int comp_param = 0;
430  CHECK(type1.is_string() && type2.is_string());
431  // if type1 and type2 have the same DICT encoding then keep it
432  // otherwise, they must be decompressed
433  if (type1.get_compression() == kENCODING_DICT &&
434  type2.get_compression() == kENCODING_DICT) {
435  if (type1.get_comp_param() == type2.get_comp_param() ||
436  type1.get_comp_param() == TRANSIENT_DICT(type2.get_comp_param())) {
437  comp = kENCODING_DICT;
438  comp_param = std::min(type1.get_comp_param(), type2.get_comp_param());
439  }
440  } else if (type1.get_compression() == kENCODING_DICT &&
441  type2.get_compression() == kENCODING_NONE) {
442  comp_param = type1.get_comp_param();
443  } else if (type1.get_compression() == kENCODING_NONE &&
444  type2.get_compression() == kENCODING_DICT) {
445  comp_param = type2.get_comp_param();
446  } else {
447  comp_param = std::max(type1.get_comp_param(),
448  type2.get_comp_param()); // preserve previous comp_param if set
449  }
450  const bool notnull = type1.get_notnull() && type2.get_notnull();
451  if (type1.get_type() == kTEXT || type2.get_type() == kTEXT) {
452  common_type = SQLTypeInfo(kTEXT, 0, 0, notnull, comp, comp_param, kNULLT);
453  return common_type;
454  }
455  common_type = SQLTypeInfo(kVARCHAR,
456  std::max(type1.get_dimension(), type2.get_dimension()),
457  0,
458  notnull,
459  comp,
460  comp_param,
461  kNULLT);
462  return common_type;
463 }
HOST DEVICE SQLTypes get_type() const
Definition: sqltypes.h:379
EncodingType
Definition: sqltypes.h:228
Definition: sqltypes.h:67
HOST DEVICE EncodingType get_compression() const
Definition: sqltypes.h:387
HOST DEVICE int get_dimension() const
Definition: sqltypes.h:381
HOST DEVICE int get_comp_param() const
Definition: sqltypes.h:388
#define CHECK(condition)
Definition: Logger.h:222
bool is_string() const
Definition: sqltypes.h:575
HOST DEVICE bool get_notnull() const
Definition: sqltypes.h:386
#define TRANSIENT_DICT(ID)
Definition: sqltypes.h:310

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::shared_ptr< Analyzer::Expr > Analyzer::BinOper::deep_copy ( ) const
overridevirtual

Implements Analyzer::Expr.

Definition at line 106 of file Analyzer.cpp.

References Analyzer::Expr::contains_agg, left_operand, optype, qualifier, right_operand, and Analyzer::Expr::type_info.

Referenced by normalize_simple_predicate().

106  {
107  return makeExpr<BinOper>(type_info,
108  contains_agg,
109  optype,
110  qualifier,
111  left_operand->deep_copy(),
112  right_operand->deep_copy());
113 }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
SQLTypeInfo type_info
Definition: Analyzer.h:183
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
bool contains_agg
Definition: Analyzer.h:184

+ Here is the caller graph for this function:

void Analyzer::BinOper::find_expr ( bool(*)(const Expr *)  f,
std::list< const Expr * > &  expr_list 
) const
overridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 3088 of file Analyzer.cpp.

References Analyzer::Expr::add_unique(), anonymous_namespace{Utm.h}::f, left_operand, and right_operand.

3088  {
3089  if (f(this)) {
3090  add_unique(expr_list);
3091  return;
3092  }
3093  left_operand->find_expr(f, expr_list);
3094  right_operand->find_expr(f, expr_list);
3095 }
virtual void add_unique(std::list< const Expr * > &expr_list) const
Definition: Analyzer.cpp:3078
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
constexpr double f
Definition: Utm.h:31
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524

+ Here is the call graph for this function:

const Expr* Analyzer::BinOper::get_left_operand ( ) const
inline

Definition at line 450 of file Analyzer.h.

References left_operand.

Referenced by anonymous_namespace{CompareIR.cpp}::check_array_comp_cond(), CodeGenerator::checkExpressionRanges(), CodeGenerator::codegenArith(), CodeGenerator::codegenArrayAt(), CodeGenerator::codegenCmp(), CodeGenerator::codegenDeciDiv(), CodeGenerator::codegenFpArith(), CodeGenerator::codegenIntArith(), CodeGenerator::codegenLogical(), CodeGenerator::codegenLogicalShortCircuit(), anonymous_namespace{PerfectJoinHashTable.cpp}::get_cols(), anonymous_namespace{HashJoin.cpp}::get_cols(), anonymous_namespace{LogicalIR.cpp}::get_likelihood(), anonymous_namespace{LogicalIR.cpp}::get_weight(), getExpressionRange(), CodeGenerator::hashJoinLhsTuple(), RelAlgExecutor::isRowidLookup(), anonymous_namespace{CompareIR.cpp}::lower_multicol_compare(), HashJoin::normalizeColumnPairs(), QueryPlanDagExtractor::normalizeColumnsPair(), operator==(), Executor::skipFragment(), RelAlgTranslator::translateIntervalExprForWindowFraming(), ScalarExprToSql::visitBinOper(), anonymous_namespace{ExpressionRewrite.cpp}::OrToInVisitor::visitBinOper(), DeepCopyVisitor::visitBinOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >::visitBinOper(), anonymous_namespace{RelAlgExecutor.cpp}::TextEncodingCastCountVisitor::visitBinOper(), and anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitBinOper().

450 { return left_operand.get(); }
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524

+ Here is the caller graph for this function:

const std::shared_ptr<Analyzer::Expr> Analyzer::BinOper::get_own_left_operand ( ) const
inline
const std::shared_ptr<Analyzer::Expr> Analyzer::BinOper::get_own_right_operand ( ) const
inline

Definition at line 455 of file Analyzer.h.

References right_operand.

Referenced by CodeGenerator::codegenCmp(), anonymous_namespace{CompareIR.cpp}::lower_bw_eq(), anonymous_namespace{ExpressionRewrite.cpp}::OrToInVisitor::visitBinOper(), anonymous_namespace{ExpressionRewrite.cpp}::RecursiveOrToInVisitor::visitBinOper(), and anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitBinOper().

455  {
456  return right_operand;
457  }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525

+ Here is the caller graph for this function:

SQLQualifier Analyzer::BinOper::get_qualifier ( ) const
inline

Definition at line 449 of file Analyzer.h.

References qualifier.

Referenced by CodeGenerator::codegenCmp(), anonymous_namespace{LogicalIR.cpp}::is_qualified_bin_oper(), anonymous_namespace{CompareIR.cpp}::lower_bw_eq(), DeepCopyVisitor::visitBinOper(), anonymous_namespace{ExpressionRewrite.cpp}::RecursiveOrToInVisitor::visitBinOper(), and anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitBinOper().

449 { return qualifier; }
SQLQualifier qualifier
Definition: Analyzer.h:522

+ Here is the caller graph for this function:

const Expr* Analyzer::BinOper::get_right_operand ( ) const
inline

Definition at line 451 of file Analyzer.h.

References right_operand.

Referenced by anonymous_namespace{CompareIR.cpp}::check_array_comp_cond(), CodeGenerator::checkExpressionRanges(), CodeGenerator::codegenArith(), CodeGenerator::codegenArrayAt(), CodeGenerator::codegenCmp(), CodeGenerator::codegenDeciDiv(), CodeGenerator::codegenFpArith(), CodeGenerator::codegenIntArith(), CodeGenerator::codegenLogical(), CodeGenerator::codegenLogicalShortCircuit(), anonymous_namespace{LogicalIR.cpp}::contains_unsafe_division(), anonymous_namespace{PerfectJoinHashTable.cpp}::get_cols(), anonymous_namespace{HashJoin.cpp}::get_cols(), getExpressionRange(), CodeGenerator::hashJoinLhsTuple(), anonymous_namespace{CompareIR.cpp}::lower_multicol_compare(), anonymous_namespace{WindowExpressionRewrite.cpp}::matches_gt_bigint_zero(), HashJoin::normalizeColumnPairs(), QueryPlanDagExtractor::normalizeColumnsPair(), operator==(), anonymous_namespace{LogicalIR.cpp}::should_defer_eval(), RelAlgTranslator::translateIntervalExprForWindowFraming(), ScalarExprToSql::visitBinOper(), anonymous_namespace{ExpressionRewrite.cpp}::OrToInVisitor::visitBinOper(), DeepCopyVisitor::visitBinOper(), ScalarExprVisitor< std::unordered_set< InputColDescriptor > >::visitBinOper(), and anonymous_namespace{RelAlgExecutor.cpp}::TextEncodingCastCountVisitor::visitBinOper().

451 { return right_operand.get(); }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525

+ Here is the caller graph for this function:

void Analyzer::BinOper::group_predicates ( std::list< const Expr * > &  scan_predicates,
std::list< const Expr * > &  join_predicates,
std::list< const Expr * > &  const_predicates 
) const
overridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 1588 of file Analyzer.cpp.

References kAND, left_operand, optype, and right_operand.

1590  {
1591  if (optype == kAND) {
1592  left_operand->group_predicates(scan_predicates, join_predicates, const_predicates);
1593  right_operand->group_predicates(scan_predicates, join_predicates, const_predicates);
1594  return;
1595  }
1596  std::set<int> rte_idx_set;
1597  left_operand->collect_rte_idx(rte_idx_set);
1598  right_operand->collect_rte_idx(rte_idx_set);
1599  if (rte_idx_set.size() > 1) {
1600  join_predicates.push_back(this);
1601  } else if (rte_idx_set.size() == 1) {
1602  scan_predicates.push_back(this);
1603  } else {
1604  const_predicates.push_back(this);
1605  }
1606 }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
Definition: sqldefs.h:36
bool Analyzer::BinOper::is_overlaps_oper ( ) const
inline

Definition at line 448 of file Analyzer.h.

References kOVERLAPS, and optype.

Referenced by HashJoin::normalizeColumnPairs().

448 { return optype == kOVERLAPS; }

+ Here is the caller graph for this function:

std::shared_ptr< Analyzer::Expr > Analyzer::BinOper::normalize_simple_predicate ( int &  rte_idx) const
overridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 1523 of file Analyzer.cpp.

References COMMUTE_COMPARISON, Analyzer::Expr::contains_agg, deep_copy(), Analyzer::ColumnVar::get_rte_idx(), IS_COMPARISON, kONE, left_operand, optype, qualifier, right_operand, simple_predicate_has_simple_cast(), and Analyzer::Expr::type_info.

1523  {
1524  rte_idx = -1;
1525  if (!IS_COMPARISON(optype) || qualifier != kONE) {
1526  return nullptr;
1527  }
1528  if (expr_is<UOper>(left_operand)) {
1530  auto uo = std::dynamic_pointer_cast<UOper>(left_operand);
1531  auto cv = std::dynamic_pointer_cast<ColumnVar>(uo->get_own_operand());
1532  rte_idx = cv->get_rte_idx();
1533  return this->deep_copy();
1534  }
1535  } else if (expr_is<UOper>(right_operand)) {
1537  auto uo = std::dynamic_pointer_cast<UOper>(right_operand);
1538  auto cv = std::dynamic_pointer_cast<ColumnVar>(uo->get_own_operand());
1539  rte_idx = cv->get_rte_idx();
1540  return makeExpr<BinOper>(type_info,
1541  contains_agg,
1543  qualifier,
1544  right_operand->deep_copy(),
1545  left_operand->deep_copy());
1546  }
1547  } else if (expr_is<ColumnVar>(left_operand) && !expr_is<Var>(left_operand) &&
1548  expr_is<Constant>(right_operand)) {
1549  auto cv = std::dynamic_pointer_cast<ColumnVar>(left_operand);
1550  rte_idx = cv->get_rte_idx();
1551  return this->deep_copy();
1552  } else if (expr_is<Constant>(left_operand) && expr_is<ColumnVar>(right_operand) &&
1553  !expr_is<Var>(right_operand)) {
1554  auto cv = std::dynamic_pointer_cast<ColumnVar>(right_operand);
1555  rte_idx = cv->get_rte_idx();
1556  return makeExpr<BinOper>(type_info,
1557  contains_agg,
1559  qualifier,
1560  right_operand->deep_copy(),
1561  left_operand->deep_copy());
1562  }
1563  return nullptr;
1564 }
static bool simple_predicate_has_simple_cast(const std::shared_ptr< Analyzer::Expr > cast_operand, const std::shared_ptr< Analyzer::Expr > const_operand)
Definition: Analyzer.cpp:1499
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
SQLTypeInfo type_info
Definition: Analyzer.h:183
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
Definition: sqldefs.h:70
#define COMMUTE_COMPARISON(X)
Definition: sqldefs.h:63
std::shared_ptr< Analyzer::Expr > deep_copy() const override
Definition: Analyzer.cpp:106
bool contains_agg
Definition: Analyzer.h:184
#define IS_COMPARISON(X)
Definition: sqldefs.h:57

+ Here is the call graph for this function:

bool Analyzer::BinOper::operator== ( const Expr rhs) const
overridevirtual

Implements Analyzer::Expr.

Definition at line 2276 of file Analyzer.cpp.

References get_left_operand(), get_optype(), get_right_operand(), left_operand, optype, and right_operand.

2276  {
2277  if (typeid(rhs) != typeid(BinOper)) {
2278  return false;
2279  }
2280  const BinOper& rhs_bo = dynamic_cast<const BinOper&>(rhs);
2281  return optype == rhs_bo.get_optype() && *left_operand == *rhs_bo.get_left_operand() &&
2282  *right_operand == *rhs_bo.get_right_operand();
2283 }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
BinOper(const SQLTypeInfo &ti, bool has_agg, SQLOps o, SQLQualifier q, std::shared_ptr< Analyzer::Expr > l, std::shared_ptr< Analyzer::Expr > r)
Definition: Analyzer.h:430
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524

+ Here is the call graph for this function:

std::shared_ptr<Analyzer::Expr> Analyzer::BinOper::rewrite_agg_to_var ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 503 of file Analyzer.h.

References Analyzer::Expr::contains_agg, left_operand, optype, qualifier, right_operand, and Analyzer::Expr::type_info.

504  {
505  return makeExpr<BinOper>(type_info,
506  contains_agg,
507  optype,
508  qualifier,
509  left_operand->rewrite_agg_to_var(tlist),
510  right_operand->rewrite_agg_to_var(tlist));
511  }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
SQLTypeInfo type_info
Definition: Analyzer.h:183
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
bool contains_agg
Definition: Analyzer.h:184
std::shared_ptr<Analyzer::Expr> Analyzer::BinOper::rewrite_with_child_targetlist ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 494 of file Analyzer.h.

References Analyzer::Expr::contains_agg, left_operand, optype, qualifier, right_operand, and Analyzer::Expr::type_info.

495  {
496  return makeExpr<BinOper>(type_info,
497  contains_agg,
498  optype,
499  qualifier,
500  left_operand->rewrite_with_child_targetlist(tlist),
501  right_operand->rewrite_with_child_targetlist(tlist));
502  }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
SQLTypeInfo type_info
Definition: Analyzer.h:183
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
bool contains_agg
Definition: Analyzer.h:184
std::shared_ptr<Analyzer::Expr> Analyzer::BinOper::rewrite_with_targetlist ( const std::vector< std::shared_ptr< TargetEntry >> &  tlist) const
inlineoverridevirtual

Reimplemented from Analyzer::Expr.

Definition at line 485 of file Analyzer.h.

References Analyzer::Expr::contains_agg, left_operand, optype, qualifier, right_operand, and Analyzer::Expr::type_info.

486  {
487  return makeExpr<BinOper>(type_info,
488  contains_agg,
489  optype,
490  qualifier,
491  left_operand->rewrite_with_targetlist(tlist),
492  right_operand->rewrite_with_targetlist(tlist));
493  }
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
SQLQualifier qualifier
Definition: Analyzer.h:522
SQLTypeInfo type_info
Definition: Analyzer.h:183
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
bool contains_agg
Definition: Analyzer.h:184
bool Analyzer::BinOper::simple_predicate_has_simple_cast ( const std::shared_ptr< Analyzer::Expr cast_operand,
const std::shared_ptr< Analyzer::Expr const_operand 
)
static

Definition at line 1499 of file Analyzer.cpp.

References Analyzer::Expr::get_type_info(), and kCAST.

Referenced by normalize_simple_predicate().

1501  {
1502  if (expr_is<UOper>(cast_operand) && expr_is<Constant>(const_operand)) {
1503  auto u_expr = std::dynamic_pointer_cast<UOper>(cast_operand);
1504  if (u_expr->get_optype() != kCAST) {
1505  return false;
1506  }
1507  if (!(expr_is<Analyzer::ColumnVar>(u_expr->get_own_operand()) &&
1508  !expr_is<Analyzer::Var>(u_expr->get_own_operand()))) {
1509  return false;
1510  }
1511  const auto& ti = u_expr->get_type_info();
1512  if (ti.is_time() && u_expr->get_operand()->get_type_info().is_time()) {
1513  // Allow casts between time types to pass through
1514  return true;
1515  } else if (ti.is_integer() && u_expr->get_operand()->get_type_info().is_integer()) {
1516  // Allow casts between integer types to pass through
1517  return true;
1518  }
1519  }
1520  return false;
1521 }
Definition: sqldefs.h:48

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string Analyzer::BinOper::toString ( ) const
overridevirtual

Implements Analyzer::Expr.

Definition at line 2657 of file Analyzer.cpp.

References kALL, kAND, kANY, kARRAY_AT, kDIVIDE, kEQ, kGE, kGT, kLE, kLT, kMINUS, kMODULO, kMULTIPLY, kNE, kOR, kOVERLAPS, kPLUS, left_operand, optype, qualifier, and right_operand.

Referenced by CodeGenerator::getArithWithOverflowIntrinsic().

2657  {
2658  std::string op;
2659  switch (optype) {
2660  case kEQ:
2661  op = "= ";
2662  break;
2663  case kNE:
2664  op = "<> ";
2665  break;
2666  case kLT:
2667  op = "< ";
2668  break;
2669  case kLE:
2670  op = "<= ";
2671  break;
2672  case kGT:
2673  op = "> ";
2674  break;
2675  case kGE:
2676  op = ">= ";
2677  break;
2678  case kAND:
2679  op = "AND ";
2680  break;
2681  case kOR:
2682  op = "OR ";
2683  break;
2684  case kMINUS:
2685  op = "- ";
2686  break;
2687  case kPLUS:
2688  op = "+ ";
2689  break;
2690  case kMULTIPLY:
2691  op = "* ";
2692  break;
2693  case kDIVIDE:
2694  op = "/ ";
2695  break;
2696  case kMODULO:
2697  op = "% ";
2698  break;
2699  case kARRAY_AT:
2700  op = "[] ";
2701  break;
2702  case kOVERLAPS:
2703  op = "OVERLAPS ";
2704  break;
2705  default:
2706  break;
2707  }
2708  std::string str{"("};
2709  str += op;
2710  if (qualifier == kANY) {
2711  str += "ANY ";
2712  } else if (qualifier == kALL) {
2713  str += "ALL ";
2714  }
2715  str += left_operand->toString();
2716  str += right_operand->toString();
2717  str += ") ";
2718  return str;
2719 }
Definition: sqldefs.h:70
std::shared_ptr< Analyzer::Expr > right_operand
Definition: Analyzer.h:525
Definition: sqldefs.h:34
Definition: sqldefs.h:35
Definition: sqldefs.h:37
Definition: sqldefs.h:29
Definition: sqldefs.h:40
SQLQualifier qualifier
Definition: Analyzer.h:522
std::shared_ptr< Analyzer::Expr > left_operand
Definition: Analyzer.h:524
Definition: sqldefs.h:36
Definition: sqldefs.h:70
Definition: sqldefs.h:33
Definition: sqldefs.h:39
Definition: sqldefs.h:31
Definition: sqldefs.h:32

+ Here is the caller graph for this function:

Member Data Documentation


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