diff --git a/ydb/core/kqp/common/kqp_timeouts.cpp b/ydb/core/kqp/common/kqp_timeouts.cpp index 4389a3e3241d..1a59fbef4d13 100644 --- a/ydb/core/kqp/common/kqp_timeouts.cpp +++ b/ydb/core/kqp/common/kqp_timeouts.cpp @@ -19,9 +19,10 @@ ui64 GetDefaultQueryTimeoutMs(NKikimrKqp::EQueryType queryType, case NKikimrKqp::QUERY_TYPE_SQL_DML: case NKikimrKqp::QUERY_TYPE_PREPARED_DML: case NKikimrKqp::QUERY_TYPE_AST_DML: + return queryLimits.GetDataQueryTimeoutMs(); case NKikimrKqp::QUERY_TYPE_SQL_GENERIC_QUERY: case NKikimrKqp::QUERY_TYPE_SQL_GENERIC_CONCURRENT_QUERY: - return queryLimits.GetDataQueryTimeoutMs(); + return queryServiceConfig.GetQueryTimeoutDefaultSeconds() * 1000; case NKikimrKqp::QUERY_TYPE_SQL_GENERIC_SCRIPT: return queryServiceConfig.GetScriptOperationTimeoutDefaultSeconds() diff --git a/ydb/core/protos/config.proto b/ydb/core/protos/config.proto index 5757e561370e..d7c6ffbbdec6 100644 --- a/ydb/core/protos/config.proto +++ b/ydb/core/protos/config.proto @@ -1025,6 +1025,7 @@ message TQueryServiceConfig { optional NYql.TGenericGatewayConfig Generic = 11; optional TFinalizeScriptServiceConfig FinalizeScriptServiceConfig = 12; optional uint64 ProgressStatsPeriodMs = 14 [default = 0]; // 0 = disabled + optional uint32 QueryTimeoutDefaultSeconds = 19 [default = 1800]; optional bool EnableMatchRecognize = 20 [default = false]; }