CeresDB / sqlness

An ergonomic, opinionated framework for SQL integration test.
https://crates.io/crates/sqlness
Apache License 2.0
22 stars 7 forks source link

feat: SORT_RESULT interceptor #58

Closed waynexia closed 1 year ago

waynexia commented 1 year ago

Which issue does this PR close?

Closes #57

Rationale for this change

Implement SORT_RESULT interceptor. Because we don't actual do comparison, we can only sort the result before comparing them.

Consider the table result usually contains fixed header (column name etc.), this interceptor also provides two options to ignoring lines in head/tail.

What changes are included in this PR?

As described above

Are there any user-facing changes?

New interceptor SORT_RESULT available

How does this change test

new example