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

Remove the check for `c>=0` from `ExternalCatalogUtils#needsEscaping`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

       

      def needsEscaping(c: Char): Boolean = {
        c >= 0 && c < charToEscape.size() && charToEscape.get(c)
      } 

       

       

      The numerical range of Char in Scala is from 0 to 65,535, so `c>=0` is always true.

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: