Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0
-
None
Description
Comparing bigints and varchars or chars may result to wrong result, for example:
CREATE TABLE test_a (appid1 varchar(256), appid2 char(20));
INSERT INTO test_a VALUES ('2882303761517473127', '2882303761517473127'), ('2882303761517473276','2882303761517473276');
SET hive.strict.checks.type.safety=false;
SELECT appid1 FROM test_a WHERE appid1 = 2882303761517473127;
SELECT appid2 FROM test_a WHERE appid2 = 2882303761517473127;
Both queries will output the row: ('2882303761517473276','2882303761517473276')
Attachments
Attachments
Issue Links
- links to