[
https://issues.apache.org/jira/browse/CALCITE-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317066#comment-15317066
]
Julian Hyde commented on CALCITE-1268:
--------------------------------------
[~jnadeau] I agree. The goal should be that PruneEmptyRules.UNION_INSTANCE can
convert Union(R, empty) to R without having to add a casting Project.
However, we should try it. If it breaks a lot of things in dependent projects
it's not worth the hassle.
> Union should apply explicit Project over its children if they have different
> but coercible types
> ------------------------------------------------------------------------------------------------
>
> Key: CALCITE-1268
> URL: https://issues.apache.org/jira/browse/CALCITE-1268
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.7.0
> Reporter: Maryann Xue
> Assignee: Maryann Xue
>
> Test case in SqlToRelConverterTest:
> {code}
> @Test public void testUnionExprTypes() {
> check(
> "select empno, sal from emp "
> + "union all "
> + "select deptno, deptno from dept",
> "${plan}");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)