Skip to content

Commit

Permalink
Merge 19e16f5 into 929eb6d
Browse files Browse the repository at this point in the history
  • Loading branch information
kmitchener authored Aug 19, 2022
2 parents 929eb6d + 19e16f5 commit 928c10b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions datafusion/core/tests/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,21 +887,6 @@ fn col_str(column: &ArrayRef, row_index: usize) -> String {
return "NULL".to_string();
}

// Special case ListArray as there is no pretty print support for it yet
if let DataType::FixedSizeList(_, n) = column.data_type() {
let array = column
.as_any()
.downcast_ref::<FixedSizeListArray>()
.unwrap()
.value(row_index);

let mut r = Vec::with_capacity(*n as usize);
for i in 0..*n {
r.push(col_str(&array, i as usize));
}
return format!("[{}]", r.join(","));
}

array_value_to_string(column, row_index)
.ok()
.unwrap_or_else(|| "???".to_string())
Expand Down

0 comments on commit 928c10b

Please sign in to comment.