Skip to content

Commit d27228f

Browse files
committed
testdrive dev docs: Update version example with a current 3 digit minor version
1 parent c13b70d commit d27228f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/developer/testdrive.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -937,11 +937,11 @@ SELECT mz_version_num() < 2601;
937937
## Run an action/query conditionally on version
938938

939939
```
940-
>[version>=5500] SELECT 1;
940+
>[version>=13000] SELECT 1;
941941
1
942942
```
943943

944-
The `[version>=5500]` property allows running the action or query only when we are connected to a Materialize instance with a compatible version. The supported comparison operators are `>`, `>=`, `=`, `<=` and `<`. The version number is the same as returned from [`mz_version_num()`](https://materialize.com/docs/sql/functions/#system-information-func) and has the same format `XXYYYZZ`, where `XX` is the major version, `YYY` is the minor version and `ZZ` is the patch version. So in the example we are only running the `SELECT 1` query if the Materialize instance is of version `v0.55.0` or higher. For lower versions no query is run and no comparison of results is performed subsequently.
944+
The `[version>=13000]` property allows running the action or query only when we are connected to a Materialize instance with a compatible version. The supported comparison operators are `>`, `>=`, `=`, `<=` and `<`. The version number is the same as returned from [`mz_version_num()`](https://materialize.com/docs/sql/functions/#system-information-func) and has the same format `XXXYYYZZ`, where `XX` is the major version, `YYY` is the minor version and `ZZ` is the patch version. So in the example we are only running the `SELECT 1` query if the Materialize instance is of version `v0.130.0` or higher. For lower versions no query is run and no comparison of results is performed subsequently.
945945

946946
[confluent-arm]: https://github.com/confluentinc/common-docker/issues/117#issuecomment-948789717
947947
[aws-creds]: https://github.com/MaterializeInc/i2/blob/main/doc/aws-access.md

0 commit comments

Comments
 (0)