OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{QueryFragmentDescriptor.cpp} Namespace Reference

Functions

bool is_sample_query (const RelAlgExecutionUnit &ra_exe_unit)
 

Function Documentation

bool anonymous_namespace{QueryFragmentDescriptor.cpp}::is_sample_query ( const RelAlgExecutionUnit ra_exe_unit)

Definition at line 447 of file QueryFragmentDescriptor.cpp.

References CHECK, CHECK_EQ, RelAlgExecutionUnit::groupby_exprs, RelAlgExecutionUnit::input_descs, SortInfo::order_entries, RelAlgExecutionUnit::quals, run_benchmark_import::result, RelAlgExecutionUnit::scan_limit, RelAlgExecutionUnit::simple_quals, and RelAlgExecutionUnit::sort_info.

Referenced by QueryFragmentDescriptor::terminateDispatchMaybe().

447  {
448  const bool result = ra_exe_unit.input_descs.size() == 1 &&
449  ra_exe_unit.simple_quals.empty() && ra_exe_unit.quals.empty() &&
450  ra_exe_unit.sort_info.order_entries.empty() &&
451  ra_exe_unit.scan_limit;
452  if (result) {
453  CHECK_EQ(size_t(1), ra_exe_unit.groupby_exprs.size());
454  CHECK(!ra_exe_unit.groupby_exprs.front());
455  }
456  return result;
457 }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
std::vector< InputDescriptor > input_descs
const std::list< std::shared_ptr< Analyzer::Expr > > groupby_exprs
std::list< Analyzer::OrderEntry > order_entries
std::list< std::shared_ptr< Analyzer::Expr > > quals
#define CHECK(condition)
Definition: Logger.h:291
std::list< std::shared_ptr< Analyzer::Expr > > simple_quals

+ Here is the caller graph for this function: