[MDEV-25165] Hidden temporal period columns cannot be selected from information schema Created: 2021-03-16 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.5.9 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Remy Fox | Assignee: | Aleksey Midenkov |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
According to the documentation there are two ways to create a versioned table: with implicit and explicit row_start and row_end columns. I noticed that selecting the row_end and row_start columns from the information schema is only possible when they were defined explicitly, yet if they are part of a unique index, then index columns can always be selected.
Compare
With
I think this is a strange inconsistency. |
| Comments |
| Comment by Sergei Golubchik [ 2021-03-29 ] | ||||||||||||||||
|
Invisible columns are columns created by the user that have the INVISIBLE attribute. If you write
you don't create any invisible columns, the table test_2 won't have any. "row_start" and "row_end" aren't invisible columns, they're basically internal properties that every row has. They can be selected, but that's it. The fact that some I_S tables show them as columns and others don't is, indeed, inconsistent. | ||||||||||||||||
| Comment by Elena Stepanova [ 2021-03-30 ] | ||||||||||||||||
|
Referring (once again) to my comment in the original MDEV-14785.
will become even more confusing than they already are. Now the user can at least run show index and get some hints from it
but if we lose this second record and it will only show pk, then there will be no explanation whatsoever why DROP COLUMN fails. There are probably more cases when system versioning "internal properties" interfere with operations unrelated to versioning. While it is so, I think hiding them completely might do more harm than good to the end users. |