dynamobi/dynamobi — Issue #868: [FRG-2] Get assertion failure while deducing types of UDT indicator variables
Author: dynamobi-build
Created: 2011-12-30 03:53:58+00:00
State: open
Labels: FRG, Sql2Rel

[reporter="jhyde", created="Mon, 5 Dec 2005 01:23:14 -0500 (GMT-05:00)"]
During the refactoring to introduce RexProgram, I strengthened the asserts which check that a RexInputRef's type is consistent with the field that it is referencing. RelStructuredTypeFlattener is lazy when translating indicator variables as part of an IS NULL function call, and reuses the old RexInputRef: this field the same offset but a different type (BOOLEAN).

This change was large enough already without rewriting the flattening algorithm, so I have disabled the two tests in farrago/unitsql/ddl/udt.sql.