-
Notifications
You must be signed in to change notification settings - Fork 697
YQ fixed ast output for ctas #20673
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 fixed ast output for ctas #20673
Conversation
🔴 Bugfix requires a linked issue in the changelog entry |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
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.
Pull Request Overview
This PR ensures that AST output is correctly captured and returned for CTAS (Create Table As Select) operations by enabling stats profiling in tests and accumulating ASTs in the session actor.
- Tests now run queries and scripts with
StatsMode::Profile
and assert that ASTs are present. - The session actor collects per-statement ASTs into a vector and sets the combined AST on the final response.
- A new
QueryAsts
member was added to track ASTs across statements.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
ydb/core/kqp/ut/federated_query/s3/kqp_federated_query_ut.cpp | Enabled Profile stats in test utilities and added assertions for GetAst() presence. |
ydb/core/kqp/session_actor/kqp_session_actor.cpp | Collected GetQueryAst() results into QueryAsts and set joined AST string on response. |
ydb/core/kqp/session_actor/kqp_query_state.h | Introduced TVector<TString> QueryAsts to store AST fragments across statements. |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
Changelog entry
Fixed ast output for ctas
Changelog category
Description for reviewers