Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
2.3.0
-
None
Description
The IN statement can have a different behavior according to whether there is a list of literals or a subquery, because the type coercion works differently in the two cases.
This means, that these two equivalent queries return different results:
select 1 from (select 1) a where 1 in ('01'); // this returns an empty dataset select 1 from (select 1) a where 1 in (select '01' from (select 1)); // returns 1 row
Attachments
Issue Links
- is duplicated by
-
SPARK-22398 Partition directories with leading 0s cause wrong results
- Resolved
-
SPARK-24916 Fix type coercion for IN expression with subquery
- Resolved
- relates to
-
SPARK-22398 Partition directories with leading 0s cause wrong results
- Resolved
- links to