[MCOL-23] 001 Working Folder Test scripts fails Created: 2016-05-03  Updated: 2016-10-03  Resolved: 2016-10-03

Status: Closed
Project: MariaDB ColumnStore
Component/s: PrimProc
Affects Version/s: None
Fix Version/s: 1.0.4

Type: Task Priority: Major
Reporter: Dipti Joshi (Inactive) Assignee: Andrew Hutchings (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-280 Beta issues Closed
Sprint: 2016-19

 Description   

Compare failed - working_tpch1/aggregation/group_concat.sql
Ref failed - working_tpch1/misc/bug2954.sql
Compare failed - working_tpch1/misc/bug3783.sql
Compare failed - working_tpch1/misc/bug3881.sql
Compare failed - working_tpch1/misc/bug4827.sql
Ref failed - working_tpch1/qa_fe_cnxFunctions/CASE1.SM.sql
Ref failed - working_tpch1/qa_fe_cnxFunctions/CASE2.SM.sql
Ref failed - working_tpch1/qa_fe_cnxFunctions/DAYNAME.DS.sql
Ref failed - working_tpch1/qa_fe_cnxFunctions/MONTHNAME.DS.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/bug3334_ceil.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/bug3506.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/bug3584.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/bug3788.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/CAST.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/concat_ws.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/CONVERT.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/degrees.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/from_days.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/from_unixtime.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/insert.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/LOG2.NS.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/makedate.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/NULLIF.DM.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/RADIANS.NS.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/repeat.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/SUBSTRING_INDEX.sql
Compare failed - working_tpch1/qa_fe_cnxFunctions/subtime.sql
Compare failed - working_tpch1/qa_fe_postProcessedFunctions/CONCAT_WS.SM.sql
Compare failed - working_tpch1/qa_fe_postProcessedFunctions/LOG2.NS.sql
Compare failed - working_tpch1/qa_fe_postProcessedFunctions/SEC_TO_TIME.NS.sql
Compare failed - working_tpch1/view/view.sql



 Comments   
Comment by David Hill (Inactive) [ 2016-05-18 ]

some query fails with local errors

/root/genii/mysql/queries/working_tpch1/misc

[root@srvregtest misc]# more bug2954.sql.log
ERROR 1690 (22003) at line 1: DOUBLE value is out of range in 'cot(0)'

[root@srvregtest misc]# more bug3783.sql.log
ERROR 1815 (HY000) at line 5: Internal error: IDB-2015: Sorting length exceeded. Session varia
ble max_length_for_sort_data needs to be set higher.

[root@srvregtest misc]# more bug5267.sql.log
ERROR 1178 (42000) at line 1: The storage engine for the table doesn't support IDB-1001: Funct
ion 'xor' can only be used in the outermost select or order by clause and cannot be used in co
njunction with an aggregate function.

/root/genii/mysql/queries/working_dml/misc

pwd
/root/genii/mysql/queries/working_dml/misc
[root@srvregtest misc]# grep -i error vtabledmlcol2col.sql.log
71 65916ERROR 1815 (HY000) at line 128: Internal error: IDB-2004: Cannot connect to ExeMgr.

pwd
/root/genii/mysql/queries/working_dml/misc
[root@srvregtest misc]# grep -i error vtabledmlcol2col.sql.log
71 65916ERROR 1815 (HY000) at line 128: Internal error: IDB-2004: Cannot connect to ExeMgr.

Comment by David Hall (Inactive) [ 2016-05-19 ]

working_tpch1/qa_fe_cnxFunctions/NULLIF.DM.sql, line 2: fails the compare. NULLIF on date vs datetime returns as though the compare was falsem yet select with = returns true

MariaDB [tpch1]> select cidx, CDATE, CDATETIME, NULLIF(CDATE,CDATETIME), CDATE=CDATETIME from datatypetestm order by cidx;
-------------------------------------------------------------------------

cidx CDATE CDATETIME NULLIF(CDATE,CDATETIME) CDATE=CDATETIME

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

1 1997-01-01 1997-01-01 00:00:00 1997-01-01 1
2 1997-01-01 1997-01-01 00:00:01 1997-01-01 0
3 1997-01-02 1997-01-02 00:00:01 1997-01-02 0
4 1997-01-03 1997-01-03 00:00:02 1997-01-03 0
5 1997-01-04 1997-01-04 00:00:03 1997-01-04 0
6 2009-12-28 2009-12-31 23:59:56 2009-12-28 0
7 2009-12-29 2009-12-31 23:59:57 2009-12-29 0
8 2009-12-30 2009-12-31 23:59:58 2009-12-30 0
9 2009-12-31 2009-12-31 23:59:59 2009-12-31 0
10 2009-12-31 2009-12-31 23:59:59 2009-12-31 0
11 2009-12-31 2009-12-31 23:59:59 2009-12-31 0

-------------------------------------------------------------------------
11 rows in set (0.06 sec)

NULLIF should return NULL if the two values compare as =. For row 1, we see in the last column that they do compare =, yet NULLIF returns the value, which it should not do.

Comment by David Hall (Inactive) [ 2016-05-19 ]

Re: NULLIF(CDATE,CDATETIME) the return type requested by MariaDB is DATE, where in mysql, it requested a string object. Columnstore has specific code for the date vs datetime NULLIF compare when a string is requested. When the DATE type return is requested, it had no such special processing.

Added the special processing for this case.

Comment by David Hall (Inactive) [ 2016-05-19 ]

Re: working_tpch1_compareLogOnly/misc/bug4433.sql
This test is for the change made to InfiniDB to increase the maximum size of database and table names from 64 to 128. This change has not been ported to columnstore, so this test is invalid at this time. Should we decide to increase the maximum size to 120 char, I suggest we do it for all of MariaDB, as it takes a change in the Server code to effect this modification.

Comment by David Hall (Inactive) [ 2016-05-19 ]

Re: working_tpch1_compareLogOnly/onClauseJoins/bug4031.sql query one gets a different answer than InfiniDB. It looks like another case where InfiniDB's optimizer is conflicting with MariaDB's optimizer and moving things to the inside of a join when they should stay outside.

This was indeed the same bug that optimized when it shouldn't. The shortcut I took before wasn't good enough. A full search of the list is needed.

		// MariaDB 10.1: cached_table is never available for derived tables.
		// Find the uncached object in table_list
		TABLE_LIST* tblList = ifp->context->table_list;
		while (tblList)
		{
			if (strcasecmp(tblList->alias, ifp->table_name) == 0)
			{
				if (!tblList->outer_join)
				{
					sc->derivedTable(derivedName);
					sc->derivedRefCol(cols[j].get());
				}
				break;
			}
			tblList = tblList->next_local;
		}

Comment by Dipti Joshi (Inactive) [ 2016-05-24 ]

David.Hall regarding your comments on working_tpch1_compareLogOnly/onClauseJoins/bug4031.sql, it is not showing as failure in test001 test report . If this test script is outside of test001 testsuite, let us file a separate Jira item for it.

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

test001 as is now working, see MCOL-25 for details.

InnoDB comparison will fail, but test001 doesn't do this.

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