You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (graphRestored && (stageInfo.Meta.ShardOperations || stageInfo.Meta.ShardKind != NSchemeCache::ETableKind::KindUnknown)) {
1937
-
ReplyErrorAndDie(Ydb::StatusIds::INTERNAL_ERROR, YqlIssue({}, NYql::TIssuesIds::KIKIMR_INTERNAL_ERROR, "Restore is not supported for table operations"));
1938
-
return;
1939
-
}
1940
-
1941
1936
if (stageInfo.Meta.ShardKind == NSchemeCache::ETableKind::KindAsyncIndexTable) {
res.Ctx.AddError(NYql::TIssue(res.Ctx.GetPosition(node->Pos()), "Operations with YDB objects is not allowed inside streaming queries"));
72
+
returnfalse;
73
+
}
74
+
75
+
constauto ydbWrite = maybeYdbWrite.Cast();
76
+
if (const TString mode(ydbWrite.Mode()); mode != "upsert") {
77
+
res.Ctx.AddError(NYql::TIssue(res.Ctx.GetPosition(node->Pos()), TStringBuilder() << "Only UPSERT writing mode is supported for YDB writes inside streaming queries, got mode: " << to_upper(mode)));
78
+
returnfalse;
79
+
}
80
+
68
81
returntrue;
69
82
}
70
83
71
84
if (dataSinkCategory == NYql::ResultProviderName) {
72
85
res.Ctx.AddError(NYql::TIssue(res.Ctx.GetPosition(node->Pos()), "Results is not allowed for streaming queries, please use INSERT to record the query result"));
res.Ctx.AddError(NYql::TIssue(res.Ctx.GetPosition(node->Pos()), "Writing into YDB tables is not supported now for streaming queries"));
76
-
} else {
77
-
res.Ctx.AddError(NYql::TIssue(res.Ctx.GetPosition(node->Pos()), "Operations with YDB objects is not allowed inside streaming queries"));
78
-
}
79
86
} else {
80
87
res.Ctx.AddError(NYql::TIssue(res.Ctx.GetPosition(node->Pos()), TStringBuilder() << "Writing into data sink " << dataSinkCategory << " is not supported now for streaming queries"));
0 commit comments