Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42250: storage/engine: introduce a datadriven framework to run MVCC tests r=itsbilal,petermattis a=knz Previously MVCC tests were hand-coded in Go. This was making it hard(er) to introduce new tests or modify existing tests. This commit improves upon this situation by introducing a new datadriven test, `TestMVCCHistories`, which runs MVCC tests written using a DSL: ``` begin_txn t=<name> [ts=<int>[,<int>]] remove_txn t=<name> resolve_intent t=<name> k=<key> [status=<txnstatus>] restart_txn t=<name> update_txn t=<name> t2=<name> step_txn t=<name> [n=<int>] advance_txn t=<name> ts=<int>[,<int>] txn_status t=<name> status=<txnstatus> check_intent k=<key> [none] put [t=<name>] [ts=<int>[,<int>]] [resolve] k=<key> v=<string> [raw] cput [t=<name>] [ts=<int>[,<int>]] [resolve] k=<key> v=<string> [raw] [cond=<string>] increment [t=<name>] [ts=<int>[,<int>]] [resolve] k=<key> [inc=<val>] del [t=<name>] [ts=<int>[,<int>]] [resolve] k=<key> get [t=<name>] [ts=<int>[,<int>]] [resolve] k=<key> [inconsistent] [tombstones] scan [t=<name>] [ts=<int>[,<int>]] [resolve] k=<key> [end=<key>] [inconsistent] [tombstones] [reverse] merge [ts=<int>[,<int>]] k=<key> v=<string> [raw] clear_range k=<key> end=<key> ``` Where `<key>` can be a simple string, or a string prefixed by the following characters: - `=foo` means exactly key `foo` - `+foo` means `Key(foo).Next()` - `-foo` means `Key(foo).PrefixEnd()` Additionally, the pseudo-command `with` enables sharing a group of arguments between multiple commands, for example: ``` with t=A begin_txn with k=a put v=b resolve_intent ``` Release note: None 42999: colexec: cfetcher errors on setup when indexed column contains unhandled type r=yuzefovich a=rohany Fixes #42994. Indexed columns are always decoded by the fetcher, even if they are unneeded. This PR adds the check to cfetcher initialization to error out if an indexed column is of an unneeded type. Release note (bug fix): Fixed a bug where scanning an index of an unsupported type with the vectorized engine would lead to an internal error. Co-authored-by: Raphael 'kena' Poss <[email protected]> Co-authored-by: Rohan Yadav <[email protected]>
- Loading branch information