[ 
https://issues.apache.org/jira/browse/BEAM-6112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085933#comment-17085933
 ] 

Kenneth Knowles commented on BEAM-6112:
---------------------------------------

Took a look at this and now the join transforms are even stronger assumption 
that they always join on leftcol = rightcol.

If we always use rewrite rules to precompute all the values needed via a 
Project then this is enough. I wonder if Calcite already has a rule like that...

> SQL could support equijoins on complex expressions, not just column refs
> ------------------------------------------------------------------------
>
>                 Key: BEAM-6112
>                 URL: https://issues.apache.org/jira/browse/BEAM-6112
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql
>            Reporter: Kenneth Knowles
>            Priority: Major
>
> Currently a join such as {{CAST(A.x AS BIGINT) = B.y}} will fail, along with 
> other similar simple expressions. We only support joining directly on 
> immediate column references. It can be worked around by inserting a WITH 
> clause for the intermediate value.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to