[MCOL-1696] error 1815 invalid column type with complex window function query Created: 2018-09-06  Updated: 2022-11-05  Resolved: 2022-11-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr
Affects Version/s: 1.1.5
Fix Version/s: Icebox

Type: Task Priority: Major
Reporter: David Thompson (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None


 Description   

To reproduce:

CREATE TABLE `q1` (
  `bin1` int(11) DEFAULT NULL,
  `bin2` int(11) DEFAULT NULL,
  `bin3` int(11) DEFAULT NULL,
  `non_zero` int(11) DEFAULT NULL
) ENGINE=Columnstore;
 
insert into q1 values (0 ,0 ,1 , 10);
insert into q1 values (0 ,0, 23 , 2);
insert into q1 values (0 ,1, 14 , 3);
insert into q1 values (1 ,1 ,7 , 9); 
insert into q1 values (1 ,1 ,7 , 10);
 
select
    t.bin1,
    if( count(t.bin1) over (  )
        % ( dense_rank() over (order by bin1 asc ) + dense_rank() over (order by bin1 desc ) - 1 ) = 0
        and VARIANCE(t.non_zero) over (  ) = 0
        , 1, 0) as coll1
from q1 t;
 
 
ERROR 1815 (HY000): Internal error: Error while fetching from ExeMgr: Row::isNullValue(): got bad column type (32544).  Width=32544

removing the variance window function or adding a partition clause to it removes the error.



 Comments   
Comment by Todd Stoffel (Inactive) [ 2022-11-05 ]

This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

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