Closed killme2008 closed 2 months ago
The overall changes integrate a new ShowTableStatus
feature, modify visibility for an ENGINE
constant, refine query output formatting, and update compression settings within kafka configurations. The new ShowTableStatus
statements span various files, enhancing SQL parsing, statement execution, and result formatting. These updates enable detailed table status retrieval via SQL, improving database management capabilities.
Files/Groups | Change Summary |
---|---|
src/catalog/src/information_schema/tables.rs |
Changed visibility of ENGINE constant from private to public. |
src/frontend/src/instance.rs |
Introduced Statement::ShowTableStatus case in check_permission function. |
src/operator/src/statement (multiple files) |
Added show_table_status function and replaced ShowTables with ShowTableStatus . |
src/query/src/sql.rs |
Added show_table_status function and updated show_tables to return Output if successful. |
src/sql/src/parsers/show_parser.rs |
Added ShowTableStatus variant to Show enum and implemented parsing logic for SHOW statements. |
src/sql/src/statements (multiple files) |
Updated ShowKind::All variant, added format_kind! macro, and enhanced Display implementations. |
tests/cases/standalone/common/show (multiple files) |
Added new queries using SHOW TABLES LIKE , SHOW FULL TABLES , and SHOW TABLE STATUS . |
src/common/wal/src/config.rs , src/common/wal/src/config/kafka/* (multiple files) |
Changed compression setting from Lz4 to NoCompression . |
In the codebase, changes bloom, Tables now show their status, room by room. Compression shifts, light as air, Improvements scattered everywhere. 🎉✨ Hopping through lines with cheer, For updates that bring us near. 🚀🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 58.04196%
with 60 lines
in your changes missing coverage. Please review.
Project coverage is 84.93%. Comparing base (
3f4928e
) to head (180dda1
).
I have to revert #4294 , otherwise the sqlness with remote WAL always fails #4304 . @WenyXu
I have to revert #4294 , otherwise the sqlness with remote WAL always fails #4304 . @WenyXu
Let's do, I will take a look ASAP🥹
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
4017 #3354
What's changed and what's your intention?
show table status [IN database] [LIKE name | WHERE ..]
.ShowKind
display, theAll
should not display, it's just a placeholder.Checklist
Summary by CodeRabbit
New Features
SHOW TABLE STATUS
command to retrieve information about table statuses within the database.Enhancements
SHOW
commands to provide more consistent and clearer output.Configuration Changes
Lz4
toNoCompression
for both Datanode and Standalone configurations.Tests
SHOW TABLES LIKE
,SHOW FULL TABLES
, andSHOW TABLE STATUS
commands.