Skip to content

Commit

Permalink
fix infer statistics for BinaryView types (#12575)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao authored Sep 22, 2024
1 parent 7dc0151 commit 64a3896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datafusion/core/src/datasource/file_format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ pub(crate) fn coerce_file_schema_to_view_type(
.iter()
.map(|f| {
let dt = f.data_type();
if dt.equals_datatype(&DataType::Utf8View) {
if dt.equals_datatype(&DataType::Utf8View)
|| dt.equals_datatype(&DataType::BinaryView)
{
transform = true;
}
(f.name(), dt)
Expand Down

0 comments on commit 64a3896

Please sign in to comment.