Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions arango/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,10 @@ def format_view_consolidation_policy(body: Json) -> Json:
result["segments_bytes_floor"] = body["segmentsBytesFloor"]
if "minScore" in body:
result["min_score"] = body["minScore"]
if "maxSkewThreshold" in body:
result["max_skew_threshold"] = body["maxSkewThreshold"]
if "minDeletionRatio" in body:
result["min_deletion_ratio"] = body["minDeletionRatio"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Possible consolidation policy field name mismatch

The new mappings rely on ArangoDB returning consolidation policy keys exactly as maxSkewThreshold and minDeletionRatio. If the server uses different casing or different attribute names for these options in the targeted “latest version”, format_view_consolidation_policy silently drops them and callers won’t see these settings in formatted output.

Fix in Cursor Fix in Web


return verify_format(body, result)

Expand Down
Loading