Skip to content

Commit b08ae62

Browse files
committed
Adding views test
1 parent a2f856a commit b08ae62

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

arango/formatter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,12 @@ def format_view(body: Json) -> Json:
902902
if "indexes" in body:
903903
result["indexes"] = body["indexes"]
904904

905+
# Introduced in 3.9.6 EE
906+
if "primaryKeyCache" in body:
907+
result["primaryKeyCache"] = body["primaryKeyCache"]
908+
if "primarySortCache" in body:
909+
result["primarySortCache"] = body["primarySortCache"]
910+
905911
# Introduced in 3.12 EE
906912
if "optimizeTopK" in body:
907913
result["optimizeTopK"] = body["optimizeTopK"]

tests/test_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ def test_arangosearch_view_properties(db, col, enterprise, db_version):
189189
}
190190
)
191191

192+
if db_version >= version.parse("3.9.6"):
193+
params.update({"primarySortCache": True, "primaryKeyCache": True})
192194
if db_version >= version.parse("3.10.3"):
193195
params.update({"storedValues": ["attr1", "attr2"]})
194196

0 commit comments

Comments
 (0)