Skip to content

Commit 9564725

Browse files
kyleconroyclaude
andcommitted
Handle SYNC keyword token in KILL QUERY parsing
- SYNC is a keyword token, not just IDENT - Check for both token types when parsing SYNC/ASYNC modifiers Fixes 02792_drop_projection_lwd/stmt6 and 2 other tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5e4634c commit 9564725

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

parser/parser.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8268,7 +8268,8 @@ func (p *Parser) parseKill() *ast.KillQuery {
82688268
}
82698269

82708270
// Parse SYNC/ASYNC/TEST
8271-
for p.currentIs(token.IDENT) {
8271+
// SYNC can be a keyword token or IDENT
8272+
for p.currentIs(token.IDENT) || p.currentIs(token.SYNC) {
82728273
upper := strings.ToUpper(p.current.Value)
82738274
switch upper {
82748275
case "SYNC":
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"explain_todo": {
3-
"stmt8": true
4-
}
5-
}
1+
{}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"explain_todo": {
3-
"stmt6": true
4-
}
5-
}
1+
{}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"explain_todo": {
3-
"stmt7": true
4-
}
5-
}
1+
{}

0 commit comments

Comments
 (0)