add_table_view_folding
Create a Table.View implementing custom query folding for non-foldable Power BI sources, with mandatory GetType/GetRows and optional OnTake, OnSkip, GetRowCount handlers.
Instructions
ADVANCED: scaffold a Table.View that implements custom query folding over a non-foldable source. Emits Table.View(null, [handlers]). handlers is comma-separated from GetType, GetRows, OnTake, OnSkip, OnSelectColumns, OnSelectRows, GetRowCount. GetType+GetRows are the mandatory baseline (added automatically); OnTake is the cheapest win (bounded preview). FLAG: the handler bodies are TEMPLATES that defer to the table and must be specialised to actually fold into the native source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| handlers | Yes | handlers, comma-separated, e.g. OnTake,OnSkip,GetRowCount | |
| sessionId | Yes | ||
| partitionName | No | partition name (optional; defaults to the first partition) |