LucidDB / luciddb

DEFUNCT: See README
https://github.com/LucidDB/luciddb
Apache License 2.0
53 stars 24 forks source link

[FRG-41] return type inference (leastRestrictiveTypes) inconsistent with Fennel codegen #829

Closed dynamobi-build closed 12 years ago

dynamobi-build commented 12 years ago

[reporter="jpham", created="Wed, 15 Feb 2006 11:36:19 -0500 (GMT-05:00)"] farrago test case:
create table a_decimal (d decimal(14,4) primary key);
insert into a_decimal values (cast (10 as real));

the optimizer produces a multiplication:
(REAL) * (BIGINT) = (DOUBLE)

the translator for fennel calc generates:
(REAL) * cast( BIGINT as REAL ) = DOUBLE

which is not supported by the fennel calculator

see also, http://jirahost.eigenbase.org:8080/browse/LDB-8

dynamobi-build commented 12 years ago

[author="angel", created="Sat, 18 Feb 2006 22:13:24 -0500 (GMT-05:00)"] Fixed in eigenbase dt change 5509