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): fix column type handling in table_partitions() function #3251

Merged
merged 9 commits into from
Apr 25, 2023

Conversation

bziobrowski
Copy link
Contributor

Fixes #3250

jerrinot
jerrinot previously approved these changes Apr 19, 2023
@ideoma
Copy link
Collaborator

ideoma commented Apr 19, 2023

I'd change

appendTimestampColumnBin to call getTimestamp instead of getLong

to fix the related issue.

@bluestreak01
Copy link
Member

this would not be the only place that does this

ideoma
ideoma previously approved these changes Apr 20, 2023
@ideoma ideoma self-requested a review April 21, 2023 17:57
Copy link
Collaborator

@ideoma ideoma left a comment

Choose a reason for hiding this comment

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

@bluestreak01 is right, there can be other places that use getLong instead of getTimestamp. It's better to support both ways in the cursor.

@ideoma ideoma self-requested a review April 21, 2023 17:59
@ideoma
Copy link
Collaborator

ideoma commented Apr 25, 2023

[PR Coverage check]

😍 pass : 21 / 27 (77.78%)

file detail

path covered line new line coverage
🔵 io/questdb/griffin/engine/table/ShowPartitionsRecordCursorFactory.java 16 22 72.73%
🔵 io/questdb/griffin/engine/groupby/SampleByFirstLastRecordCursorFactory.java 3 3 100.00%
🔵 io/questdb/cutlass/pgwire/PGConnectionContext.java 2 2 100.00%

@ideoma ideoma merged commit 7843b31 into master Apr 25, 2023
17 checks passed
@ideoma ideoma deleted the bz_fix_show_partitions branch April 25, 2023 11:38
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.

questDB 7.1.1 java.lang.UnsupportedOperationException with table_partitions or SHOW PARTITIONS
4 participants