gatesn commented on issue #15812:
URL: https://github.com/apache/datafusion/issues/15812#issuecomment-7418983756
I also ran into this, figured I'd post this repro as it's quite concise:
```sql
CREATE TABLE mem_t AS
SELECT * FROM (VALUES
(1, 0.0::DOUBLE),
(2, 1.0::DOUBLE),
(3, 2.0::DOUBLE),
(4, 10.0::DOUBLE),
(5, 'NaN'::DOUBLE),
(6, '-NaN'::DOUBLE)
) t(id, f);
COPY mem_t TO '/tmp/nan_repro.parquet' OPTIONS (max_row_group_size 3);
SELECT 'f < 5.0' AS pred, (SELECT count(*) FROM mem_t WHERE f < 5.0) AS
mem_rows, (SELECT count(*) FROM '/tmp/nan_repro.parquet' WHERE f < 5.0) AS
parquet_rows
UNION ALL
SELECT 'f > 15.0' AS pred, (SELECT count(*) FROM mem_t WHERE f > 15.0) AS
mem_rows, (SELECT count(*) FROM '/tmp/nan_repro.parquet' WHERE f > 15.0) AS
parquet_rows
UNION ALL
SELECT 'f != 10.0' AS pred, (SELECT count(*) FROM mem_t WHERE f != 10.0) AS
mem_rows, (SELECT count(*) FROM '/tmp/nan_repro.parquet' WHERE f != 10.0) AS
parquet_rows;
```
```
+-----------+----------+--------------+
| pred | mem_rows | parquet_rows |
+-----------+----------+--------------+
| f < 5.0 | 4 | 3 |
| f > 15.0 | 1 | 0 |
| f != 10.0 | 5 | 3 |
+-----------+----------+--------------+
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]