[MCOL-951] tpcds query 17 fails with invalid colum width Created: 2017-10-01  Updated: 2017-10-23  Resolved: 2017-10-23

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.1

Type: Bug Priority: Major
Reporter: David Thompson (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2017-20, 2017-21

 Description   

query 17 from tpcds works in 1.0.11 but fails with the following error in 1.1.0:

ERROR 1815 (HY000): Internal error: Error while fetching from ExeMgr: Row::isNullValue(): got bad column type (32680). Width=6579564

In logs the following assertion is triggered:
Oct 1 13:50:34 centos Calpont[5079]: 34.904348 |0|0|0| E 00 CAL0000: /home/builder/mariadb-columnstore-server/mariadb-columnstore-engine/utils/rowgroup/rowgroup.h@604: assertion '0' failed



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2017-10-03 ]

Using git bisect it was found that the regression was caused by the initial commits of MCOL-523

Comment by David Hall (Inactive) [ 2017-10-04 ]

An attempt to optimize the code was bad logic.

Comment by Daniel Lee (Inactive) [ 2017-10-23 ]

So what was done to this ticket?

Comment by Andrew Hutchings (Inactive) [ 2017-10-23 ]

Part of MCOL-523 was reverted (an attempt at a performance improvement). The test for this is TPCDS Query 17.

Comment by Daniel Lee (Inactive) [ 2017-10-23 ]

Build verified: 1.1.1-1 GitHub source

/root/columnstore/mariadb-columnstore-server
commit 3d846d3277ba970b32ba3f471323fcac58b5c35d
Author: david hill <david.hill@mariadb.com>
Date: Mon Oct 23 09:57:05 2017 -0500

change to 1.1.1

/root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine
commit 4aa7eb1830ddf585706f804b1982589c7d67ff0a
Author: root <root@srvhill01.lan>
Date: Mon Oct 23 09:56:07 2017 -0500

change to 1.1.1

Build the tpcds database and loaded 1gb dataset.

MariaDB [tpcds]> select i_item_id
-> ,i_item_desc
-> ,s_state
-> ,count(ss_quantity) as store_sales_quantitycount
-> ,avg(ss_quantity) as store_sales_quantityave
-> ,stddev_samp(ss_quantity) as store_sales_quantitystdev
-> ,stddev_samp(ss_quantity)/avg(ss_quantity) as store_sales_quantitycov
-> ,count(sr_return_quantity) as store_returns_quantitycount
-> ,avg(sr_return_quantity) as store_returns_quantityave
-> ,stddev_samp(sr_return_quantity) as store_returns_quantitystdev
-> ,stddev_samp(sr_return_quantity)/avg(sr_return_quantity) as store_returns_quantitycov
-> ,count(cs_quantity) as catalog_sales_quantitycount ,avg(cs_quantity) as catalog_sales_quantityave
-> ,stddev_samp(cs_quantity) as catalog_sales_quantitystdev
-> ,stddev_samp(cs_quantity)/avg(cs_quantity) as catalog_sales_quantitycov
-> from store_sales
-> ,store_returns
-> ,catalog_sales
-> ,date_dim d1
-> ,date_dim d2
-> ,date_dim d3
-> ,store
-> ,item
-> where d1.d_quarter_name = '1998Q1'
-> and d1.d_date_sk = ss_sold_date_sk
-> and i_item_sk = ss_item_sk
-> and s_store_sk = ss_store_sk
-> and ss_customer_sk = sr_customer_sk
-> and ss_item_sk = sr_item_sk
-> and ss_ticket_number = sr_ticket_number
-> and sr_returned_date_sk = d2.d_date_sk
-> and d2.d_quarter_name in ('1998Q1','1998Q2','1998Q3')
-> and sr_customer_sk = cs_bill_customer_sk
-> and sr_item_sk = cs_item_sk
-> and cs_sold_date_sk = d3.d_date_sk
-> and d3.d_quarter_name in ('1998Q1','1998Q2','1998Q3')
-> group by i_item_id
-> ,i_item_desc
-> ,s_state
-> order by i_item_id
-> ,i_item_desc
-> ,s_state
-> limit 100;
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

i_item_id i_item_desc s_state store_sales_quantitycount store_sales_quantityave store_sales_quantitystdev store_sales_quantitycov store_returns_quantitycount store_returns_quantityave store_returns_quantitystdev store_returns_quantitycov catalog_sales_quantitycount catalog_sales_quantityave catalog_sales_quantitystdev catalog_sales_quantitycov

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

AAAAAAAANCBAAAAA As eastern pupils help new resources. Radical weeks should enable over circumstances; casual characteristics ought to manage yet anima TN 1 56.0000 NULL NULL 1 8.0000 NULL NULL 1 12.0000 NULL NULL

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 row in set (0.95 sec)

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