Skip to content

Commit

Permalink
Add comment explaining DataType::Null
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Dec 4, 2024
1 parent 3d645e0 commit 4be985a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/expr/src/expr_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ impl ExprSchemable for Expr {
if let Some(dtype) = data_type {
Ok(dtype.clone())
} else {
// If the placeholder's type hasn't been specified, treat it as
// null (unspecified placeholders generate an error during planning)
Ok(DataType::Null)
}
}
Expand Down

0 comments on commit 4be985a

Please sign in to comment.