This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
Example 21: query the graph analytical view once after a reopen, then wait for its counts - #469
Merged
Merged
Conversation
…er a reopen (457) A view restored on open is lazy: schema:graphAnalyticalViews answers READY with nodeCount 0 and edgeCount 0 until the first query that uses the view. The example now queries once, then polls for the expected counts. Docs page and guide caveat updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #457
After a reopen, a graph analytical view restored from its persisted CSR is lazy: schema:graphAnalyticalViews reports READY with nodeCount 0 and edgeCount 0 until the first query that uses the view (ArcadeData#10575). Example 21 polled the row until READY and then required the full counts, so on current engines it failed intermittently (2 of 3 runs on main 564fcc9 at 67,500 nodes). Results through the view were always correct: 2-hop counts, inbound counts, neighbour samples and algo.wcc matched the record-level queries in every run.
The example now runs one query through the view after the reopen and then polls with a new wait_for_gav_counts helper until the row is READY with the expected counts. The example page (docs/examples/21_graph_analytical_view_sql.md) and the caveat in docs/guide/graph-analytics.md describe the lazy row.
Runs of the fixed example, each ending in "Example 21 completed.": main 564fcc9 at 67,500 nodes x3, 26.10.2 at 67,500 nodes x2, main at the default size x1. Example 21 is not part of test_docs_examples, so no test changed.
🤖 Generated with Claude Code