You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement lazy sub-row fetching for non-paginateSubRows grouped mode
Only fetch sub-rows for expanded groups instead of all visible groups.
Collapsed groups get empty subRows with subRowCount so expander arrows show.
Changes:
- DuckDBBackend.js: buildGroupLevel() adds COUNT(*) to GROUP BY, skips
sub-row fetch for collapsed groups, sets __state.subRowCount
- Reactable.js: always pass expanded to DuckDB query when groupBy active,
fix eslint missing deps warning (canSkipInitialDuckDBQuery, defaultSorted,
paginateSubRows), extend subRowCount placeholder to all backend modes
- backend-duckdb.R: duckdbGroupedQuery() accepts expanded/parentId, adds
COUNT(*) AS _sub_row_count, skips sub-row fetch for collapsed groups
- backend-df.R: dfGroupBy() accepts expanded/parentId, trims sub-rows for
collapsed groups after computing subRowCount
expanded=NULL/undefined means all groups expanded (fetch all sub-rows),
matching pre-existing behavior.
Fix nondeterministic unique aggregator: add ORDER BY 1 to STRING_AGG(DISTINCT ...)
so unique values are sorted alphabetically. Affects both DuckDB WASM client
(DuckDBBackend.js) and DuckDB R server (duckdb-sql.R).
Document known issues in implementation plan:
- Select-all has no fallback for custom backends
- Refactor selectAll into separate S3 generic
Tests: 4 JS tests, 4 df R tests, 3 DuckDB R tests. All pass.
0 commit comments