Skip to content

Commit b8ba76e

Browse files
authored
Statistics: disable ANALYZE in KQP without feature flag (#10706)
1 parent fca1f18 commit b8ba76e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/kqp/provider/yql_kikimr_exec.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -2444,6 +2444,11 @@ class TKiSinkCallableExecutionTransformer : public TAsyncCallbackTransformer<TKi
24442444
}
24452445

24462446
if (auto maybeAnalyze = TMaybeNode<TKiAnalyzeTable>(input)) {
2447+
if (!SessionCtx->Config().FeatureFlags.GetEnableColumnStatistics()) {
2448+
ctx.AddError(TIssue("ANALYZE command is not supported because `EnableColumnStatistics` feature flag is off"));
2449+
return SyncError();
2450+
}
2451+
24472452
auto cluster = TString(maybeAnalyze.Cast().DataSink().Cluster());
24482453

24492454
TAnalyzeSettings analyzeSettings = ParseAnalyzeSettings(maybeAnalyze.Cast());

0 commit comments

Comments
 (0)