-
Notifications
You must be signed in to change notification settings - Fork 220
[AURON #1724] Support binary input for Spark substring function
#2262
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
base: master
Are you sure you want to change the base?
Changes from 4 commits
61a7dec
9ac77f9
df3a980
e7e5f8c
586df68
4b1bcbd
21c727b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1025,10 +1025,10 @@ object NativeConverters extends Logging { | |
| if pos.asInstanceOf[Int] > 0 && len.asInstanceOf[Int] >= 0 => | ||
| val longPos = pos.asInstanceOf[Int].toLong | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The guard
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! That makes sense to me. I’ve relaxed the guard so these cases can go through the native path. |
||
| val longLen = len.asInstanceOf[Int].toLong | ||
| buildScalarFunction( | ||
| pb.ScalarFunction.Substr, | ||
| buildExtScalarFunction( | ||
| "Spark_Substring", | ||
| str :: Literal(longPos) :: Literal(longLen) :: Nil, | ||
| StringType) | ||
| str.dataType) | ||
|
ShreyeshArangath marked this conversation as resolved.
|
||
|
|
||
| case StringSpace(n) => | ||
| buildExtScalarFunction("Spark_StringSpace", n :: Nil, StringType) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.