@@ -877,7 +877,7 @@ unique_ptr_destroy_only<RowIterator> CreateIteratorFromAccessPath(
877877 }
878878 const Mem_root_array<Item *> *extra_conditions =
879879 GetExtraHashJoinConditions (
880- mem_root, thd->lex ->using_hypergraph_optimizer , conditions,
880+ mem_root, thd->lex ->using_hypergraph_optimizer () , conditions,
881881 join_predicate->expr ->join_conditions );
882882 if (extra_conditions == nullptr ) return nullptr ;
883883 const bool probe_input_batch_mode =
@@ -931,7 +931,7 @@ unique_ptr_destroy_only<RowIterator> CreateIteratorFromAccessPath(
931931 // path instead of being computed here? We do make the same checks in
932932 // the cost model, so perhaps it should set the flag as well.
933933 uint64_t *hash_table_generation =
934- (thd->lex ->using_hypergraph_optimizer &&
934+ (thd->lex ->using_hypergraph_optimizer () &&
935935 path->parameter_tables == 0 )
936936 ? &join->hash_table_generation
937937 : nullptr ;
@@ -949,7 +949,7 @@ unique_ptr_destroy_only<RowIterator> CreateIteratorFromAccessPath(
949949 // change existing behavior.) Note that we always try the probe input
950950 // first for left join and antijoin.
951951 const HashJoinInput first_input =
952- (thd->lex ->using_hypergraph_optimizer &&
952+ (thd->lex ->using_hypergraph_optimizer () &&
953953 first_row_cost (*param.inner ) > first_row_cost (*param.outer ))
954954 ? HashJoinInput::kProbe
955955 : HashJoinInput::kBuild ;
0 commit comments