File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -481,6 +481,8 @@ class TKqpCompileService : public TActorBootstrapped<TKqpCompileService> {
481
481
bool enableColumnsWithDefault = TableServiceConfig.GetEnableColumnsWithDefault ();
482
482
bool enableOlapSink = TableServiceConfig.GetEnableOlapSink ();
483
483
484
+ bool enableImplicitQueryParameterTypes = TableServiceConfig.GetEnableImplicitQueryParameterTypes ();
485
+
484
486
auto mkqlHeavyLimit = TableServiceConfig.GetResourceManager ().GetMkqlHeavyProgramMemoryLimit ();
485
487
486
488
TableServiceConfig.Swap (event.MutableConfig ()->MutableTableServiceConfig ());
@@ -508,7 +510,8 @@ class TKqpCompileService : public TActorBootstrapped<TKqpCompileService> {
508
510
TableServiceConfig.GetOldLookupJoinBehaviour () != oldLookupJoinBehaviour ||
509
511
TableServiceConfig.GetExtractPredicateRangesLimit () != rangesLimit ||
510
512
TableServiceConfig.GetResourceManager ().GetMkqlHeavyProgramMemoryLimit () != mkqlHeavyLimit ||
511
- TableServiceConfig.GetIdxLookupJoinPointsLimit () != idxLookupPointsLimit) {
513
+ TableServiceConfig.GetIdxLookupJoinPointsLimit () != idxLookupPointsLimit ||
514
+ TableServiceConfig.GetEnableImplicitQueryParameterTypes () != enableImplicitQueryParameterTypes) {
512
515
513
516
QueryCache.Clear ();
514
517
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ class TKqpQueryState : public TNonCopyable {
53
53
{
54
54
RequestEv.reset (ev->Release ().Release ());
55
55
56
- if (AppData ()->FeatureFlags .GetEnableImplicitQueryParameterTypes () && !RequestEv->GetYdbParameters ().empty ()) {
56
+ bool enableImplicitQueryParameterTypes = tableServiceConfig.GetEnableImplicitQueryParameterTypes () ||
57
+ AppData ()->FeatureFlags .GetEnableImplicitQueryParameterTypes ();
58
+ if (enableImplicitQueryParameterTypes && !RequestEv->GetYdbParameters ().empty ()) {
57
59
QueryParameterTypes = std::make_shared<std::map<TString, Ydb::Type>>();
58
60
for (const auto & [name, typedValue] : RequestEv->GetYdbParameters ()) {
59
61
QueryParameterTypes->insert ({name, typedValue.Gettype ()});
Original file line number Diff line number Diff line change @@ -276,4 +276,6 @@ message TTableServiceConfig {
276
276
277
277
optional uint64 IdxLookupJoinPointsLimit = 58 [default = 1 ];
278
278
optional bool OldLookupJoinBehaviour = 59 [default = true ];
279
+
280
+ optional bool EnableImplicitQueryParameterTypes = 66 [ default = false ];
279
281
};
You can’t perform that action at this time.
0 commit comments