Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32207

Support 'F'-suffixed Float Literals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.4, 2.4.6, 3.0.1, 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      select 1.1f;
      

      currently thows

      
      ```
      org.apache.spark.sql.AnalysisException: Can't extract value from 1: need struct type but got int;
      ```
      

      Attachments

        Activity

          People

            Qin Yao Kent Yao 2
            Qin Yao Kent Yao 2
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: