-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YQ-3184 support create table as select in kqprun #4412
YQ-3184 support create table as select in kqprun #4412
Conversation
⚪
|
⚪
|
⚪
|
⚪
|
@@ -388,7 +388,9 @@ TRequestResult TYdbSetup::GetScriptExecutionOperationRequest(const TString& oper | |||
meta.ExecutionStatus = static_cast<NYdb::NQuery::EExecStatus>(deserializedMeta.exec_status()); | |||
meta.ResultSetsCount = deserializedMeta.result_sets_meta_size(); | |||
meta.Ast = deserializedMeta.exec_stats().query_ast(); | |||
meta.Plan = deserializedMeta.exec_stats().query_plan(); | |||
if (deserializedMeta.exec_stats().query_plan()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В чем ценность этого if? Что плохого в старом коде?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Операция GetScriptExecutionOperationRequest
вызывается много раз и при финализации не успешного запроса план может потеряться тут (стать равным "{}"):
.JsonDocument(Request.QueryPlan.value_or("{}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Благодаря этому if, можно получить план запроса, который зафейлился на этапе исполнения
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if исправил, теперь сравнивается с "{}"
96412bc
to
9518642
Compare
⚪
|
⚪
|
Changelog entry
Improved kqprun for test
create table as select
Changelog category
Additional information