Skip to content

Commit

Permalink
Update crates/planner/src/logical/ty.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mario Montoya <mamcx@elmalabarista.com>
Signed-off-by: joshua-spacetime <josh@clockworklabs.io>
  • Loading branch information
joshua-spacetime and mamcx authored Sep 20, 2024
1 parent 237bd72 commit 3fd6405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/planner/src/logical/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Type {
(BinOp::And | BinOp::Or, Type::Alg(AlgebraicType::Bool)) => true,
// Comparison operators take integers or floats
(BinOp::Lt | BinOp::Gt | BinOp::Lte | BinOp::Gte, Type::Alg(t)) => t.is_integer() || t.is_float(),
// Equality supports numerics, strings, and bytes
// Equality supports booleans, numerics, strings, and bytes
(BinOp::Eq | BinOp::Ne, Type::Alg(t)) => {
t.is_bool()
|| t.is_integer()
Expand Down

0 comments on commit 3fd6405

Please sign in to comment.