[
https://issues.apache.org/jira/browse/SPARK-57617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikolina Vraneš updated SPARK-57617:
------------------------------------
Description:
Follow-up to the {{BIN BY}} operator (SPARK-57133) refining its analysis-time
error conditions:
* Correct SQLSTATEs that did not match their semantics.
* Rename {{BIN_BY_DISTRIBUTE_TYPE_MISMATCH}} to
{{BIN_BY_INVALID_DISTRIBUTE_COLUMN_TYPE}} (an absolute required-type check, not
a two-operand mismatch).
* Split the {{BIN_BY_INVALID_BIN_WIDTH}} catch-all into separate fold-failure,
non-positive, and wrong-type conditions so each carries the right SQLSTATE.
* Replace {{BIN_BY_COLUMN_NOT_FOUND}} with the standard
{{UNRESOLVED_COLUMN.WITH_SUGGESTION}}.
{{BIN BY}} is new on master (5.0.0), gated off by default, and unreleased, so
no released version is affected.
> Refine BIN BY error conditions and SQLSTATEs
> --------------------------------------------
>
> Key: SPARK-57617
> URL: https://issues.apache.org/jira/browse/SPARK-57617
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 5.0.0
> Reporter: Nikolina Vraneš
> Priority: Major
> Labels: pull-request-available
>
> Follow-up to the {{BIN BY}} operator (SPARK-57133) refining its analysis-time
> error conditions:
> * Correct SQLSTATEs that did not match their semantics.
> * Rename {{BIN_BY_DISTRIBUTE_TYPE_MISMATCH}} to
> {{BIN_BY_INVALID_DISTRIBUTE_COLUMN_TYPE}} (an absolute required-type check,
> not a two-operand mismatch).
> * Split the {{BIN_BY_INVALID_BIN_WIDTH}} catch-all into separate
> fold-failure, non-positive, and wrong-type conditions so each carries the
> right SQLSTATE.
> * Replace {{BIN_BY_COLUMN_NOT_FOUND}} with the standard
> {{UNRESOLVED_COLUMN.WITH_SUGGESTION}}.
> {{BIN BY}} is new on master (5.0.0), gated off by default, and unreleased, so
> no released version is affected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]