-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(sql): add table_storage() functionality #4817
feat(sql): add table_storage() functionality #4817
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution.
Although the function does not show all the partitions, it can still be useful. Please address the comments and
IMPORTANT!
add tests!
...c/main/java/io/questdb/griffin/engine/functions/table/AllTablePartitionsFunctionFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
@ideoma in the description it was said
Which is giving cumulative metrics of table partitions |
…harth0815/questdb into sa_add_show_all_partitions_function
…harth0815/questdb into sa_add_show_all_partitions_function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few things around naming. The PR title should change (and have feat(sql): in it)Also, maybe you should upgrade the description as I don't think this solves the issue, its a slightly different (but still very useful!) function.
We've had a few people ask for table size etc. without having to go to filesystem etc.
...c/main/java/io/questdb/griffin/engine/functions/table/AllTablePartitionsFunctionFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/table/ShowAllTablePartitionsCursoryFactory.java
Outdated
Show resolved
Hide resolved
@nwoolmer can you please check this |
Hey @siddharth0815 , I can see why there is confusion about this, you've not done anything wrong here. In the original issue, the requester names the function But then they provide a query in which they take a summary of these outputs. That could be achieved with a 'true' Your function above matches the request but their naming choice is probably not ideal. Your function is great and returns the summary they asked for - which is the stats for each table aggregated over all its partitions. And therefore, We should ping the requestor to let them know their query is now the function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for another great contribution!
Exposes
table_storage()
function which gives the following results for each table :NW: added link to relevant issue, won't close it yet: #3816