Skip to content

Commit 1a88bb4

Browse files
authored
return implicit query params type into feature flag (#8063)
1 parent cf0bcd6 commit 1a88bb4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ydb/core/kqp/session_actor/kqp_query_state.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class TKqpQueryState : public TNonCopyable {
6767
, StartedAt(startedAt)
6868
{
6969
RequestEv.reset(ev->Release().Release());
70-
if (tableServiceConfig.GetEnableImplicitQueryParameterTypes() && !RequestEv->GetYdbParameters().empty()) {
70+
bool enableImplicitQueryParameterTypes = tableServiceConfig.GetEnableImplicitQueryParameterTypes() ||
71+
AppData()->FeatureFlags.GetEnableImplicitQueryParameterTypes();
72+
if (enableImplicitQueryParameterTypes && !RequestEv->GetYdbParameters().empty()) {
7173
QueryParameterTypes = std::make_shared<std::map<TString, Ydb::Type>>();
7274
for (const auto& [name, typedValue] : RequestEv->GetYdbParameters()) {
7375
QueryParameterTypes->insert({name, typedValue.Gettype()});

ydb/core/protos/feature_flags.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ message TFeatureFlags {
105105
optional bool EnableSeparationComputeActorsFromRead = 90 [default = false];
106106
optional bool EnablePQConfigTransactionsAtSchemeShard = 91 [default = false];
107107
optional bool EnableScriptExecutionOperations = 92 [default = true];
108-
reserved 93; // optional bool EnableImplicitQueryParameterTypes = 93 [default = false];
108+
optional bool EnableImplicitQueryParameterTypes = 93 [default = false];
109109
optional bool EnableForceImmediateEffectsExecution = 94 [default = false];
110110
optional bool EnableTopicSplitMerge = 95 [default = false];
111111
optional bool EnableChangefeedDynamoDBStreamsFormat = 96 [default = true];

0 commit comments

Comments
 (0)