docs(window-functions): restructure into dedicated section with improved navigation#319
Merged
bluestreak01 merged 12 commits intomainfrom Jan 13, 2026
Merged
docs(window-functions): restructure into dedicated section with improved navigation#319bluestreak01 merged 12 commits intomainfrom
bluestreak01 merged 12 commits intomainfrom
Conversation
|
🚀 Build success! Latest successful preview: https://preview-319--questdb-documentation.netlify.app/docs/ Commit SHA: e834eda
|
4 tasks
2bd98f4 to
0e51846
Compare
…ved navigation Reorganize window functions documentation from scattered pages into a dedicated "Window Functions" category under Functions for better discoverability. Changes: - Create new window-functions/ directory with three focused pages: - overview.md: Entry point with concepts, quick reference table, common patterns - reference.md: Complete function reference (avg, sum, count, rank, lag, lead, etc.) - syntax.md: OVER clause syntax, frame types, CUMULATIVE shorthand - Remove old scattered pages (window.md, over.md) - Update sidebar navigation with new nested category - Update internal links in powerbi.md, explain.md, overview.md - Add Netlify redirects for old URLs Improvements: - Single clear entry point for users searching "window functions" - Quick reference table showing all functions with "Respects Frame" indicator - Document CUMULATIVE shorthand and frame shorthand syntax - Add time-series optimization tips - Add VWAP example - Better organized content: concepts -> reference -> syntax details Co-Authored-By: Claude Opus 4.5 <[email protected]>
0e51846 to
2cf42a2
Compare
RaphDal
reviewed
Jan 12, 2026
RaphDal
reviewed
Jan 12, 2026
RaphDal
reviewed
Jan 12, 2026
jerrinot
reviewed
Jan 12, 2026
jerrinot
reviewed
Jan 12, 2026
jerrinot
reviewed
Jan 12, 2026
jerrinot
reviewed
Jan 12, 2026
- Add frame_start and frame_end syntax definitions to syntax.md - Add syntax synopsis section to overview.md for newcomers - Fix incorrect RANGE frame limitation description (issue #5177) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Adds visual animation to help newcomers understand how window functions slide through rows. Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add syntax to main syntax block - Add dedicated section with examples and use cases - Mention supported functions: first_value, last_value, lag, lead - Add brief mention in overview syntax section Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Explain that calculations reset for each partition - Add "When to use it" with capital markets examples - Add side-by-side SQL comparison (with/without partition) - Add table showing difference in results per symbol Co-Authored-By: Claude Opus 4.5 <[email protected]>
Replace car race analogy with concrete aggregate vs window function comparison showing: - Source data table - Aggregate query and result (1 row) - Window function query and result (all rows) - Capital markets terminology (BTC-USD trades) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Window function arithmetic (e.g., division between two window functions) requires version 9.3.1+. Earlier versions need CTEs or subqueries as workarounds. Co-Authored-By: Claude Opus 4.5 <[email protected]>
The SQL snippets already indicate they're demo-able via the UI. Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add SVG animation to static assets - Reference local file instead of GitHub user-attachments URL Co-Authored-By: Claude Opus 4.5 <[email protected]>
jerrinot
approved these changes
Jan 13, 2026
Update links in 17 cookbook files to point to the new window functions documentation location under /docs/query/functions/window-functions/. Co-Authored-By: Claude Opus 4.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 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.
Summary
CUMULATIVEshorthand and other previously undocumented featuresvwap()function with practical VWAP example using window functionsGROUP BYlimitation with workaround patternChanges
New Structure
Files Added
documentation/query/functions/window-functions/overview.mddocumentation/query/functions/window-functions/reference.mddocumentation/query/functions/window-functions/syntax.mdstatic/_redirects(Netlify redirects for old URLs)Files Removed
documentation/query/functions/window.mddocumentation/query/sql/over.mdFiles Updated
documentation/sidebars.js- new nested categorydocumentation/integrations/visualization/powerbi.md- updated linksdocumentation/query/sql/explain.md- updated linksdocumentation/query/overview.md- updated linksdocumentation/query/sql/window-join.md- added disambiguation note + GROUP BY limitation with CTE workarounddocumentation/query/functions/finance.md- replacedvwap()function with redirect to VWAP exampleImprovements
CUMULATIVEshorthand, frame shorthand syntax, time-series optimization tips(high + low + close) / 3Redirects
/docs/query/functions/window//docs/query/functions/window-functions/overview//docs/query/sql/over//docs/query/functions/window-functions/syntax/Test plan
🤖 Generated with Claude Code