Uh oh!
There was an error while loading. Please reload this page.
[SPARK-4061][SQL] We cannot use EOL character in the operand of LIKE predicate. - #2908
[SPARK-4061][SQL] We cannot use EOL character in the operand of LIKE predicate.#2908sarutak wants to merge 2 commits into
Conversation
SparkQA
commented
Oct 23, 2014
QA tests have started for PR 2908 at commit
|
SparkQA
commented
Oct 23, 2014
QA tests have finished for PR 2908 at commit
|
There was a problem hiding this comment.
I feel a little complicated about this... This function is not on critical path, so I'd like to refactor it in a more functional and arguably more readable (but less efficient) way, for example:
overridedefescape(v: String) ="(?s)"+ (' '+: v.init).zip(v).flatMap {
case (prefix, '_') =>if (prefix =='\\') "_"else"."case (prefix, '%') =>if (prefix =='\\') "%"else".*"case (_, ch) =>Character.toString(ch)
}.mkStringliancheng
commented
Oct 23, 2014
Good catch! Would you mind to add a unit test for this? |
sarutak
commented
Oct 24, 2014
Thanks @liancheng ! I've refactored and added test cases. |
SparkQA
commented
Oct 24, 2014
Test build #22121 has finished for PR 2908 at commit
|
SparkQA
commented
Oct 24, 2014
Test build #22130 has finished for PR 2908 at commit
|
There was a problem hiding this comment.
Ah, I see, we need to remove leading \\.
liancheng
commented
Oct 24, 2014
LGTM, thanks for fixing this! |
SparkQA
commented
Oct 25, 2014
Test build #22205 has finished for PR 2908 at commit
|
sarutak
commented
Oct 25, 2014
retest this please. |
SparkQA
commented
Oct 25, 2014
Test build #22214 has finished for PR 2908 at commit
|
sarutak
commented
Oct 26, 2014
retest this please. |
SparkQA
commented
Oct 26, 2014
Test build #22243 has finished for PR 2908 at commit
|
SparkQA
commented
Oct 26, 2014
Test build #22245 has finished for PR 2908 at commit
|
JoshRosen
commented
Oct 26, 2014
It looks like the build configuration for the thriftserver tests may be broken, which is why they're failing: |
sarutak
commented
Oct 26, 2014
Thanks, I'll try to create another branch from master and then push. |
6bc3318 to
f99a2f4CompareSparkQA
commented
Oct 26, 2014
Test build #22254 has finished for PR 2908 at commit
|
sarutak
commented
Oct 26, 2014
Ah, I see. It's related to #2950. |
SparkQA
commented
Oct 26, 2014
Test build #453 has finished for PR 2908 at commit
|
SparkQA
commented
Oct 26, 2014
Test build #22260 has finished for PR 2908 at commit
|
SparkQA
commented
Oct 26, 2014
Test build #464 has finished for PR 2908 at commit
|
marmbrus
commented
Oct 26, 2014
Thanks for working on this! Merged to master. |
We cannot use EOL character like \n or \r in the operand of LIKE predicate.
So following condition is never true.