Skip to content

Commit

Permalink
feat: support retry (#239)
Browse files Browse the repository at this point in the history
* feat: support retry

Signed-off-by: Eric Fu <fuyufjh@gmail.com>

* bump version to 0.25 and update changelog

Signed-off-by: Eric Fu <fuyufjh@gmail.com>

---------

Signed-off-by: Eric Fu <fuyufjh@gmail.com>
  • Loading branch information
fuyufjh authored Dec 26, 2024
1 parent ac188cb commit d4121e8
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 46 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [0.25.0] - 2024-12-26

* runner: Add `retry` clause to `statement ok` and `query ok|error`.

## [0.24.0] - 2024-12-20

* runner: Added a `Normalizer` type for normalizing result values. A new function
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["sqllogictest", "sqllogictest-bin", "sqllogictest-engines", "tests"]

[workspace.package]
version = "0.24.0"
version = "0.25.0"
edition = "2021"
homepage = "https://github.com/risinglightdb/sqllogictest-rs"
keywords = ["sql", "database", "parser", "cli"]
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ echo $USER
xxchan
```

### Extension: Retry

```text
query I retry 3 backoff 5s
SELECT id FROM test;
----
1
statement ok retry 3 backoff 5s
UPDATE test SET id = 1;
```

### Extension: Environment variable substitution in query and statement

It needs to be enabled by adding `control substitution on` to the test file.
Expand Down
4 changes: 2 additions & 2 deletions sqllogictest-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ glob = "0.3"
itertools = "0.13"
quick-junit = { version = "0.5" }
rand = "0.8"
sqllogictest = { path = "../sqllogictest", version = "0.24" }
sqllogictest-engines = { path = "../sqllogictest-engines", version = "0.24" }
sqllogictest = { path = "../sqllogictest", version = "0.25" }
sqllogictest-engines = { path = "../sqllogictest-engines", version = "0.25" }
tokio = { version = "1", features = [
"rt",
"rt-multi-thread",
Expand Down
2 changes: 1 addition & 1 deletion sqllogictest-engines/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ postgres-types = { version = "0.2.8", features = ["derive", "with-chrono-0_4"] }
rust_decimal = { version = "1.36.0", features = ["tokio-pg"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sqllogictest = { path = "../sqllogictest", version = "0.24" }
sqllogictest = { path = "../sqllogictest", version = "0.25" }
thiserror = "2"
tokio = { version = "1", features = [
"rt",
Expand Down
Loading

0 comments on commit d4121e8

Please sign in to comment.