liukun4515 opened a new issue, #2759: URL: https://github.com/apache/arrow-datafusion/issues/2759
**Describe the bug** In current inList implemention, we don't consider the data type of the list value. For example: I create a table ``` ❯ \d food +---------------+--------------+------------+-------------+-----------------+-------------+ | table_catalog | table_schema | table_name | column_name | data_type | is_nullable | +---------------+--------------+------------+-------------+-----------------+-------------+ | datafusion | public | food | a | Decimal(10, 5) | NO | | datafusion | public | food | b | Decimal(20, 15) | NO | | datafusion | public | food | c | Boolean | NO | +---------------+--------------+------------+-------------+-----------------+-------------+ ``` with data ``` ❯ select * from food; +---------+-------------------+-------+ | a | b | c | +---------+-------------------+-------+ | 0.00001 | 0.000000000001000 | true | | 0.00002 | 0.000000000002000 | false | | 0.00002 | 0.000000000002000 | false | | 0.00003 | 0.000000000003000 | true | | 0.00003 | 0.000000000003000 | true | | 0.00003 | 0.000000000003000 | true | | 0.00004 | 0.000000000004000 | false | | 0.00004 | 0.000000000004000 | false | | 0.00004 | 0.000000000004000 | false | | 0.00004 | 0.000000000004000 | false | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | +---------+-------------------+-------+ ``` using the in filter to select data ``` ❯ select * from food where c in (true,123); +---------+-------------------+------+ | a | b | c | +---------+-------------------+------+ | 0.00001 | 0.000000000001000 | true | | 0.00003 | 0.000000000003000 | true | | 0.00003 | 0.000000000003000 | true | | 0.00003 | 0.000000000003000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | | 0.00005 | 0.000000000005000 | true | +---------+-------------------+------+ ``` The column of c is `bool` data type, we can apply the compare operations to diff data type. **To Reproduce** Steps to reproduce the behavior: **Expected behavior** A clear and concise description of what you expected to happen. **Additional context** Add any other context about the problem here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
