Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      For example
      Case 1:

      select cast(-1.5 as smallint);
      

      Spark SQL returns -1, but PostgreSQL returns -2.

       

      Case 2:

      SELECT smallint(float('32767.6'))
      

      Spark SQL returns 32767, but PostgreSQL throws ERROR: smallint out of range.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: