Closed killme2008 closed 2 weeks ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes in this pull request involve modifications to SQL parsing and table alteration functionalities. Specifically, adjustments were made to the alter_parser.rs
file to remove semicolons from test cases and refine error messages. The AlterTableOperation
enum in alter.rs
was updated to reflect new SQL syntax for altering table options. Additionally, methods in metadata.rs
were refactored to streamline the creation of table metadata builders. Finally, SQL scripts and result files were updated to incorporate a primary key constraint and various time-to-live settings for a test table.
File Path | Change Summary |
---|---|
src/sql/src/parsers/alter_parser.rs | Removed semicolons from SQL statements in test cases; updated error messages for consistency. |
src/sql/src/statements/alter.rs | Updated comment and implementation of AlterTableOperation for ChangeTableOptions to use SET . |
src/table/src/metadata.rs | Refactored builder_with_alter_kind and change_table_options methods to use new_meta_builder ; added new_meta_builder method. |
tests/cases/standalone/common/alter/alter_table_options.result | Added PRIMARY KEY(i) constraint; modified TTL settings with corresponding SELECT and SHOW CREATE TABLE commands. |
tests/cases/standalone/common/alter/alter_table_options.sql | Added PRIMARY KEY(i) constraint; restructured TTL alterations and added SELECT statements. |
In the land of SQL, where tables grow,
A primary key now steals the show! 🐇
With TTLs dancing, they change like the breeze,
Our queries now sing with newfound ease.
So hop along, let’s celebrate this feat,
With structured tables, our work is complete! 🎉
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.81%. Comparing base (
dfe8cf2
) to head (889526b
). Report is 3 commits behind head on main.
@coderabbitai review
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Fixed bugs introduced by #4926 :
ChangeTableOptions
Checklist
Summary by CodeRabbit
Release Notes
New Features
PRIMARY KEY
constraint on thei
column in theato
table.ato
table, allowing for dynamic management of data retention.Bug Fixes
Refactor
Tests