[MCOL-283] calc_mysql_week causes PrimProc to segfault Created: 2016-09-05  Updated: 2016-09-13  Resolved: 2016-09-13

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr
Affects Version/s: None
Fix Version/s: 1.0.3

Type: Bug Priority: Blocker
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-280 Beta issues Closed
Problem/Incident
is caused by MCOL-274 DATETIME field doesn't match with MyS... Closed
Sprint: 1.0.3

 Description   

My fix for MCOL-274 broke calc_mysql_week, the following query causes a segfault:

SELECT DATE_FORMAT(o_orderdate, '%W %M %Y') func_date_format,
	extract(month from o_orderdate) func_extract,
	MINUTE('2008-02-03 10:05:03'),
	SEC_TO_TIME(2378),
	SECOND('10:05:03'),
	TIME_TO_SEC('22:23:00'),
	to_days(o_orderdate),
	week(o_orderdate) func_week,
	year(o_orderdate)
from orders
where o_orderkey=1;



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2016-09-05 ]

Fix in https://github.com/mariadb-corporation/mariadb-columnstore-engine/pull/6

No extra QA will be needed, current regression suite triggered it.

Comment by Daniel Lee (Inactive) [ 2016-09-13 ]

Build verified:

Build verified:

Name : mariadb-columnstore-platform
Version : 1.0.3
Release : 1
Architecture: x86_64
Install Date: Tue 13 Sep 2016 09:26:32 AM CDT

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