Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fix
  • Loading branch information
wangyum committed Dec 16, 2017
commit 9f48bf782f7d14a9611a7e8a7a94fb66e021099d
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ SELECT cast(1 as string) in (cast(1 as string), cast(1 as double)) FROM t;
SELECT cast(1 as string) in (cast(1 as string), cast(1 as decimal(10, 0))) FROM t;
SELECT cast(1 as string) in (cast(1 as string), cast(1 as string)) FROM t;

-- tinyint, smallint, int, bigint, float, double, decimal(10, 0), string, binary, boolean, timestamp, date
SELECT cast('1' as binary) in (cast('1' as binary), cast('1' as binary)) FROM t;
-- Hive and Spark SQL doesn't support below operations:
-- SELECT cast('1' as binary) in (cast('1' as binary), cast(1 as tinyint)) FROM t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ SELECT pmod(cast(1 as float) , '1') FROM t;
SELECT pmod(cast(1 as double) , '1') FROM t;
SELECT pmod(cast(1 as decimal(10, 0)), '1') FROM t;


-- Equality
SELECT '1' = cast(1 as tinyint) FROM t;
SELECT '1' = cast(1 as smallint) FROM t;
Expand Down