[
https://issues.apache.org/jira/browse/SPARK-45398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk resolved SPARK-45398.
------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 43196
[https://github.com/apache/spark/pull/43196]
> 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 For: 4.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]