Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When working on PHOENIX-2886, found that we need special handling of coerce expression. Otherwise the following query would fail.
create table person ( id bigint not null primary key, firstname char(10), lastname varchar(10) ); select id, cast( 'foo' as char(10)) firstname, lastname from person union all select * from person;
Checking a coerce expression at top level should not be necessary. Need to find out root cause on coerceExpression.