Releases: risinglightdb/sqllogictest-rs
Release: v0.11.0
This release contains some minor fixes.
- fix: use
Vec<Vec<String>>
for external engine (JDBC) - fix: Use
lines()
instead ofsplit('\n')
inparse_inner
. So the behavior can be correct on Windows. - fix: parse DML with
returning
as a query - A minor breaking change:
update_test_file
takes&mut Runner
instead of its ownnership.
Release: v0.10.0
-
Improve the ability to unparse and update the test files. Mainly add
update_record_with_output
andupdate_test_file
to the library.More details:
- Add
impl Display
forRecord
(refactorunparse
). - Add
Record::Whitespace
so the whitespace in the original files can be reconstructed duringunparse
. - Add tests for unparsing and updating records.
- Refactor and fix the behavior about newlines and
halt
for CLI options--override
and--format
.
- Add
-
Fix:
hash-threshold
should be compared with the number of values instead of the number of rows. -
Breaking change: The type of
Validator
is changed fromfn(&Vec<String>, &Vec<String>) -> bool
tofn(&[Vec<String>], &[String]) -> bool
. Also added adefault_validator
.
Thanks to the contributions of @alamb and @xudong963 .
Release v0.9.0
- Improve the format and color handling for errors.
- Support
hash-threshold
. - Fix
statement count <n>
for postgres engines. - Breaking change: use
Vec<Vec<String>>
instead ofString
as the query results byDB
. This allows the runner to verify the results more precisely.- For
rowsort
, runner will only sort actual results now, which means the result in the test cases should be sorted.
- For
- Breaking change:
Hook
is removed. - Breaking change:
Record
and parser's behavior are tweaked:- retain
Include
record when linking its content - keep parsing after
Halt
- move
Begin/EndInclude
toInjected
- retain
- Added CLI options
--override
and--format
, which can override the test files with the actual output of the database, or reformat the test files.
Release v0.8.0
feat: support checking error message for statement & bump to 0.8.0 (#102)
Release v0.7.1
fix: --external-engine-command-template is not required (#99)
Release v0.7.0
release: bump to v0.7.0 (#97)
- release: bump to v0.6.5
Signed-off-by: TennyZhuang zty0826@gmail.com
- Update Cargo.toml
Signed-off-by: TennyZhuang zty0826@gmail.com
- fix clippy
Signed-off-by: Runji Wang wangrunji0408@163.com
Signed-off-by: TennyZhuang zty0826@gmail.com
Signed-off-by: Runji Wang wangrunji0408@163.com
Co-authored-by: Runji Wang wangrunji0408@163.com
Release v0.6.4
- Use one session for each file in serial mode.
Release v0.6.3
- Support registering hook function after each query.
v0.6.2
v0.6.1
release v0.6.1 (#74)
Signed-off-by: Runji Wang wangrunji0408@163.com
Signed-off-by: Runji Wang wangrunji0408@163.com