Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-638

SQL standard REAL is 4 bytes, FLOAT is 8 bytes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0-incubating
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: