Skip to content

Commit 0c487b4

Browse files
authored
optimizer: Fix error condition in normalize_lets (#35391)
Introduced in #30429 `!a == b` is `(!a) == b`, which doesn't make sense to me, and doesn't fit the comment above.
1 parent cdf413a commit 0c487b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/transform/src/normalize_lets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ mod support {
304304
{
305305
if let Some(new_type) = types.get(i) {
306306
// Assert that the column length has not changed.
307-
if !new_type.column_types.len() == typ.column_types.len() {
307+
if new_type.column_types.len() != typ.column_types.len() {
308308
Err(crate::TransformError::Internal(format!(
309309
"column lengths do not match: {:?} v {:?}",
310310
new_type.column_types, typ.column_types

0 commit comments

Comments
 (0)