GitHub user sarutak opened a pull request:
https://github.com/apache/spark/pull/2946
[SPARK-4061][SQL] We cannot use EOL character in the operand of LIKE
predicate.
We cannot use EOL character like \n or \r in the operand of LIKE predicate.
So following condition is never true.
-- someStr is 'hoge\nfuga'
where someStr LIKE 'hoge_fuga'
closes #2908
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sarutak/spark like-predicate-modification
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2946.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2946
----
commit 75bf95b7ac90a17589ce1513183a61356996b42f
Author: Kousuke Saruta <[email protected]>
Date: 2014-10-26T19:19:31Z
Fixed LIKE predicate so that we can use EOL character as in a operand
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]