Skip to content

Commit 55b3836

Browse files
authored
Merge db98869 into 6e721ad
2 parents 6e721ad + db98869 commit 55b3836

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/kqp/provider/yql_kikimr_exec.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,6 +2320,11 @@ class TKiSinkCallableExecutionTransformer : public TAsyncCallbackTransformer<TKi
23202320
}
23212321

23222322
if (auto maybeAnalyze = TMaybeNode<TKiAnalyzeTable>(input)) {
2323+
if (!SessionCtx->Config().FeatureFlags.GetEnableColumnStatistics()) {
2324+
ctx.AddError(TIssue("ANALYZE command is not supported because `EnableColumnStatistics` feature flag is off"));
2325+
return SyncError();
2326+
}
2327+
23232328
auto cluster = TString(maybeAnalyze.Cast().DataSink().Cluster());
23242329

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

0 commit comments

Comments
 (0)