Skip to content

Commit b58d6d2

Browse files
committed
Add an assert
1 parent 16c261e commit b58d6d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expr/src/scalar/func.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use mz_ore::fmt::FormatBuffer;
3333
use mz_ore::lex::LexBuf;
3434
use mz_ore::option::OptionExt;
3535
use mz_ore::result::ResultExt;
36-
use mz_ore::soft_assert_eq_or_log;
36+
use mz_ore::{soft_assert_eq_or_log, soft_assert_or_log};
3737
use mz_ore::str::StrExt;
3838
use mz_pgrepr::Type;
3939
use mz_pgtz::timezone::{Timezone, TimezoneSpec};
@@ -8033,7 +8033,7 @@ impl VariadicFunc {
80338033
}
80348034
.nullable(true),
80358035
ArrayCreate { elem_type } => {
8036-
debug_assert!(
8036+
soft_assert_or_log!(
80378037
input_types.iter().all(|t| t.scalar_type.base_eq(elem_type)),
80388038
"Args to ArrayCreate should have types that are compatible with the elem_type"
80398039
);

0 commit comments

Comments
 (0)