[
https://issues.apache.org/jira/browse/CALCITE-6685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6685.
----------------------------------
Fix Version/s: 1.39.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/21982e3bad81a6194faa78c568cd829d4fef6a7b
Thank you for the review [~suibianwanwan3333]
Thank you to all the people who made design suggestions on the mailing list.
> Support checked arithmetic
> --------------------------
>
> Key: CALCITE-6685
> URL: https://issues.apache.org/jira/browse/CALCITE-6685
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.38.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> Many SQL dialects perform arithmetic using checked operations.
> I.e., they raise errors when the result of an arithmetic exception cannot be
> represented using the target type.
> Some SQL dialects make this behavior configurable: e.g., SQL Server has an
> ARITHABORT flag:
> https://learn.microsoft.com/en-us/sql/t-sql/statements/set-arithabort-transact-sql
> Calcite's executor and many optimization passes use Java arithmetic, which is
> not checked.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)