Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34246 New type coercion syntax rules in ANSI mode
  3. SPARK-34248

Allow implicit casting string literal to other data types under ANSI mode

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.2
    • None
    • SQL
    • None

    Description

      As the default type coercion rules allow converting String type to other primitive types, we can specially allow converting string literal to other primitive types in ANSI mode. So that users won't get many SQL execution failure on switching to ANSI mode.
      This is learned from PostgreSQL.

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: