Repository navigation
Experiments: queries on arrays with -> - #353
Merged
Merged
Conversation
A page for `##! experimental.array_queries`: why nested data is stored that way, unnesting versus querying an array with `->`, why the arrow helps (a fact about a session as a dimension; filtering sessions without losing their hits), common patterns on the GA sample, what an arrow returns, and each database's limits with its error messages. The examples are static, as the givens page's are: the arrow is in no Malloy release the docs build on yet. Results were run on DuckDB against the docs' ga_sample.parquet. Listed on the experiments page and in the table of contents. It links to "Reading Nested Data" for unnesting rather than repeating it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvYaMvB6W3Sph3b7Lvbjzc Signed-off-by: Claude <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Docs for
##! experimental.array_queries, thearray -> { ... }arrow from malloydata/malloy#3195 as narrowed in malloydata/malloy#3205. Merge after #3205 lands, since the page describes #3205's limits.What's here
experiments/array_queries.malloynb, a new page:->;experiments.malloynblists the flag and links the page.table_of_contents.jsonhas a "Queries on Arrays" entry under Experiments.Static examples
The examples are fenced code inside markdown, not
>>>malloycells, as on the givens page, because the docs build on Malloy 0.0.433 and no release has the arrow yet.ga_sample.parquet.Once a release has the arrow and the docs move to it, the examples could become live cells.
Checked
tsx scripts/index.ts --only /documentation/experiments. The page compiles and renders: highlighting, result tables, and notes as blockquotes.../-style links as invalid when only part of the site is built. It does so for the existing givens, parameters and persistence pages too. The new page's one such link, to../patterns/reading_nested.malloynb, has the same form.Generated by Claude Code