Skip to content

Commit b08d9b1

Browse files
committed
Undo display changes for other operators
1 parent caacef8 commit b08d9b1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/ast/query.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl fmt::Display for Query {
104104
format.fmt(f)?;
105105
}
106106
for pipe_operator in &self.pipe_operators {
107-
f.write_str(" |>")?;
107+
f.write_str(" |> ")?;
108108
pipe_operator.fmt(f)?;
109109
}
110110
Ok(())
@@ -2690,50 +2690,50 @@ impl fmt::Display for PipeOperator {
26902690
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
26912691
match self {
26922692
PipeOperator::Select { exprs } => {
2693-
write!(f, " SELECT {}", display_comma_separated(exprs.as_slice()))
2693+
write!(f, "SELECT {}", display_comma_separated(exprs.as_slice()))
26942694
}
26952695
PipeOperator::Extend { exprs } => {
2696-
write!(f, " EXTEND {}", display_comma_separated(exprs.as_slice()))
2696+
write!(f, "EXTEND {}", display_comma_separated(exprs.as_slice()))
26972697
}
26982698
PipeOperator::Set { assignments } => {
2699-
write!(f, " SET {}", display_comma_separated(assignments.as_slice()))
2699+
write!(f, "SET {}", display_comma_separated(assignments.as_slice()))
27002700
}
27012701
PipeOperator::Drop { columns } => {
2702-
write!(f, " DROP {}", display_comma_separated(columns.as_slice()))
2702+
write!(f, "DROP {}", display_comma_separated(columns.as_slice()))
27032703
}
27042704
PipeOperator::As { alias } => {
2705-
write!(f, " AS {}", alias)
2705+
write!(f, "AS {}", alias)
27062706
}
27072707
PipeOperator::Limit { expr, offset } => {
2708-
write!(f, " LIMIT {}", expr)?;
2708+
write!(f, "LIMIT {}", expr)?;
27092709
if let Some(offset) = offset {
2710-
write!(f, " OFFSET {}", offset)?;
2710+
write!(f, "OFFSET {}", offset)?;
27112711
}
27122712
Ok(())
27132713
}
27142714
PipeOperator::Aggregate {
27152715
full_table_exprs,
27162716
group_by_expr,
27172717
} => {
2718-
write!(f, " AGGREGATE")?;
2718+
write!(f, "AGGREGATE")?;
27192719
if !full_table_exprs.is_empty() {
27202720
write!(
27212721
f,
2722-
" {}",
2722+
"{}",
27232723
display_comma_separated(full_table_exprs.as_slice())
27242724
)?;
27252725
}
27262726
if !group_by_expr.is_empty() {
2727-
write!(f, " GROUP BY {}", display_comma_separated(group_by_expr))?;
2727+
write!(f, "GROUP BY {}", display_comma_separated(group_by_expr))?;
27282728
}
27292729
Ok(())
27302730
}
27312731

27322732
PipeOperator::Where { expr } => {
2733-
write!(f, " WHERE {}", expr)
2733+
write!(f, "WHERE {}", expr)
27342734
}
27352735
PipeOperator::OrderBy { exprs } => {
2736-
write!(f, " ORDER BY {}", display_comma_separated(exprs.as_slice()))
2736+
write!(f, "ORDER BY {}", display_comma_separated(exprs.as_slice()))
27372737
}
27382738

27392739
PipeOperator::TableSample { sample } => {

0 commit comments

Comments
 (0)