OmniSciDB
1dac507f6e
|
#include "CalciteDeserializerUtils.h"
#include "../Analyzer/Analyzer.h"
#include "Shared/Logger.h"
#include <boost/algorithm/string.hpp>
Go to the source code of this file.
Functions | |
SQLTypeInfo | get_agg_type (const SQLAgg agg_kind, const Analyzer::Expr *arg_expr) |
ExtractField | to_datepart_field (const std::string &field) |
DateaddField | to_dateadd_field (const std::string &field) |
DatetruncField | to_datediff_field (const std::string &field) |
std::shared_ptr < Analyzer::Constant > | make_fp_constant (const int64_t val, const SQLTypeInfo &ti) |
Variables | |
bool | g_bigint_count |
SQLTypeInfo get_agg_type | ( | const SQLAgg | agg_kind, |
const Analyzer::Expr * | arg_expr | ||
) |
Definition at line 26 of file CalciteDeserializerUtils.cpp.
References CHECK(), g_bigint_count, Analyzer::Expr::get_type_info(), SQLTypeInfoCore< TYPE_FACET_PACK >::is_integer(), kAPPROX_COUNT_DISTINCT, kAVG, kBIGINT, kCOUNT, kDOUBLE, kINT, kMAX, kMIN, kSAMPLE, and kSUM.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::decide_approx_count_distinct_implementation(), anonymous_namespace{CalciteAdapter.cpp}::CalciteAdapter::translateAggregate(), and RelAlgTranslator::translateAggregateRex().
std::shared_ptr<Analyzer::Constant> make_fp_constant | ( | const int64_t | val, |
const SQLTypeInfo & | ti | ||
) |
Definition at line 172 of file CalciteDeserializerUtils.cpp.
References CHECK(), Datum::doubleval, Datum::floatval, SQLTypeInfoCore< TYPE_FACET_PACK >::get_type(), kDOUBLE, and kFLOAT.
Referenced by RelAlgTranslator::translateLiteral(), and anonymous_namespace{CalciteAdapter.cpp}::CalciteAdapter::translateTypedLiteral().
DateaddField to_dateadd_field | ( | const std::string & | field | ) |
Definition at line 90 of file CalciteDeserializerUtils.cpp.
References daDAY, daDECADE, daHOUR, daMICROSECOND, daMILLISECOND, daMINUTE, daMONTH, daNANOSECOND, daQUARTER, daSECOND, daWEEK, daWEEKDAY, and daYEAR.
Referenced by RelAlgTranslator::translateDateadd(), and anonymous_namespace{CalciteAdapter.cpp}::CalciteAdapter::translateDateadd().
DatetruncField to_datediff_field | ( | const std::string & | field | ) |
Definition at line 135 of file CalciteDeserializerUtils.cpp.
References dtDAY, dtHOUR, dtMICROSECOND, dtMILLISECOND, dtMINUTE, dtMONTH, dtNANOSECOND, dtQUARTER, dtSECOND, dtWEEK, and dtYEAR.
Referenced by RelAlgTranslator::translateDatediff(), and anonymous_namespace{CalciteAdapter.cpp}::CalciteAdapter::translateDatediff().
ExtractField to_datepart_field | ( | const std::string & | field | ) |
Definition at line 49 of file CalciteDeserializerUtils.cpp.
References kDAY, kDOY, kHOUR, kISODOW, kMICROSECOND, kMILLISECOND, kMINUTE, kMONTH, kNANOSECOND, kQUARTER, kQUARTERDAY, kSECOND, and kYEAR.
Referenced by RelAlgTranslator::translateDatepart(), and anonymous_namespace{CalciteAdapter.cpp}::CalciteAdapter::translateDatepart().
bool g_bigint_count |
Definition at line 50 of file GroupByAndAggregate.cpp.
Referenced by QueryMemoryInitializer::allocateCountDistinctBuffers(), TargetExprCodegen::codegen(), GroupByAndAggregate::codegenCountDistinct(), ColSlotContext::ColSlotContext(), anonymous_namespace{RelAlgExecutor.cpp}::decide_approx_count_distinct_implementation(), Executor::executePlanWithoutGroupBy(), Executor::executeUpdate(), anonymous_namespace{Execute.cpp}::fill_entries_for_empty_input(), MapDProgramOptions::fillOptions(), get_agg_type(), get_col_byte_widths(), get_heap_key_slot_index(), Executor::getDeviceTypeForTargets(), RelAlgExecutor::getFilteredCountAll(), RelAlgExecutor::getFilterSelectivity(), GroupByAndAggregate::getKeylessInfo(), anonymous_namespace{GroupByAndAggregate.cpp}::has_count_distinct(), init_agg_val_vec(), QueryMemoryInitializer::initColumnarGroups(), GroupByAndAggregate::initCountDistinctDescriptors(), TargetExprCodegenBuilder::operator()(), QueryMemoryDescriptor::pick_target_compact_width(), Executor::reduceMultiDeviceResults(), Executor::resultsUnion(), and target_exprs_to_infos().