You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/03/23 23:36:52 UTC
[jira] [Resolved] (CALCITE-638) SQL standard REAL is 4 bytes, FLOAT
is 8 bytes
[ https://issues.apache.org/jira/browse/CALCITE-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-638.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0-incubating
Fixed in http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/76a0665c.
> SQL standard REAL is 4 bytes, FLOAT is 8 bytes
> ----------------------------------------------
>
> Key: CALCITE-638
> URL: https://issues.apache.org/jira/browse/CALCITE-638
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Fix For: 1.2.0-incubating
>
>
> Per the SQL standard,
> * the SQL REAL type is a 4 byte floating point number (thus maps to Java float),
> * FLOAT is up to 8 bytes (thus maps to Java double), and
> * DOUBLE is 8 bytes (thus maps to Java double).
> A number of places in Calcite map FLOAT to float values, and I think a few others map REAL to double.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)