fix select where null
@@ -293,7 +293,9 @@ macro_rules! impl_dyn_array {
}
fn bool(&self) -> Result<&DFBooleanArray> {
- if matches!(self.0.data_type(), DataType::Boolean) {
+ if matches!(self.0.data_type(), DataType::Boolean)
+ || matches!(self.0.data_type(), DataType::Null)
+ {
unsafe { Ok(&*(self as *const dyn SeriesTrait as *const DFBooleanArray)) }
} else {
Err(ErrorCode::IllegalDataType(format!(
