UNION of NULLs with several tables fails #6487
Last updated: 2018-02-12 16:12:04 +0100
Date: 2017-12-08 11:43:10 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36
CREATE TABLE g AS SELECT NULL AS j UNION ALL SELECT NULL AS j UNION ALL SELECT 'asdf' AS j WITH DATA;
worked fine with previous releases, fails now:
This should work fine as it did before.
Date: 2017-12-08 11:43:58 +0100
Clarification: Fails with SP3 Release Candidate branch
Date: 2017-12-08 14:39:42 +0100
IMHO this is due to the first UNION of NULLs creating a smallint type (sql_semantic.c, function supertype). Then, under strict coercion rules, strings cannot be UNIONed with this.
Date: 2017-12-08 16:54:23 +0100
Jul2017-SP1: works, Jul2017-SP2: fails.
Date: 2017-12-08 17:02:14 +0100
Date: 2017-12-16 18:13:00 +0100
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=bc4e4730f58d
The text was updated successfully, but these errors were encountered: