-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
GSOC'25 - MDEV-12513 Implementation of Native INTERVAL Data Type #4108
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
base: main
Are you sure you want to change the base?
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.
Hi @HazemRawi , thanks for the PR. Here are my first impressions, please update the PR with changes. Thanks!
mysql-test/main/type_interval.test
Outdated
CREATE TABLE t13 (a INTERVAL HOUR(3) TO SECOND(2) ); | ||
CREATE TABLE t14 (a INTERVAL MINUTE TO SECOND(4) ); | ||
|
||
DROP TABLE t2; |
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.
Consolidate these to one statement, like this (but with all your new tables):
DROP TABLE t2, t3, t4;
sql/sql_yacc.yy
Outdated
| INTERVAL_SYM interval_qualifier | ||
{ | ||
$$.set(&type_handler_interval_DDhhmmssff); | ||
|
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.
Remove unneeded blank line.
3d32563
to
ef533ea
Compare
Thanks you! updated with the requested changes ; |
@@ -15708,6 +15747,13 @@ temporal_literal: | |||
YYCSCL, true)))) | |||
MYSQL_YYABORT; | |||
} | |||
| INTERVAL_SYM %prec EMPTY_FROM_CLAUSE TEXT_STRING interval_qualifier | |||
{ | |||
if (unlikely(!($$= type_handler_datetime.create_literal_item(thd, |
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.
Delegating interval handling to the type_handler_datetime.create_literal_item
is the reason why some some tests fail -- This will be resolved in the next commit by implementing type_handler_interval.create_literal_item
Description
TODO: fill description here
Release Notes
TODO: What should the release notes say about this change?
Include any changed system variables, status variables or behaviour. Optionally list any https://mariadb.com/kb/ pages that need changing.
How can this PR be tested?
TODO: modify the automated test suite to verify that the PR causes MariaDB to behave as intended.
Consult the documentation on "Writing good test cases".
If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.
Basing the PR against the correct MariaDB version
main
branch.PR quality check