Skip to content

Commit 6c9e95b

Browse files
committed
chore
Signed-off-by: discord9 <[email protected]>
1 parent b71d4c5 commit 6c9e95b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/physical-plan/src/util.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ use datafusion_physical_expr::{
2727
};
2828

2929
/// Rewrite column references in a physical expr according to a mapping.
30+
///
31+
/// This rewriter traverses the expression tree and replaces [`Column`] nodes
32+
/// with the corresponding expression found in the `column_map`.
33+
///
34+
/// If a column is found in the map, it is replaced by the mapped expression.
35+
/// If a column is NOT found in the map, it is replaced by an [`UnKnownColumn`].
3036
pub struct PhysicalColumnRewriter {
3137
/// Mapping from original column to new column.
3238
pub column_map: HashMap<Column, Arc<dyn PhysicalExpr>>,

0 commit comments

Comments
 (0)