Skip to content

Commit a348c64

Browse files
authored
Prepare for release 3.2.0-rc2 (#407)
## Product change and motivation Update release notes for release 3.2.0-rc2, update dependency references ## Implementation
1 parent a37d176 commit a348c64

File tree

3 files changed

+64
-8
lines changed

3 files changed

+64
-8
lines changed

RELEASE_NOTES_LATEST.md

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,79 @@
33

44
Available through https://crates.io/crates/typeql.
55
```
6-
cargo add [email protected]rc0
6+
cargo add [email protected]rc2
77
```
88

99

1010
## New Features
11+
- **Add query end marker**
12+
13+
TypeQL query pipelines cannot be distinguished since query stages can be arbitrarily chained and concatenated. To resolve this, we introduce the `end;` marker. For example:
14+
```
15+
match ...
16+
insert ...
17+
end;
18+
match ...
19+
insert...
20+
```
21+
22+
Is now correctly interpretable as two separate match-insert queries! Compared to before:
23+
```
24+
match ...
25+
insert ...
26+
match ...
27+
insert ...
28+
```
29+
30+
Where it was not clear if this is one match-insert-match-insert pipeline, two match-insert pipelines, or 4 separate queries, or anything in between!
31+
32+
For simplicity, any query can be terminated with an 'end;` marker, though it is redundant in for schema queries and 'fetch' queries:
33+
```
34+
define ...;
35+
end; # redundant!
36+
37+
match ...
38+
insert ...
39+
end; # not redundant!
40+
41+
match ...
42+
insert ...
43+
fetch { ... };
44+
end; # redundant!
45+
```
46+
47+
48+
- **Add prefix query parser**
49+
50+
We create a "query prefix parsing" API, which attempts to parse the maximal query prefix from the input.
51+
52+
This is designed to help applications like Console consume a single complete query at a time from a set of concatenated queries.
1153

1254

13-
## Bugs Fixed
55+
- **Allow relates overrides to have lists**
1456

57+
We fix one syntactic inconsistency, grammatically allowing list overrides for relation's roles:
58+
```
59+
define
60+
relation sub-rel, relates sub-role[] as super-role[];
61+
```
1562

16-
## Code Refactors
63+
## Bugs Fixed
1764

1865

19-
## Other Improvements
20-
- **Update dependencies reference**
21-
Update dependencies reference to avoid conflicts with TypeDB server.
66+
## Code Refactors
67+
- **Refactor grammar: partial rules, cleanup**
68+
69+
We rename rules used for partial parsing to have suffix `_partial` rather than `_no_test` (randomized tests only use complete queries).
2270

2371

72+
73+
## Other Improvements
74+
- **Fix unit test checks**
75+
76+
- **Improve TypeQL syntax errors**
77+
78+
- **Update README.md**
79+
2480

2581

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0-rc0
1+
3.2.0-rc2

dependencies/typedb/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def typedb_behaviour():
1515
git_repository(
1616
name = "typedb_behaviour",
1717
remote = "https://github.com/typedb/typedb-behaviour",
18-
commit = "57fc7216f4b0df05ce29044a1ba621e44bdd87e1", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_behaviour
18+
commit = "1a03ff04d8c3e8f7cab97cca2b4fb022dc89834d", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_behaviour
1919
)

0 commit comments

Comments
 (0)