Max Gekk created SPARK-45398:
--------------------------------
Summary: 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
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]