[
https://issues.apache.org/jira/browse/CALCITE-3151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16874619#comment-16874619
]
Zhenghua Gao commented on CALCITE-3151:
---------------------------------------
[~vladimirsitnikov] I tried your patch and It didn't solve my flink issue.
IMO the conversion from LogicalProject to LogicalCalc should keep the collation.
> RexCall's Monotonicity is not considered in determining a Calc's collation
> --------------------------------------------------------------------------
>
> Key: CALCITE-3151
> URL: https://issues.apache.org/jira/browse/CALCITE-3151
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.19.0
> Reporter: Zhenghua Gao
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> In [FLINK-12999|https://issues.apache.org/jira/browse/FLINK-12999] I found a
> case that the planner can't generate a valid execution plan for a sample
> query:
> SELECT UUID() FROM (VALUES(1, 2, 3)) T(a, b, c)
> I made an investigation and found the root case was: RexCall's Monotonicity
> is not considered in determining a Calc's collation( should do the same as
> Project).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)