[MDEV-22597] Add views for periods in information_schema Created: 2020-05-16 Updated: 2024-01-31 |
|
| Status: | In Testing |
| Project: | MariaDB Server |
| Component/s: | Information Schema, Versioned Tables |
| Fix Version/s: | 11.4 |
| Type: | New Feature | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Alice Sherepa |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | Preview_11.3, beginner-friendly | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Description |
|
System-versioned tables can be recognized in information_schema by TABLES.TABLE_TYPE being SYSTEM VERSIONED. Application-time period tables, however, are indistinguishable. They present in TABLES view as BASE TABLE, and the period looks like a regular check constraint both in CHECK_CONSTRAINTS and TABLE_CONSTRAINTS. As discussed earlier on Slack, the standard defines some period-specific views, I think at least most basic ones should be added. |
| Comments |
| Comment by Nikita Malyavin [ 2023-08-28 ] | ||||||||
|
The standard introduces a new table PERIODS. TABLE_TYPE will not be affected. | ||||||||
| Comment by Sergei Golubchik [ 2023-08-28 ] | ||||||||
|
Full list of what periods affect in I_S:
| ||||||||
| Comment by Nikita Malyavin [ 2023-08-30 ] | ||||||||
|
Please review commits:
on branch bb-11.3-periods-schema | ||||||||
| Comment by Sergei Golubchik [ 2023-09-08 ] | ||||||||
|
82a49812 and 23b15d24 are ok to push would be good to add a test that
does not show anything in the period tables. | ||||||||
| Comment by Elena Stepanova [ 2023-10-19 ] | ||||||||
|
Most testing was done so far on bb-11.3-periods-schema commits 24018c74 and 90656c9f. Some changes from commits 27839d43 and 44f64348 also taken into account. Must analyze
It is "must analyze" but not necessarily "must fix" because it's possible that some or all of these problems are generic for information schema, not specific to the views added by this patch. If so, the priority can be decreased, although my recommendation would be to try to fix them by the GA. Suggestions
To my understanding, it is not a part of the feature as such, but of a preceding commit in the feature tree. Still, it would be good to fill the gap. Something like this does the trick, although of course it is not worth a separate test file, it should be added to an existing one instead:
After the branch is ready, a final round of testing should be performed (even if no changes are made, because the previous testing was done on a mix of commits and its results may lack consistency). |