Skip to content

Commit

Permalink
[SPARK-21426][2.0][SQL][TEST] Fix test failure due to missing literal…
Browse files Browse the repository at this point in the history
… representation

## What changes were proposed in this pull request?
SPARK 2.0 does not support hex literal. Thus, the test case failed after backporting #18571

## How was this patch tested?
N/A

Author: gatorsmile <gatorsmile@gmail.com>

Closes #18643 from gatorsmile/fixTestFailure2.0.
  • Loading branch information
gatorsmile committed Jul 16, 2017
1 parent 1afded0 commit e4f57f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sql/core/src/test/resources/sql-tests/inputs/comparator.sql
Original file line number Diff line number Diff line change
@@ -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');
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e4f57f2

Please sign in to comment.