Skip to content

Commit 4978243

Browse files
authored
Fix out-of-bounds access in SLT runner (#18562)
## Which issue does this PR close? ## Rationale for this change A small fix for a rare case in SLT runner when it panics instead of printing result. ## What changes are included in this PR? Code change in sqllogictest ## Are these changes tested? Manual test ## Are there any user-facing changes? No
1 parent 6ab4d21 commit 4978243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/sqllogictest/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn df_value_validator(
9595
warn!("[{i}] {}<eol>", normalized_actual[i]);
9696
warn!(
9797
"[{i}] {}<eol>",
98-
if normalized_expected.len() >= i {
98+
if normalized_expected.len() > i {
9999
&normalized_expected[i]
100100
} else {
101101
"No more results"

0 commit comments

Comments
 (0)