fix(queryjson): rename SessionPropertiesJSON, fix stage ID dot-prefix handling and queryPlan key#96
Draft
Copilot wants to merge 3 commits into
Draft
fix(queryjson): rename SessionPropertiesJSON, fix stage ID dot-prefix handling and queryPlan key#96Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
|
… ID index check and queryPlan key, update comment Agent-Logs-Url: https://github.com/prestodb/presto-go-client/sessions/b9114e1f-e984-4290-9ca7-cf9512555efc Co-authored-by: ethanyzhang <6643318+ethanyzhang@users.noreply.github.com>
Agent-Logs-Url: https://github.com/prestodb/presto-go-client/sessions/b9114e1f-e984-4290-9ca7-cf9512555efc Co-authored-by: ethanyzhang <6643318+ethanyzhang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix field name to follow Go naming conventions
fix(queryjson): rename SessionPropertiesJSON, fix stage ID dot-prefix handling and queryPlan key
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four correctness and style fixes in the
queryjsonpackage.Changes
session.go— RenameSessionPropertiesJson→SessionPropertiesJSONper Go initialism conventions; updatePrepareForInsertcomment to document the wire format, include a concrete example, and note that pairs are sorted alphabetically for deterministic output.stage_info.go— Fixindex > 0→index >= 0inprocessForInsertso stage IDs with a leading dot (e.g..3) are stripped correctly instead of being left as-is. Replacestrconv.Itoa(len(queryPlan))withs.StageIdas thequeryPlanmap key, preventing silent overwrites when stages are processed out of order or the map is pre-populated. Removes now-unusedstrconvimport.Example: queryPlan key fix
Before, with three stages processed in sequence:
After:
Original prompt