Skip to content
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

Fix parsing macros in complex queries #78

Merged
merged 1 commit into from Nov 30, 2022
Merged

Conversation

sasklacz
Copy link
Contributor

  • update go to 1.19
  • update plugin sdk

This fixes the case, where user would have a query like select * from foo default where ( date >= $__fromTime ) and ( date <= $__toTime ) limit 100 and parser would incorrectly only properly recognize the first macro (originally reported in clickhouse grafana/clickhouse-datasource#236) . Added additional test cases to cover that.

- update go to 1.19
- update plugin sdk
Copy link
Collaborator

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sasklacz sasklacz merged commit cd68d26 into main Nov 30, 2022
@sasklacz sasklacz deleted the iix_parsing_complex_macros branch November 30, 2022 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants