OmniSciDB  5ade3759e0
anonymous_namespace{QueryFragmentDescriptor.cpp} Namespace Reference

Functions

bool is_sample_query (const RelAlgExecutionUnit &ra_exe_unit)
 

Function Documentation

◆ is_sample_query()

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

Definition at line 226 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().

226  {
227  const bool result = ra_exe_unit.input_descs.size() == 1 &&
228  ra_exe_unit.simple_quals.empty() && ra_exe_unit.quals.empty() &&
229  ra_exe_unit.sort_info.order_entries.empty() &&
230  ra_exe_unit.scan_limit;
231  if (result) {
232  CHECK_EQ(size_t(1), ra_exe_unit.groupby_exprs.size());
233  CHECK(!ra_exe_unit.groupby_exprs.front());
234  }
235  return result;
236 }
#define CHECK_EQ(x, y)
Definition: Logger.h:195
const std::list< Analyzer::OrderEntry > order_entries
const std::list< std::shared_ptr< Analyzer::Expr > > groupby_exprs
const std::vector< InputDescriptor > input_descs
const SortInfo sort_info
std::list< std::shared_ptr< Analyzer::Expr > > quals
#define CHECK(condition)
Definition: Logger.h:187
std::list< std::shared_ptr< Analyzer::Expr > > simple_quals
+ Here is the caller graph for this function: