Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrislain committed Dec 2, 2023
1 parent 826697f commit cf16b15
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.5.3] - 2023-12-02
## Changed
- some cleaning in the translation of Expr -> ast::Expr [#204](https://github.com/Qrlew/qrlew/issues/204)
## Added
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Nicolas Grislain <ng@sarus.tech>"]
name = "qrlew"
version = "0.5.2"
version = "0.5.3"
edition = "2021"
description = "Sarus Qrlew Engine"
documentation = "https://docs.rs/qrlew"
Expand All @@ -24,7 +24,7 @@ paste = "1.0.7"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
chrono = { version = "0.4", features = ["serde"] }
sqlparser = "0.39.0"
sqlparser = "0.40.0"
dot = "0.1"
base64 = "0.21"
rusqlite = { version = "0.30", features = ["chrono"], optional = true }
Expand Down
1 change: 1 addition & 0 deletions examples/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ fn build_ast() -> Result<(), &'static str> {
fetch: None,
locks: vec![],
limit_by: vec![],
for_clause: None,
};
println!("{}\n", query);
// A CTE
Expand Down
8 changes: 6 additions & 2 deletions src/relation/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ fn query(
fetch: None,
locks: vec![],
limit_by: vec![],
for_clause: None,
}
}

Expand All @@ -147,6 +148,7 @@ fn values_query(rows: Vec<Vec<ast::Expr>>) -> ast::Query {
fetch: None,
locks: vec![],
limit_by: vec![],
for_clause: None,
}
}

Expand Down Expand Up @@ -229,6 +231,7 @@ fn set_operation(
fetch: None,
locks: vec![],
limit_by: vec![],
for_clause: None,
}
}

Expand Down Expand Up @@ -549,7 +552,7 @@ impl Table {
table_name: self.path().clone().into(),
columns: self.schema().iter().map(|f| f.name().into()).collect(),
overwrite: false,
source: Box::new(ast::Query {
source: Some(Box::new(ast::Query {
with: None,
body: Box::new(ast::SetExpr::Values(ast::Values {
explicit_row: false,
Expand All @@ -563,7 +566,8 @@ impl Table {
fetch: None,
locks: vec![],
limit_by: vec![],
}),
for_clause: None,
})),
partitioned: None,
after_columns: vec![],
table: false,
Expand Down
2 changes: 2 additions & 0 deletions src/sql/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ impl<'a> Acceptor<'a> for ast::Expr {
} => todo!(),
ast::Expr::Struct { values, fields } => todo!(),
ast::Expr::Named { expr, name } => todo!(),
ast::Expr::Convert { expr, data_type, charset, target_before_value } => todo!(),
}
}
}
Expand Down Expand Up @@ -583,6 +584,7 @@ impl<'a, T: Clone, V: Visitor<'a, T>> visitor::Visitor<'a, ast::Expr, T> for V {
} => todo!(),
ast::Expr::Struct { values, fields } => todo!(),
ast::Expr::Named { expr, name } => todo!(),
ast::Expr::Convert { expr, data_type, charset, target_before_value } => todo!(),
}
}
}
Expand Down

0 comments on commit cf16b15

Please sign in to comment.