-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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-13400] Stop using deprecated Octal escape literals #11584
Conversation
@@ -71,7 +71,7 @@ class HiveQlSuite extends SparkFunSuite with BeforeAndAfterAll { | |||
CatalogColumn("dt", "string", comment = Some("date type")) :: | |||
CatalogColumn("hour", "string", comment = Some("hour of the day")) :: Nil) | |||
assert(desc.storage.serdeProperties == | |||
Map((serdeConstants.SERIALIZATION_FORMAT, "\054"), (serdeConstants.FIELD_DELIM, "\054"))) | |||
Map((serdeConstants.SERIALIZATION_FORMAT, "\u002C"), (serdeConstants.FIELD_DELIM, "\u002C"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe i'm not understanding this correctly, but isn't 2C = 44?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So "\u002C" == "\054" returns true, and 054 is in octal which is 44 in decimal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok - thanks.
LGTM pending tests. |
LGTM pending tests, we should of course do a quick search in the resulting build log and make sure no octal warnings show up but these are the two I had seen when building locally. |
Looking at the build logs no Octal deprecation warnings - (still waiting on the tests to finish but build part finished) :) |
Thank you for confirming that, @holdenk ! :) |
Test build #52685 has finished for PR 11584 at commit
|
At last, it passed and there is no |
Thanks - merging in master. |
## What changes were proposed in this pull request? This removes the remaining deprecated Octal escape literals. The followings are the warnings on those two lines. ``` LiteralExpressionSuite.scala:99: Octal escape literals are deprecated, use \u0000 instead. HiveQlSuite.scala:74: Octal escape literals are deprecated, use \u002c instead. ``` ## How was this patch tested? Manual. During building, there should be no warning on `Octal escape literals`. ``` mvn -DskipTests clean install ``` Author: Dongjoon Hyun <dongjoon@apache.org> Closes apache#11584 from dongjoon-hyun/SPARK-13400.
What changes were proposed in this pull request?
This removes the remaining deprecated Octal escape literals. The followings are the warnings on those two lines.
How was this patch tested?
Manual.
During building, there should be no warning on
Octal escape literals
.