diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-08 15:00:26 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-08 15:00:26 -0800 |
commit | 076009b94985b586ffa78078cc03abb85e308f06 (patch) | |
tree | f81680be06ffca7e879b940a4f29d98e19b0c37a /sql/catalyst | |
parent | d57daf1f7732a7ac54a91fe112deeda0a254f9ef (diff) | |
download | spark-076009b94985b586ffa78078cc03abb85e308f06.tar.gz spark-076009b94985b586ffa78078cc03abb85e308f06.tar.bz2 spark-076009b94985b586ffa78078cc03abb85e308f06.zip |
[SPARK-13400] Stop using deprecated Octal escape literals
## 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 #11584 from dongjoon-hyun/SPARK-13400.
Diffstat (limited to 'sql/catalyst')
-rw-r--r-- | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala index 7b85286c4d..124172bd66 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala @@ -96,7 +96,7 @@ class LiteralExpressionSuite extends SparkFunSuite with ExpressionEvalHelper { test("string literals") { checkEvaluation(Literal(""), "") checkEvaluation(Literal("test"), "test") - checkEvaluation(Literal("\0"), "\0") + checkEvaluation(Literal("\u0000"), "\u0000") } test("sum two literals") { |