OmniSciDB  5ade3759e0
QueryMemoryDescriptor.cpp File Reference
+ Include dependency graph for QueryMemoryDescriptor.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{QueryMemoryDescriptor.cpp}
 

Functions

bool anonymous_namespace{QueryMemoryDescriptor.cpp}::is_int_and_no_bigger_than (const SQLTypeInfo &ti, const size_t byte_width)
 
std::vector< ssize_t > anonymous_namespace{QueryMemoryDescriptor.cpp}::target_expr_group_by_indices (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby_exprs, const std::vector< Analyzer::Expr *> &target_exprs)
 
std::vector< ssize_t > anonymous_namespace{QueryMemoryDescriptor.cpp}::target_expr_proj_indices (const RelAlgExecutionUnit &ra_exe_unit, const Catalog_Namespace::Catalog &cat)
 
int8_t anonymous_namespace{QueryMemoryDescriptor.cpp}::pick_baseline_key_component_width (const ExpressionRange &range)
 
int8_t anonymous_namespace{QueryMemoryDescriptor.cpp}::pick_baseline_key_width (const RelAlgExecutionUnit &ra_exe_unit, const std::vector< InputTableInfo > &query_infos, const Executor *executor)
 
std::string anonymous_namespace{QueryMemoryDescriptor.cpp}::boolToString (const bool val)
 
std::string anonymous_namespace{QueryMemoryDescriptor.cpp}::queryDescTypeToString (const QueryDescriptionType val)
 
std::vector< TargetInfotarget_exprs_to_infos (const std::vector< Analyzer::Expr *> &targets, const QueryMemoryDescriptor &query_mem_desc)
 

Variables

bool g_enable_smem_group_by {true}
 
bool g_enable_columnar_output
 

Function Documentation

◆ target_exprs_to_infos()

std::vector<TargetInfo> target_exprs_to_infos ( const std::vector< Analyzer::Expr *> &  targets,
const QueryMemoryDescriptor query_mem_desc 
)

Definition at line 1152 of file QueryMemoryDescriptor.cpp.

References g_bigint_count, get_target_info(), QueryMemoryDescriptor::getQueryDescriptionType(), NonGroupedAggregate, and set_notnull().

Referenced by SpeculativeTopNMap::asRows(), QueryMemoryInitializer::QueryMemoryInitializer(), and set_notnull().

1154  {
1155  std::vector<TargetInfo> target_infos;
1156  for (const auto target_expr : targets) {
1157  auto target = get_target_info(target_expr, g_bigint_count);
1158  if (query_mem_desc.getQueryDescriptionType() ==
1160  set_notnull(target, false);
1161  target.sql_type.set_notnull(false);
1162  }
1163  target_infos.push_back(target);
1164  }
1165  return target_infos;
1166 }
TargetInfo get_target_info(const PointerType target_expr, const bool bigint_count)
Definition: TargetInfo.h:65
bool g_bigint_count
QueryDescriptionType getQueryDescriptionType() const
void set_notnull(TargetInfo &target, const bool not_null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_enable_columnar_output

◆ g_enable_smem_group_by

bool g_enable_smem_group_by {true}