[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 |
| 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?
| ||||||||||||||||||||||
| Comment by hiller1 [ 2017-12-05 ] | ||||||||||||||||||||||
|
MariaDB [test]> select * from t1;
------
------ MariaDB [test]> replace into t1 values(1); MariaDB [test]> select * from t1;
------
------ MariaDB [test]> select @@version_comment;
----------------------
---------------------- 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. |