From 0084b12c079daa577e923e7117082ffb0c29fdbd Mon Sep 17 00:00:00 2001 From: James Edwards Date: Mon, 1 Apr 2024 17:06:29 -0400 Subject: [PATCH] Removed extraneous error check --- crates/polars-ops/src/chunked_array/array/get.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/polars-ops/src/chunked_array/array/get.rs b/crates/polars-ops/src/chunked_array/array/get.rs index 28cb4d57cde4..754962b081ab 100644 --- a/crates/polars-ops/src/chunked_array/array/get.rs +++ b/crates/polars-ops/src/chunked_array/array/get.rs @@ -7,13 +7,6 @@ use polars_core::utils::align_chunks_binary; use super::*; fn array_get_literal(ca: &ArrayChunked, idx: i64, null_on_oob: bool) -> PolarsResult { - if !null_on_oob - && idx - .negative_to_usize(ca.downcast_iter().next().unwrap().len()) - .is_none() - { - polars_bail!(ComputeError: "get index is out of bounds"); - } let chunks = ca .downcast_iter() .map(|arr| sub_fixed_size_list_get_literal(arr, idx, null_on_oob))