You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/10/04 08:34:00 UTC
[jira] [Updated] (SPARK-45398) Include `ESCAPE` to `sql()` of `Like`
[ https://issues.apache.org/jira/browse/SPARK-45398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-45398:
-----------------------------------
Labels: pull-request-available (was: )
> Include `ESCAPE` to `sql()` of `Like`
> -------------------------------------
>
> Key: SPARK-45398
> URL: https://issues.apache.org/jira/browse/SPARK-45398
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Max Gekk
> Assignee: Max Gekk
> Priority: Major
> Labels: pull-request-available
>
> Fix the `sql()` method of the `Like` expression and append the `ESCAPE` closure. That should become consistent to `toString` and fix the issue:
> {code:sql}
> 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.
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org