[MCOL-3785] CTAS (Create Table as Select) with COUNT() ... FROM ... GROUP BY ... throws syntax error Created: 2020-02-11 Updated: 2021-02-05 Resolved: 2021-01-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DDLProc |
| Affects Version/s: | 1.4, 1.5.3 |
| Fix Version/s: | 5.5.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | susil.behera | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Sprint: | 2021-1, 2021-2 | ||||||||||||
| Description |
|
Build tested: 1.4.3-1 CREATE TABLE ... ENGINE=columnstore AS SELECT ...COUNT() ... FROM ... GROUP BY ... throws syntax error. MariaDB [db1]> SELECT version();
-------------------
------------------- MariaDB [db1]> CREATE TABLE src (c0 int, c1 int); MariaDB [db1]> INSERT INTO src VALUES (1,1),(1,1),(1,1),(2,2),(2,2),(2,2),(3,3),(3,3),(3,3); MariaDB [db1]> CREATE TABLE tgt1 AS SELECT c0, count(c0) FROM src GROUP BY c0; MariaDB [db1]> SELECT * FROM tgt1;
-----
----- MariaDB [db1]> CREATE TABLE tgt2 engine = columnstore AS SELECT c0, count(c0) FROM src GROUP BY c0; |
| Comments |
| Comment by Roman [ 2020-03-06 ] |
|
There is a feature request issue for this. |
| Comment by Roman [ 2020-03-26 ] |
|
The feature from the linked issue doesn't cover this corner case. |
| Comment by Daniel Lee (Inactive) [ 2021-01-25 ] |
|
Build verified: 5.5.2 (b1552) The issue mentioned in the description has been fixed |