Mihai Budiu created CALCITE-7363:
------------------------------------
Summary: 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
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)