-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[HOTFIX][SPARK-14402] Fix ExpressionDescription annotation #12192
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
Conversation
…lowercasing rest of string
## What changes were proposed in this pull request?
Current, SparkSQL `initCap` is using `toTitleCase` function. However, `UTF8String.toTitleCase` implementation changes only the first letter and just copy the other letters: e.g. sParK --> SParK. This is the correct implementation `toTitleCase`.
```
hive> select initcap('sParK');
Spark
```
```
scala> sql("select initcap('sParK')").head
res0: org.apache.spark.sql.Row = [SParK]
```
This PR updates the implementation of `initcap` using `toLowerCase` and `toTitleCase`.
## How was this patch tested?
Pass the Jenkins tests (including new testcase).
Author: Dongjoon Hyun <[email protected]>
Closes #12175 from dongjoon-hyun/SPARK-14402.
|
ok to test |
|
Test build #55069 has finished for PR 12192 at commit
|
|
Is this really the patch to cause the issue or is this more an interim hiccup? |
|
@tdas another streaming failure |
|
Hi, @jaceklaskowski and @marmbrus . |
|
Jenkins retest this please |
|
Test build #55207 has finished for PR 12192 at commit
|
|
Hi, All. I think Jenkins build does not show additional information for this PR since our Jenkins build on master branches works fine.
And, we know the JDK7 does not have this issue according to the Spark mailing list. So, I ran the following command and found the current master branch compiles without problem. This seems not a Scala compilation problem. After that, just The real root cause of this error occurs during Scala doc generation by doc-jar plugin. Is it possible to solve the real root cause by changing |
|
Just for a record, here is the current error message from doc-jar. (The version of doc-jar is the latest.) |
|
I agree it's a bit of a strange problem. @dongjoon-hyun do you agree that this change is worth merging? it seems like it fixes the immediate symptom of a problem, even if we're not sure why the problem exists in the first place. It's not hacky so seems worth merging. |
|
Sure. I agree for merging. |
|
Please please merge it as soon as possible as I'm suffering from not having it in master every time I do the build :( |
|
Merged to master |
What changes were proposed in this pull request?
Fix for the error introduced in c59abad:
How was this patch tested?
Local build