[MDEV-16144] Default TIMESTAMP clause for SELECT from versioned Created: 2018-05-11 Updated: 2019-09-30 Resolved: 2019-09-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Versioned Tables |
| Fix Version/s: | 10.5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Aleksey Midenkov | Assignee: | Aleksey Midenkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Currently when there is no unit specifier in AS OF query like:
it will do some heuristics to detect whether it should treat @p1 is trx_id or timestamp. Such semantic complexity should be removed in favour of default TIMESTAMP because: 1. rare practical use and doubtful advantage; |
| Comments |
| Comment by Aleksey Midenkov [ 2018-05-11 ] | ||||
|
bar please be aware. | ||||
| Comment by Alexander Barkov [ 2018-05-11 ] | ||||
|
midenok, thanks for the link. Note, I recently sent a patch fixing Let's return to this MDEV after those two. | ||||
| Comment by Alexander Barkov [ 2018-05-11 ] | ||||
|
midenok, I suggest you wait for my patch for | ||||
| Comment by Alexander Barkov [ 2018-05-15 ] | ||||
|
Alexey, the patch for
| ||||
| Comment by Aleksey Midenkov [ 2018-05-17 ] | ||||
|
bar I don't think changes from | ||||
| Comment by Alexander Barkov [ 2018-05-18 ] | ||||
|
Changes from I think it's fine to make undefined units to resolve to timestamp by default.
So they should require either an explicit unit, or even an explicit CAST. | ||||
| Comment by Aleksey Midenkov [ 2018-05-18 ] | ||||
|
bar Okay, I see your point. It seems, that it is not possible to simplify anything if type checking is required in SYSTEM_TIME. Unit resolution comes as a "free bonus". Therefore, closing. | ||||
| Comment by Aleksey Midenkov [ 2018-08-24 ] | ||||
|
This is the requirement for MDEV-16226. | ||||
| Comment by Alexander Barkov [ 2018-09-17 ] | ||||
|
Discussed with Aleksey on slack to make the patch more Type_handler friendly. | ||||
| Comment by Alexander Barkov [ 2018-09-18 ] | ||||
|
The latest version in https://github.com/MariaDB/server/pull/860 is now Type_handler friendly. Ok to push from my side. |