Repository navigation
Add paginated tables and page numbers - #4
Merged
mattsenicksigma merged 4 commits intoOct 13, 2026
Merged
mattsenicksigma merged 4 commits into
mattsenicksigma merged 4 commits into
Conversation
table and pivot_table take paginate=true (Sigma's "Expand table rows"), emitted as
flow="paginated" on the layout entry. A paginated element must be the last block on its
page and cannot sit in a row, stack or panel, enforced at compile time and by
check_layout.py. page_number() and report(page_numbers=true) add a "{page} of {total}"
number to the footer; row() gains lead= so it can sit at the right.
simple_statement is rebuilt on both (totals above the table, note and page number in
the footer) and simple_dashboard gains table_paginate.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3 of 4 tasks
…numbers Re-applies #4's features on the tree layout: paginate= on table / pivot_table (flow="paginated" on the layout entry), the rule that a paginated element is the last block on its page (and not in a row, stack or panel), row(lead=), page_number() and report(page_numbers=). report_from_args now forwards page_numbers and schedules. check_layout keeps #4's paginated-flow checks and #5's overlap allowance. schema.yml gains the new arguments (in signature order, which dbt validates). Goldens regenerate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
README: the Tables section now lists all four ways to show more rows (rows / h=fill, window, table_pages, paginate=true) and when to pick each; paginate=true is marked as checked in Sigma. Design notes updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mattsenicksigma
changed the base branch from
main
to
feat/actions-and-schedules
October 13, 2026 01:30
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
Closes two gaps against Sigma's report example library: Report with a paginated table and Report with a page number.
table(..., paginate=true)andpivot_table(..., paginate=true)(Sigma's "Expand table rows"): emitted asflow="paginated"on the element's layout entry, so the table grows to all its rows at render time and continues onto further pages.his the height it starts with.row,stack, header or footer. Sigma's docs don't say how far content below an expanded table is pushed, so the package refuses to guess; the rule is enforced at compile time and inscripts/check_layout.py.page_number()andreport(page_numbers=true): Sigma's{{CurrentPageNumber()}} of {{TotalPageCount()}}text at the right of the footer on every page. With a footer of your own, its elements share the footer row with the number.row()gainslead=so a lone element can sit at the right.Presets
simple_statementis rebuilt on both: totals above the table, a paginated line-item table last, footer note plus page number in the footer (a statement can now be any length).simple_dashboardgainstable_paginate.simple_executive_summaryandsimple_period_revieware unchanged; they can takereport_args={'page_numbers': true}.Tests
New integration models
sigma_paginated_tablesandsigma_footer_page_numbers; assertions for layout flow, totals-above-table, footer panel contents and page numbers; 7 new negative cases; 4 newcheck_layoutunit tests; updated goldens andschema.yml.bash scripts/run_integration_tests_duckdb.shon dbt 1.x and dbt 2.x withPARSE_FLAGS=--warn-errorpython -m unittest discover -s scripts -p "test_*.py"(37 tests)python scripts/export_reports.py --push --dry-runagainst Sigma (needs credentials; not run). Worth doing before merge:flow="paginated"is taken from Sigma's example, and the offline schema check cannot see it becauselayoutis an opaque XML string.Not covered
Element layering and repeated containers (still
raw()only), per the earlier gap review.🤖 Generated with Claude Code