Skip to content

Commit bd35b70

Browse files
committed
fix: fix ConstColumn(String) cast to StringColumn bug
1 parent 3cf517d commit bd35b70

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/query/datavalues/src/columns/array/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl Column for ArrayColumn {
115115
}
116116

117117
fn as_inner_any(&self) -> Option<&dyn std::any::Any> {
118-
Some(self.values.as_any())
118+
None
119119
}
120120

121121
fn data_type(&self) -> DataTypeImpl {

src/query/datavalues/src/columns/const_/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Column for ConstColumn {
4747
}
4848

4949
fn as_inner_any(&self) -> Option<&dyn std::any::Any> {
50-
Some(self.column.as_any())
50+
Some(self.inner().as_any())
5151
}
5252

5353
fn data_type(&self) -> DataTypeImpl {

src/query/datavalues/src/columns/nullable/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Column for NullableColumn {
9595
}
9696

9797
fn as_inner_any(&self) -> Option<&dyn std::any::Any> {
98-
Some(self.column.as_any())
98+
Some(self.inner().as_any())
9999
}
100100

101101
fn data_type(&self) -> DataTypeImpl {

0 commit comments

Comments
 (0)