Skip to content

Apache DataFusion SQL Query Engine

Improve performance sort TPCH q3 with Utf8Vew ( Sort-preserving merging on a single Utf8View ) (#15447)

Qi Zhue2b7919e28c5
diff --git a/datafusion/physical-plan/src/sorts/cursor.rs b/datafusion/physical-plan/src/sorts/cursor.rs
index 3d3bd81948..efb9c0a47b 100644
--- a/datafusion/physical-plan/src/sorts/cursor.rs
+++ b/datafusion/physical-plan/src/sorts/cursor.rs
@@ -284,7 +284,7 @@ impl<T: ByteArrayType> CursorArray for GenericByteArray<T> {
impl CursorArray for StringViewArray {
type Values = StringViewArray;
fn values(&self) -> Self {
- self.clone()
+ self.gc()
}
}