[MDEV-14457] Testing for "AS OF", a.k.a. versioning, a.k.a system-versioned tables Created: 2017-11-21  Updated: 2022-03-14  Resolved: 2022-03-14

Status: Closed
Project: MariaDB Server
Component/s: Tests
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Elena Stepanova Assignee: Elena Stepanova
Resolution: Incomplete Votes: 0
Labels: None


 Description   

Development tree:
bb-10.3-temporal

Development task: MDEV-12894

External bug tracker:
https://github.com/tempesta-tech/mariadb/issues



 Comments   
Comment by Elena Stepanova [ 2017-11-21 ]

Windows failures on bb-10.3-temporal b41a7c80ec3dee5a0c4092d73b2e41126df6a5d3

With versioning.cte as an example, reproducible rather easily on a windows machine, by running the test with --repeat=N. Here is the cause of the problem (note the timestamps):

normal run

@@ -131,6 +131,9 @@
 emp_id name    mgr     salary
 1      bill    NULL    1000
 30     jane    1       750
+select @ts_1, @ts_2;
+@ts_1  @ts_2
+2017-11-20 23:18:14.392210     2017-11-20 23:18:14.407848
 /* Expected 3 rows */
 with recursive
 ancestors

failing run

@@ -131,6 +131,10 @@
 emp_id name    mgr     salary
 1      bill    NULL    1000
 30     jane    1       750
+20     john    30      500
+select @ts_1, @ts_2;
+@ts_1  @ts_2
+2017-11-20 23:18:18.115230     2017-11-20 23:18:18.115230
 /* Expected 3 rows */
 with recursive
 ancestors

Serg wrote:

you get this when the timer resolution is too low. Just because timestamps are shown up to the microsecods, doesn't mean that they're measured with this precision

Comment by Elena Stepanova [ 2017-11-21 ]

Minor upgrade failure on CentOS and alike – https://github.com/tempesta-tech/mariadb/issues/335

Comment by Elena Stepanova [ 2017-12-31 ]

Encountered limitations:

  • SELECT ... PARTITION (..) .. FOR system_time only works with traditional partitioning, not partitioning by system_time;
  • only PARTITION BY system_time INTERVAL .. LIMIT.. works, PARTITION BY system_time LIMIT ... INTERVAL ... does not (syntax error)
  • DELETE HISTORY ... RETURNING does not work (syntax error)
Generated at Thu Feb 08 08:13:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.