Skip to content

Commit 67cf1d6

Browse files
authored
Minor: update sqllogictest to treat Utf8View as text (#12033)
* Minor: update sqllogictest to treat Utf8View as text * fmt
1 parent c2cbba2 commit 67cf1d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

datafusion/sqllogictest/src/engines/datafusion_engine/normalize.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ pub(crate) fn convert_schema_to_types(columns: &Fields) -> Vec<DFColumnType> {
267267
| DataType::Float64
268268
| DataType::Decimal128(_, _)
269269
| DataType::Decimal256(_, _) => DFColumnType::Float,
270-
DataType::Utf8 | DataType::LargeUtf8 => DFColumnType::Text,
270+
DataType::Utf8 | DataType::LargeUtf8 | DataType::Utf8View => {
271+
DFColumnType::Text
272+
}
271273
DataType::Date32
272274
| DataType::Date64
273275
| DataType::Time32(_)

datafusion/sqllogictest/test_files/arrow_typeof.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ select arrow_cast([1, 2, 3], 'FixedSizeList(3, Int64)');
422422
[1, 2, 3]
423423

424424
# Tests for Utf8View
425-
query ?T
425+
query TT
426426
select arrow_cast('MyAwesomeString', 'Utf8View'), arrow_typeof(arrow_cast('MyAwesomeString', 'Utf8View'))
427427
----
428428
MyAwesomeString Utf8View

0 commit comments

Comments
 (0)