MDEV-40467 [to-squash] Improve Y2038/2106 problem error message - #5436
MDEV-40467 [to-squash] Improve Y2038/2106 problem error message#5436mariadb-YuchenPei wants to merge 6 commits into
Conversation
change p_column_list_val::fixed to a bool remove redundant end label in partition_info::fix_column_value_functions
Allow auto partitioning by interval in PARTITION BY RANGE COLUMNS PARTITION BY RANGE COLUMNS (col_name) INTERVAL interval [AUTO] ( PARTITION partition_name VALUES LESS THAN (value) [, PARTITION partition_name VALUES LESS THAN (value) ... ] ) where - col_name is the name of one column of type DATE or DATETIME or TIMESTAMP - at least one partition is supplied, and the highest partition cannot have MAXVALUE range - INTERVAL interval is a positive time interval. it can be mariadb format or oracle NUMTODSINTERVAL/NUMTOYMINTERVAL format. Like versioning, the smallest unit is second, i.e. no subsecond like microsecond. - DATE column cannot have interval with values less than a day - Subpartitions are allowed, but restricted to existing subpartition types, i.e. [LINEAR] (KEY|HASH) When performing one of the following DML statements on such a table, it will first add partitions by the specified interval until the partition covers the current time: - INSERT - INSERT ... SELECT - LOAD - UPDATE - REPLACE - REPLACE ... SELECT Partition addition will not cause an implicit commit like DDL normally does. The partitions are named pN. Otherwise the table behaves exactly the same as a normal RANGE COLUMNS partitioned table. Note that TIMESTAMP is not allowed as a type for PARTITION BY RANGE COLUMNS otherwise.
…e interval auto partitioning This is consistent with system time (versioning) partitioning. Also consistent is that both allow expressions otherwise.
…ge interval auto partitioning When a range interval auto partitioned table is the target of a trigger, the triggering statement is not necessarily one that would cause the auto-creation of new partitions, so we need to account for that. Also added support for LOCK TABLES ... WRITE. Improved tests coverage by adapting tests from versioning.partition.
Also removed table_rows in a SELECT, to avoid an unrelated flaky failure
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
|
|
Armageddon tenet.
…On Wednesday, July 22, 2026, Yuchen Pei ***@***.***> wrote:
When nearing the end times TIMESTAMP_MAX_VALUE, auto-partition creation
may encounter overflow when calculating new partition range. This patch
improves the message of such an overflow
------------------------------
You can view, comment on, or merge this pull request online at:
#5436
Commit Summary
- 13d3076
<13d3076>
MDEV-40467 [to-squash] Improve Y2038/2106 problem error message
File Changes
(3 files <https://github.com/MariaDB/server/pull/5436/files>)
- *M* mysql-test/main/partition_range_interval.result
<https://github.com/MariaDB/server/pull/5436/files#diff-44c74af4aa93edc2588bde835a1996987fe90d939d545bd2a90bb51e3341e0c2>
(67)
- *M* mysql-test/main/partition_range_interval.test
<https://github.com/MariaDB/server/pull/5436/files#diff-145158c0f9da292fdea568e379966f678f6bd9cff039089e9b5ac57ab45b5c78>
(43)
- *M* sql/sql_partition_auto_interval.cc
<https://github.com/MariaDB/server/pull/5436/files#diff-a4d7d34ba7762e95ec7a170d94cea2a77759bd8687a5b25cafbeb5366792961c>
(8)
Patch Links:
- https://github.com/MariaDB/server/pull/5436.patch
- https://github.com/MariaDB/server/pull/5436.diff
—
Reply to this email directly, view it on GitHub
<#5436?email_source=notifications&email_token=BFASTMKXKDFKVGZJOABAVFL5GA2GFA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42DCMBUHE3TMMBUGGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVRTG633UMVZF6Y3MNFRWW>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFASTMIBR6XXFNWQYIFAQT35GA2GFAVCNFSNUABEKJSXA33TNF2G64TZHMYTSOBRGYYDOMB3JFZXG5LFHM2DSNBVGIZDGMJSHCQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BFASTMNMZLX37D444YZCLZD5GA2GFA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42DCMBUHE3TMMBUGGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/BFASTMOPUMOKT4ANWGHVL3D5GA2GFA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42DCMBUHE3TMMBUGGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
claude review comment Review:
|
When nearing the end times TIMESTAMP_MAX_VALUE, auto-partition creation may encounter overflow when calculating new partition range. This patch improves the message of such an overflow
13d3076 to
2e423a4
Compare
|
claude: Review:
|
fa55525 to
e6fc36c
Compare
|
Thanks for the review. Squashed into MDEV-15621/#5152 and will push there. |
When nearing the end times TIMESTAMP_MAX_VALUE, auto-partition creation may encounter overflow when calculating new partition range. This patch improves the message of such an overflow