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

Include `ESCAPE` to `sql()` of `Like`

Details

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

    Description

      Fix the `sql()` method of the `Like` expression and append the `ESCAPE` closure. That should become consistent to `toString` and fix the issue:

      spark-sql (default)> create temp view tbl as (SELECT 'a|_' like 'a||_' escape '|', 'a|_' like 'a||_' escape 'a');
      [COLUMN_ALREADY_EXISTS] The column `a|_ like a||_` already exists. Consider to choose another name or rename the existing column.
      

      Attachments

        Issue Links

          Activity

            maxgekk Max Gekk added a comment -

            Issue resolved by pull request 43196
            https://github.com/apache/spark/pull/43196

            maxgekk Max Gekk added a comment - Issue resolved by pull request 43196 https://github.com/apache/spark/pull/43196

            People

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

              Dates

                Created:
                Updated:
                Resolved: