[MDEV-15968] System versioning and CONNECT engine don't work well together: current data is not returned Created: 2018-04-21  Updated: 2023-04-27

Status: Confirmed
Project: MariaDB Server
Component/s: Storage Engine - Connect, Versioned Tables
Affects Version/s: 10.3
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-17463 System-versioned CONNECT tables have ... Closed
Relates
relates to MDEV-29829 System versioning does not work with ... Open
relates to MDEV-28288 System versioning doesn't support cor... Confirmed

 Description   

Currently system versioning does not work at all even for simplest table types of CONNECT engine, e.g. DOS, I assume due to MDEV-15967 – microseconds are not stored, so the stored value of row end is less than expected, and all data is considered outdated.

MariaDB [test]> create or replace table t3 (a int) engine=CONNECT table_type=DOS file_name='t3.file' with system versioning;
Query OK, 0 rows affected (0.05 sec)
 
MariaDB [test]> insert into t3 values (1);
Query OK, 1 row affected (0.00 sec)
 
MariaDB [test]> select * from t3;
Empty set (0.01 sec)
 
MariaDB [test]> select *, row_start, row_end from t3 for system_time all;
+------+----------------------------+----------------------------+
| a    | row_start                  | row_end                    |
+------+----------------------------+----------------------------+
|    1 | 2018-04-22 02:46:28.000000 | 2038-01-19 05:14:07.000000 |
+------+----------------------------+----------------------------+
1 row in set (0.00 sec)

So, unless MDEV-15967 is fixed by GA, versioning for CONNECT should be disabled.

However, I'm not sure it makes much sense to keep it even if MDEV-15967 gets fixed. Most CONNECT table types provide access to external data sources, and versioning will be either impossible at all, or its semantics will be questionable.


Generated at Thu Feb 08 08:25:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.