LucidDB / luciddb

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

[FRG-2] Get assertion failure while deducing types of UDT indicator variables #868

Open dynamobi-build opened 12 years ago

dynamobi-build commented 12 years ago

[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.