Skip to content

Commit

Permalink
Fields clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Jun 12, 2024
1 parent e53d004 commit f924e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vortex-expr/src/datafusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ struct FieldPathWrapper(FieldPath);
impl From<FieldPathWrapper> for Expr {
fn from(value: FieldPathWrapper) -> Self {
let mut field = String::new();
for part in value.0.parts() {
for part in value.0.path() {
match part {
// TODO(ngates): escape quotes?
Field::Name(identifier) => field.push_str(&format!("\"{}\"", identifier)),
Field::Name(name) => field.push_str(&format!("\"{}\"", name)),
Field::Index(idx) => field.push_str(&format!("[{}]", idx)),
}
}
Expand Down

0 comments on commit f924e84

Please sign in to comment.