dynamobi/dynamobi — Issue #829: [FRG-41] return type inference (leastRestrictiveTypes) inconsistent with Fennel codegen
Author: dynamobi-build
Created: 2011-12-30 03:51:25+00:00
State: open
Labels: Fennel Calc Codegen, FRG

[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