alexschroth commented on issue #23352:
URL: https://github.com/apache/datafusion/issues/23352#issuecomment-4908992714

   Thanks a lot for taking a look @kumarUjjawal; great to hear this may already 
be fixed!
   
   In the meantime I found a minimal reproducer for the `NaN` variant, adding 
it here in case it's useful as an extra test case. The trigger is a second 
full-range column that the filter does not reference:
   
   ```rust
   let schema = Arc::new(Schema::new(vec![
       Field::new("ts", DataType::Timestamp(TimeUnit::Nanosecond, None), false),
       // full-range column NOT referenced by the filter
       Field::new("x", DataType::Int64, false),
   ]));
   let batch = RecordBatch::try_new(
       schema.clone(),
       vec![
           Arc::new(TimestampNanosecondArray::from(vec![i64::MIN, i64::MAX])),
           Arc::new(Int64Array::from(vec![i64::MIN, i64::MAX])),
       ],
   )?;
   ```
   
   Everything else is identical to the repro in the issue description. With 
this, `cargo run --release` gives:
   
   ```
   Error: Internal("Assertion failed: (0.0..=1.0).contains(&selectivity): 
Selectivity is out of limit: NaN")
   ```


-- 
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]

Reply via email to