Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-9400][SQL] codeGen stringLocate #7779

Closed
wants to merge 2 commits into from

Conversation

tarekbecker
Copy link
Contributor

@tarekbecker
Copy link
Contributor Author

Jenkins, ok to test.

@SparkQA
Copy link

SparkQA commented Jul 31, 2015

Test build #1251 has finished for PR 7779 at commit b737590.

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

int ${ev.primitive} = 0;
boolean ${ev.isNull} = false;
${startGen.code}
if (!${startGen.isNull}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@tarekauel can we specialize code gen for cases where str / start is foldable?

Once you do that, make sure you update the test cases to use NonFoldableLiteral (just search the code base for how it is used).

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 the special case here, because we can directly call UTF8String.indexOf()

@davies
Copy link
Contributor

davies commented Aug 20, 2015

LGTM, will merge this into master (fixing the confict).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants