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

Unexpected results when having brackets with window query #3938

Closed
YuanchengJiang opened this issue Nov 9, 2023 · 0 comments · Fixed by #3970
Closed

Unexpected results when having brackets with window query #3938

YuanchengJiang opened this issue Nov 9, 2023 · 0 comments · Fixed by #3970
Assignees
Labels
Bug Incorrect or unexpected behavior SQL Issues or changes relating to SQL execution

Comments

@YuanchengJiang
Copy link

Describe the bug

(SELECT DISTINCT avg(event) OVER(PARTITION BY 1) FROM telemetry) gives incorrect results.

To reproduce

(SELECT DISTINCT avg(event) OVER(PARTITION BY 1) FROM telemetry)
Result:
()

Expected Behavior

Result should be same without brackets: SELECT DISTINCT avg(event) OVER(PARTITION BY 1) FROM telemetry

Environment

- **QuestDB version**: 7.3.4
- **OS**:
- **Browser**:

Additional context

No response

@puzpuzpuz puzpuzpuz added Bug Incorrect or unexpected behavior SQL Issues or changes relating to SQL execution labels Nov 9, 2023
@bziobrowski bziobrowski self-assigned this Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect or unexpected behavior SQL Issues or changes relating to SQL execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants