@@ -490,10 +490,9 @@ bool exprs_share_one_and_same_rte_idx(const hdk::ir::ExprPtr& lhs_expr,
490
490
return collector.result ().size () == 1ULL ;
491
491
}
492
492
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) {
497
496
CHECK (lhs_type->isExtDictionary ());
498
497
CHECK (rhs_type->isExtDictionary ());
499
498
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(
512
511
}
513
512
// If here then neither lhs or rhs type was transient, we should see which
514
513
// 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 );
517
516
return lhs_sdp->entryCount () >= rhs_sdp->entryCount () ? lhs_type : rhs_type;
518
517
}
519
518
520
519
const hdk::ir::Type* common_string_type (const hdk::ir::Type* type1,
521
520
const hdk::ir::Type* type2,
522
- const StringDictionaryProxyProvider * executor) {
521
+ const StringDictionaryProvider * executor) {
523
522
auto & ctx = type1->ctx ();
524
523
const hdk::ir::Type* common_type;
525
524
auto nullable = type1->nullable () || type2->nullable ();
@@ -550,7 +549,7 @@ hdk::ir::ExprPtr normalizeOperExpr(const hdk::ir::OpType optype,
550
549
hdk::ir::Qualifier qual,
551
550
hdk::ir::ExprPtr left_expr,
552
551
hdk::ir::ExprPtr right_expr,
553
- const StringDictionaryProxyProvider * executor) {
552
+ const StringDictionaryProvider * executor) {
554
553
if ((left_expr->type ()->isDate () &&
555
554
left_expr->type ()->as <hdk::ir::DateType>()->unit () == hdk::ir::TimeUnit::kDay ) ||
556
555
(right_expr->type ()->isDate () &&
@@ -669,7 +668,7 @@ hdk::ir::ExprPtr normalizeOperExpr(const hdk::ir::OpType optype,
669
668
hdk::ir::ExprPtr normalizeCaseExpr (
670
669
const std::list<std::pair<hdk::ir::ExprPtr, hdk::ir::ExprPtr>>& expr_pair_list,
671
670
const hdk::ir::ExprPtr else_e_in,
672
- const StringDictionaryProxyProvider * executor) {
671
+ const StringDictionaryProvider * executor) {
673
672
std::list<std::pair<hdk::ir::ExprPtr, hdk::ir::ExprPtr>> cast_expr_pair_list =
674
673
expr_pair_list;
675
674
const hdk::ir::Type* type = nullptr ;
0 commit comments