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

Parameterized sql() with constants

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      Change Scala/Java/Python APIs to accept any language objects from which would be possible to construct literal columns.

      The current implementation the parameterized sql() requires arguments as string values parsed to SQL literal expressions that causes the following issues:

      • SQL comments are skipped while parsing, so, some fragments of input might be skipped. For example, 'Europe – Amsterdam'. In this case, – Amsterdam is excluded from the input.
      • Special chars in string values must be escaped, for instance 'E\'Twaun Moore'

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: