Skip to content

fix(sql): fix spurious 'undeclared variable' error#6003

Merged
bluestreak01 merged 1 commit intomasterfrom
jh_spurious_undeclared_variable
Jul 30, 2025
Merged

fix(sql): fix spurious 'undeclared variable' error#6003
bluestreak01 merged 1 commit intomasterfrom
jh_spurious_undeclared_variable

Conversation

@jerrinot
Copy link
Copy Markdown
Contributor

@jerrinot jerrinot commented Jul 30, 2025

Symptoms:
Under high query load, QuestDB could throw a spurious 'undeclared variable error'.

Root cause:
SqlParser instance shared a single stateful visitor to replace variables. This creates a race where state from one SQL could bleed into an unrelated SQL.

fixes #6002

Symptoms:
Under high query load, QuestDB could throw a spurious 'undeclared variable error'.

Root cause:
SqlParser instance shared a single stateful visitor to
replace variables. This creates a race where state
from one SQL could bleed into un unrelated SQL.
@jerrinot jerrinot added Bug Incorrect or unexpected behavior Java Improvements that update Java code labels Jul 30, 2025
@glasstiger
Copy link
Copy Markdown
Contributor

[PR Coverage check]

😍 pass : 1 / 1 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/griffin/SqlParser.java 1 1 100.00%

@bluestreak01 bluestreak01 merged commit 9652faa into master Jul 30, 2025
36 checks passed
@bluestreak01 bluestreak01 deleted the jh_spurious_undeclared_variable branch July 30, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Incorrect or unexpected behavior Java Improvements that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spurious 'undeclared variable' error

4 participants