Skip to content

Commit

Permalink
one more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Aug 12, 2024
1 parent 81d7017 commit 49ada2a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ impl StructureTable {
};

let encoded_fill_value = self.batch.column_by_name("fill_value")?
.as_any()
.downcast_ref::<BinaryArray>()
.as_binary_opt::<i32>()
.map(|x| x.value(idx))
;
let fill_value = encoded_fill_value
Expand Down Expand Up @@ -567,11 +566,7 @@ pub fn mk_structure_table<T: IntoIterator<Item = NodeStructure>>(
true,
),
Field::new("chunk_key_encoding", arrow::datatypes::DataType::UInt8, true),
Field::new(
"fill_value",
arrow::datatypes::DataType::Binary,
true,
),
Field::new("fill_value", arrow::datatypes::DataType::Binary, true),
Field::new("codecs", arrow::datatypes::DataType::Utf8, true),
Field::new("storage_transformers", arrow::datatypes::DataType::Utf8, true),
Field::new_list(
Expand Down

0 comments on commit 49ada2a

Please sign in to comment.