[MCOL-561] Can't create view by using ColumnStore's windowing funcion SQL Created: 2017-02-10 Updated: 2017-09-07 Resolved: 2017-09-07 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.0.7 |
| Fix Version/s: | 1.1.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Allen Chan | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-12, 2017-13, 2017-14, 2017-15, 2017-16, 2017-17, 2017-18 |
| Description |
|
Original SQL: Create View SQL: |
| Comments |
| Comment by David Thompson (Inactive) [ 2017-05-08 ] |
|
It appears that this works in 1.1.0 likely as a side affect of the work to consolidate with the server 10.2 window function code. We should consider some more verification and addition of a regression test around this. |
| Comment by David Thompson (Inactive) [ 2017-06-12 ] |
|
Can you verify and add test cases for this. |
| Comment by Daniel Lee (Inactive) [ 2017-06-23 ] |
|
Build tested: 1.0.9-1, 1.1.0 Github source. select o_custkey, o_orderkey, Lead(o_orderkey,1) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ASC) as next_name from orders; create view myview as select o_custkey, o_orderkey, Lead(o_orderkey,1) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ASC) as next_name from orders; select * from myview; The above statement worked on 1.1.0. For 1.0.9-1, the create view statement worked, but returned the following error when selecting from the view. MariaDB [mytest]> select * from myview; There are no errors in the ColumnStore log files. More samples that worked in 1.1.0, but not 1.0.9-1 MariaDB [mytest]> create view myview as select o_custkey, Max(o_custkey) OVER ( ) from orders where o_orderkey < 100; MariaDB [mytest]> select * from myview; MariaDB [mytest]> create view myview as select o_custkey, Count(o_custkey) OVER ( ORDER BY o_custkey ) from orders where o_orderkey < 100; MariaDB [mytest]> select * from myview; |
| Comment by Daniel Lee (Inactive) [ 2017-09-07 ] |
|
Build verified: 1.1.0 Github source /root/columnstore/mariadb-columnstore-server Merge pull request #68 from mariadb-corporation/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #248 from mariadb-corporation/ removeModule fixes, check for glusterd in postConfigure, fix glusterU… Retested with the latest build today. It worked fine. Closing it. |