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(sql): allow using more data types in PARTITION BY of LATEST ON queries #3137

Merged
merged 5 commits into from
Mar 30, 2023

Conversation

jerrinot
Copy link
Contributor

@jerrinot jerrinot commented Mar 30, 2023

PR allows using columns of following data types in PARTITON BY clause of LATEST ON :

  • BYTE
  • DATE
  • TIMESTAMP
  • FLOAT
  • DOUBLE
  • GEOHASH

This was an omission. It's allowed with LONGs so I see no good reason why it should not be allowed with TIMESTAMPs.

This was an omission. It's allowed with LONGs so I see no good
reason why it should not be allowed with TIMESTAMPs.
ideoma
ideoma previously approved these changes Mar 30, 2023
@puzpuzpuz puzpuzpuz added New feature Feature requests SQL Issues or changes relating to SQL execution labels Mar 30, 2023
@bziobrowski bziobrowski changed the title fix(sql): allow PARTITION BY timestamp in LATEST ON queries fix(sql): allow using more data types in PARTITION BY of LATEST ON queries Mar 30, 2023
@ideoma
Copy link
Collaborator

ideoma commented Mar 30, 2023

[PR Coverage check]

😍 pass : 1 / 1 (100.00%)

file detail

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

@ideoma ideoma merged commit 1b6adc4 into master Mar 30, 2023
@ideoma ideoma deleted the jh_latest_on_partition_by_timestamp branch March 30, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New feature Feature requests SQL Issues or changes relating to SQL execution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants