[MCOL-4453] CREATE TABLE t2 AS SELECT..LIMIT 0 erroneously writes a row into the table Created: 2020-12-16 Updated: 2021-01-25 Resolved: 2021-01-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 5.4.3 |
| Fix Version/s: | 5.5.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2021-1, 2021-2 | ||||||||
| Description |
|
I run this script with intent to copy the datatype of the column t1.c1 to t2.c2, but without copying the data:
Notice, t2 erroneously has one record, while the statement asked to write 0 rows to the destination table t2. |
| Comments |
| Comment by Alexander Barkov [ 2020-12-17 ] | |||||||||||||||||||||||||||
|
The problem is repeatable even if a simple SELECT..LIMIT 0.
| |||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2020-12-17 ] | |||||||||||||||||||||||||||
|
A related problem: a query with a DISTICT set qualifier ignores the offset in the LIMIT clause:
| |||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2021-01-25 ] | |||||||||||||||||||||||||||
|
Build verified: 5.5.2 (b1552), develop b1546 The fixed also checked into the develop branch |