[MCOL-1080] MariaDB ColumnStore does not support primary/unique keys Created: 2017-12-05  Updated: 2020-04-02  Resolved: 2020-04-02

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: None
Fix Version/s: N/A

Type: New Feature Priority: Minor
Reporter: hiller1 Assignee: Todd Stoffel (Inactive)
Resolution: Won't Do Votes: 1
Labels: None
Environment:

1.0.11



 Description   

1.not support replce into table_name
2.not support load data replce into



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2017-12-05 ]

It appears to work to me. Can you please give us more details on the problem?

MariaDB [test]> replace into t1 values (1,2);
Query OK, 1 row affected (0.26 sec)
 
MariaDB [test]> select * from t1;
+------+------+
| a    | b    |
+------+------+
|    1 |    2 |
+------+------+
1 row in set (0.10 sec)
 
MariaDB [test]> replace into t1 values (2,3);
Query OK, 1 row affected (0.10 sec)
 
MariaDB [test]> select * from t1;
+------+------+
| a    | b    |
+------+------+
|    1 |    2 |
|    2 |    3 |
+------+------+
2 rows in set (0.02 sec)

Comment by hiller1 [ 2017-12-05 ]

MariaDB [test]> select * from t1;
------

id

------

1

------
1 row in set (0.01 sec)

MariaDB [test]> replace into t1 values(1);
Query OK, 1 row affected (0.17 sec)

MariaDB [test]> select * from t1;
------

id

------

1
1

------
2 rows in set (0.01 sec)

MariaDB [test]> select @@version_comment;
----------------------

@@version_comment

----------------------

Columnstore 1.0.11-1

----------------------
1 row in set (0.00 sec)

record 1 can not be overwritten,there are duplicate records.

Comment by Andrew Hutchings (Inactive) [ 2017-12-05 ]

MariaDB ColumnStore has no primary/unique keys so REPLACE is basically an INSERT. The behaviour is technically correct.

Instead I can change this ticket into a feature request for primary keys if that is what is desired?

Comment by hiller1 [ 2017-12-05 ]

thanks!

Comment by hiller1 [ 2017-12-05 ]

If can support overwrite is very good.

Comment by Andrew Hutchings (Inactive) [ 2017-12-05 ]

Ticket has been updated accordingly and changed to a feature request.

Priority is currently low as this is a very large project to implement and the expected performance cost of using the implementation will be high.

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