Skip to content

Commit ccfcf89

Browse files
Альберт Скальтaskalt
authored andcommitted
expressions: make unknown column distinguishable
This patch makes "UnKnownColumn" expression distinguishable from actual "Column" expression to have an ability to compare them in planning tests. For now "UnKnownColumn" string representation is started from `?` symbol, for example, `partitioning=Hash([`?a@0`], 1)`.
1 parent d3f2c1a commit ccfcf89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/physical-expr/src/expressions/unknown_column.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl UnKnownColumn {
5151

5252
impl std::fmt::Display for UnKnownColumn {
5353
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
54-
write!(f, "{}", self.name)
54+
write!(f, "?{}", self.name)
5555
}
5656
}
5757

0 commit comments

Comments
 (0)