Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23198

Sql. Saturated casts don't work for negative approximated types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sql
    • Docs Required, Release Notes Required

    Description

      We have a few muted tests under IGNITE-19858, however, the issue has already been fixed.

      The reason of the issue is the incorrect work of saturated casts for negative double and real types.
      For some reason, the parser returns RexCall with the minus operation and literal for such approximate negative literals.

      Here are different approaches to fixing the issue:
      1. Figure out why the parser has such behavior for literals like '-340282346638528860000000000000000000000.000000000000000000000000000000000000000000001401298464324817::REAL' .
      2. Fix org.apache.ignite.internal.sql.engine.util.RexUtils#toSaturatedValue to handle such wrapped literals.

      3. Something else.

       

      So, need to find mention of IGNITE-19858 ticket to start fixing it.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jooger Iurii Gerzhedovich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: