set_partition_mode
Set a partition's storage mode to Import, DirectQuery, Dual, or DirectLake. Combine Dual and DirectQuery to build hybrid tables.
Instructions
Set a partition's storage mode: Import | DirectQuery | Dual | DirectLake. Defaults to the table's first partition. Use Dual + a DirectQuery partition with set_data_coverage to build a hybrid (Import + DirectQuery) table. (Switching to DirectLake/DirectQuery may also need the matching partition source kind; this flips the Mode flag.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Import | DirectQuery | Dual | DirectLake | |
| table | Yes | ||
| partition | No | partition name (optional; defaults to the first partition) | |
| sessionId | Yes |