@@ -490,10 +490,9 @@ bool exprs_share_one_and_same_rte_idx(const hdk::ir::ExprPtr& lhs_expr,
490490 return collector.result ().size () == 1ULL ;
491491}
492492
493- const hdk::ir::Type* get_str_dict_cast_type (
494- const hdk::ir::Type* lhs_type,
495- const hdk::ir::Type* rhs_type,
496- const StringDictionaryProxyProvider* executor) {
493+ const hdk::ir::Type* get_str_dict_cast_type (const hdk::ir::Type* lhs_type,
494+ const hdk::ir::Type* rhs_type,
495+ const StringDictionaryProvider* executor) {
497496 CHECK (lhs_type->isExtDictionary ());
498497 CHECK (rhs_type->isExtDictionary ());
499498 const auto lhs_dict_id = lhs_type->as <hdk::ir::ExtDictionaryType>()->dictId ();
@@ -512,14 +511,14 @@ const hdk::ir::Type* get_str_dict_cast_type(
512511 }
513512 // If here then neither lhs or rhs type was transient, we should see which
514513 // type has the largest dictionary and make that the destination type
515- const auto lhs_sdp = executor->getStringDictionaryProxy (lhs_dict_id, true );
516- const auto rhs_sdp = executor->getStringDictionaryProxy (rhs_dict_id, true );
514+ const auto lhs_sdp = executor->getStringDictionary (lhs_dict_id, true );
515+ const auto rhs_sdp = executor->getStringDictionary (rhs_dict_id, true );
517516 return lhs_sdp->entryCount () >= rhs_sdp->entryCount () ? lhs_type : rhs_type;
518517}
519518
520519const hdk::ir::Type* common_string_type (const hdk::ir::Type* type1,
521520 const hdk::ir::Type* type2,
522- const StringDictionaryProxyProvider * executor) {
521+ const StringDictionaryProvider * executor) {
523522 auto & ctx = type1->ctx ();
524523 const hdk::ir::Type* common_type;
525524 auto nullable = type1->nullable () || type2->nullable ();
@@ -550,7 +549,7 @@ hdk::ir::ExprPtr normalizeOperExpr(const hdk::ir::OpType optype,
550549 hdk::ir::Qualifier qual,
551550 hdk::ir::ExprPtr left_expr,
552551 hdk::ir::ExprPtr right_expr,
553- const StringDictionaryProxyProvider * executor) {
552+ const StringDictionaryProvider * executor) {
554553 if ((left_expr->type ()->isDate () &&
555554 left_expr->type ()->as <hdk::ir::DateType>()->unit () == hdk::ir::TimeUnit::kDay ) ||
556555 (right_expr->type ()->isDate () &&
@@ -669,7 +668,7 @@ hdk::ir::ExprPtr normalizeOperExpr(const hdk::ir::OpType optype,
669668hdk::ir::ExprPtr normalizeCaseExpr (
670669 const std::list<std::pair<hdk::ir::ExprPtr, hdk::ir::ExprPtr>>& expr_pair_list,
671670 const hdk::ir::ExprPtr else_e_in,
672- const StringDictionaryProxyProvider * executor) {
671+ const StringDictionaryProvider * executor) {
673672 std::list<std::pair<hdk::ir::ExprPtr, hdk::ir::ExprPtr>> cast_expr_pair_list =
674673 expr_pair_list;
675674 const hdk::ir::Type* type = nullptr ;
0 commit comments