Skip to content

Conversation

@yjshen
Copy link
Member

@yjshen yjshen commented Aug 18, 2015

This PR implements the codegen for StringLocate and specialise the case when str/start is foldable.

JIRA: https://issues.apache.org/jira/browse/SPARK-9400

cc @rxin

@SparkQA
Copy link

SparkQA commented Aug 18, 2015

Test build #41124 has finished for PR 8274 at commit dc280a4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we do not need these special cases for StringLocate, because you do not need any prepare to call UTF8String.indexOf(substr, start)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following #7779 (comment), if it's not required, I think 7779 is fine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I can merge that one (fix the confict while merging).

@yjshen yjshen closed this Aug 20, 2015
asfgit pushed a commit that referenced this pull request Aug 20, 2015
This is based on #7779 , thanks to tarekauel . Fix the conflict and nullability.

Closes #7779 and #8274 .

Author: Tarek Auel <[email protected]>
Author: Davies Liu <[email protected]>

Closes #8330 from davies/stringLocate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants