Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Apr 9, 2024
1 parent d8af196 commit 03fb418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,8 +1236,8 @@ impl fmt::Display for Expr {
Expr::OuterJoin(expr) => {
write!(f, "{expr} (+)")
}
Expr::ParameterizedViewArg { columns, data_type } => {
write!(f, "{{{}:{}}}", columns, data_type)
Expr::ParameterizedViewArg { column, data_type } => {
write!(f, "{{{}:{}}}", column, data_type)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ impl<'a> Parser<'a> {
let data_type = self.parse_data_type()?;
self.expect_token(&Token::RBrace)?;
Ok(Expr::ParameterizedViewArg {
columns: (name),
column: (name),
data_type: (data_type),
})
}
Expand Down Expand Up @@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> {
} else if Token::Colon == tok {
if dialect_of!(self is ClickHouseDialect) && self.index() > 0 {
return Ok(Expr::ParameterizedViewArg {
columns: Ident::new(expr.to_string()),
column: Ident::new(expr.to_string()),
data_type: self.parse_data_type()?,
});
}
Expand Down

0 comments on commit 03fb418

Please sign in to comment.