You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by li...@apache.org on 2017/07/16 16:50:42 UTC

spark git commit: [SPARK-21426][2.0][SQL][TEST] Fix test failure due to missing literal representation

Repository: spark
Updated Branches:
  refs/heads/branch-2.0 1afded07e -> e4f57f2b3


[SPARK-21426][2.0][SQL][TEST] Fix test failure due to missing literal representation

## What changes were proposed in this pull request?
SPARK 2.0 does not support hex literal. Thus, the test case failed after backporting https://github.com/apache/spark/pull/18571

## How was this patch tested?
N/A

Author: gatorsmile <ga...@gmail.com>

Closes #18643 from gatorsmile/fixTestFailure2.0.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e4f57f2b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e4f57f2b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e4f57f2b

Branch: refs/heads/branch-2.0
Commit: e4f57f2b3ed9f1d6f15669fd2def9d7138b42b80
Parents: 1afded0
Author: gatorsmile <ga...@gmail.com>
Authored: Sun Jul 16 09:50:36 2017 -0700
Committer: gatorsmile <ga...@gmail.com>
Committed: Sun Jul 16 09:50:36 2017 -0700

----------------------------------------------------------------------
 sql/core/src/test/resources/sql-tests/inputs/comparator.sql  | 4 ++--
 .../src/test/resources/sql-tests/results/comparator.sql.out  | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e4f57f2b/sql/core/src/test/resources/sql-tests/inputs/comparator.sql
----------------------------------------------------------------------
diff --git a/sql/core/src/test/resources/sql-tests/inputs/comparator.sql b/sql/core/src/test/resources/sql-tests/inputs/comparator.sql
index 3e24477..f6e6ded 100644
--- a/sql/core/src/test/resources/sql-tests/inputs/comparator.sql
+++ b/sql/core/src/test/resources/sql-tests/inputs/comparator.sql
@@ -1,3 +1,3 @@
 -- binary type
-select x'00' < x'0f';
-select x'00' < x'ff';
+select hex('00') < hex('0f');
+select hex('00') < hex('ff');

http://git-wip-us.apache.org/repos/asf/spark/blob/e4f57f2b/sql/core/src/test/resources/sql-tests/results/comparator.sql.out
----------------------------------------------------------------------
diff --git a/sql/core/src/test/resources/sql-tests/results/comparator.sql.out b/sql/core/src/test/resources/sql-tests/results/comparator.sql.out
index afc7b54..1fe5542 100644
--- a/sql/core/src/test/resources/sql-tests/results/comparator.sql.out
+++ b/sql/core/src/test/resources/sql-tests/results/comparator.sql.out
@@ -3,16 +3,16 @@
 
 
 -- !query 0
-select x'00' < x'0f'
+select hex('00') < hex('0f')
 -- !query 0 schema
-struct<(X'00' < X'0F'):boolean>
+struct<(hex(00) < hex(0f)):boolean>
 -- !query 0 output
 true
 
 
 -- !query 1
-select x'00' < x'ff'
+select hex('00') < hex('ff')
 -- !query 1 schema
-struct<(X'00' < X'FF'):boolean>
+struct<(hex(00) < hex(ff)):boolean>
 -- !query 1 output
 true


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org