Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27764 Feature Parity between PostgreSQL and Spark
  3. SPARK-28060

Float/Double type can not accept some special inputs

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.0.0
    • None
    • SQL
    • None

    Description

      Query Spark SQL PostgreSQL
      SELECT float('nan'); NULL NaN
      SELECT float('   NAN  '); NULL NaN
      SELECT float('infinity'); NULL Infinity
      SELECT float('          -INFINiTY   '); NULL -Infinity
      Query Spark SQL PostgreSQL
      SELECT double('nan'); NULL NaN
      SELECT double('   NAN  '); NULL NaN
      SELECT double('infinity'); NULL Infinity
      SELECT double('          -INFINiTY   '); NULL -Infinity

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: