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

Sql. Different forms of notation for CAST operator return different results for same operands.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-beta1
    • None
    • sql

    Description

      Expected that:

      SELECT -9223372036854775808::BIGINT/-1::BIGINT
      
      

      and

      SELECT CAST (-9223372036854775808 as BIGINT)/-1::BIGINT
      

      returns the same results, but it not true, check issue related code

      Attachments

        Activity

          People

            Unassigned Unassigned
            zstan Evgeny Stanilovsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: