[ 
https://issues.apache.org/jira/browse/CALCITE-7363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mihai Budiu resolved CALCITE-7363.
----------------------------------
    Fix Version/s: 1.42.0
       Resolution: Fixed

Fixed in 
[https://github.com/apache/calcite/commit/c8387a6e7d9d67ce2577e24f11929696668a1a76]

Thank you for the review [~asolimando] 

> Improve error message for ASOF JOIN 
> ------------------------------------
>
>                 Key: CALCITE-7363
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7363
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> An ASOF JOIN requires some very strict shape for the two conditions it 
> accepts.
> However, the error message provided when the shape is inadequate can be 
> improved:
> {code:java}
> CREATE TABLE asof_tbl(intt INT, arr VARCHAR ARRAY );
> SELECT * FROM asof_tbl t1
> LEFT ASOF JOIN asof_tbl AS t2
> MATCH_CONDITION (t1.intt >= t2.intt)
> ON t1.arr[2] = t2.arr[2];{code}
> Error:
> {code:java}
> ASOF JOIN condition must be a conjunction of equality comparisons {code}
> The ASOF JOIN in this case actually *is* a conjunction of equality 
> comparisons, but the message should say that the compared values must be just 
> columns from the two sides of the join.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to