Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Jan 31, 2025
1 parent 2cae61d commit af6e972
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions datafusion/expr/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,10 @@ pub fn exprlist_to_fields<'a>(
.collect::<Result<Vec<_>>>()?
.into_iter()
.flatten()
.collect::<Vec<_>>();

// After a projection any system columns that are included in the result cease to be system columns
let result = result
.into_iter()
// After a projection any system columns that are included in the result cease to be system columns
.map(|(q, f)| (q, f.to_non_system_column()))
.collect();
.collect::<Vec<_>>();

Ok(result)
}

Expand Down

0 comments on commit af6e972

Please sign in to comment.