Skip to content

Query folding

Does it fold queries to the source, and how? (Learn)

Patterns

Connectors by answer

Connector lists come from the connector checklist (knowledge/checklist.yaml), with the first cited source line. ✓ marks hand-checked labels; the rest are model-generated profiles (about 95% exact against hand labels), so open the cited line before relying on one. Counts show what certified connectors do, which is evidence rather than advice: Microsoft's guidance and the write-connector skill say what to do.

folding: Does it fold queries to the source, and how?

none: 67 connectors

Anaplan ✓ Anaplan.pq:563, Attio ✓ Attio.pq:510, AzureResourceGraph ✓ AzureResourceGraph.pq:120, Bitbucket ✓ Bitbucket.pq:126, GoogleSheets ✓ GoogleSheets.pq:140, Linkar ✓ LinkarConnector.pq:179, SolarwindsServiceDesk ✓ SolarWindsServiceDesk.pq:136, SurveyMonkey ✓ FetchResource.pqm:26, ZendeskData ✓ zendesk.pq:163, ZohoCreator ✓ ZohoCreator.m:56, ADPAnalytics, Acterys, AutodeskConstructionCloud, AutomationAnywhere, AutomyDataAnalytics, AzureCostManagement, AzureDeviceRegistry, BI360 Solver.m:102, BQECore, BitSightSecurityRatings BitSightSecurityRatings.pq:1, Bitly, BuildingConnected BuildingConnected.pq:227, CCHTagetik, Cherwell, CloudBluePSA, CustomerInsights CustomerInsights.m:237, DeltaSharing, DynatraceGrail, EQuIS EQuIS.m:1, EntersoftBusinessSuite Entersoft_Business_Suite.m:1, FactSetAnalytics FactSetAnalytics.pq:119, FactSetRMS FactSetRMS.m:281, FifteenFive FifteenFive.pq:955, Funnel, IndustrialAppStore, InformationGrid, JamfPro, Kognitwin, LEAP, LinkedInLearning, MicrosoftAzureDataManagerForEnergy, OneLakeFile OneLakeFile.pq:296, OneStream, Paxata Paxata.m:1, ProductInsights, Profisee, QuickBase, Roamler, SDMX SDMX.m:38, ShortcutsBI, SmartsheetGlobal, SoftOneBI, Supermetrics, TeamDesk.PowerBI.DataConnector, TeamsAnalytics, Tenforce Tenforce.m:121, TimeSeriesInsights TimeSeriesInsightsConnector.m:1, Vena Vena.pq:40, VesselInsight, WebtrendsAnalytics WebtrendsAnalytics.pq:90, Windsor, Witivio Witivio.pq:179, WorkforceDimensions, Wrike, Zucchetti, eWayCRM, inwink

table-view-handlers: 19 connectors

The connector writes its own folding handlers in Table.View (OnTake, OnSelectRows, OnSort and the like), on data tables or on its navigation tables. A Table.View that adds only GetRows or OnNativeQuery is not folding; OnNativeQuery alone is native-query. Handlers built by the engine's SqlView.Generator count under custom-sql-generator.

Explained in: Table.View handlers.

Asana ✓ Asana.m:37, LakeHouse ✓ DualTable.View.pqm:275, AssembleViews AssembleViews.m:478, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:967, Bloomberg Folding.pqm:37, CDataConnectCloud CDataConnectCloudServiceV2.pqm:298, Celonis Celonis.m:271, Databricks Databricks.pq:1651, Dremio Dremio.pq:829, Eduframe EduFrame.pq:205, FabricSql FabricSql.pq:272, MicrostrategyDataset MicroStrategyDataset.m:496, OneLakeSql OneLakeSql.pq:244, PowerPlatformDataflows PowerPlatformDataflows.pq:1738, Samsara Samsara.Table.Fetch.pqm:128, Usercube Usercube.m:109, Warehouse Warehouse.pq:340, WorkplaceAnalytics WorkplaceAnalytics.pq:573, kxkdbinsightsenterprise kxkdbinsightsenterprise.pq:188

odbc-sql-capabilities: 27 connectors

Folding through Odbc.DataSource, shaped by SqlCapabilities, SQLGetInfo, SQLGetTypeInfo, or AstVisitor overrides. An AstVisitor that rewrites LIMIT/OFFSET belongs here, not under custom-sql-generator.

Explained in: ODBC and DirectQuery configuration.

AmazonAthena ✓ AmazonAthena.m:163, ClickHouse ✓ ClickHouseConnector.pq:260, MarkLogicODBC ✓ MarkLogicODBC.m:315, TIBCO ✓ TIBCO.ODBC.TDV.m:87, Actian Actian.m:132, AmazonOpenSearchService AmazonOpenSearchService.m:116, BIConnector BIConnector.pq:43, CosmosDB CosmosDB.m:583, DataVirtuality DataVirtuality.m:55, Databricks Databricks.pq:1651, Denodo DenodoForPowerBI.m:113, Dremio Dremio.pq:829, ExactOnlinePremium ExactOnlinePremium.m:89, Exasol Exasol.pq:441, Foundry Foundry.m:151, IRIS Iris_PowerBI_Connector.m:96, Indexima Indexima.m:175, IntersystemsHealthInsight IntersystemsHealthInsight.pq:106, JethroData1.0.1 JethroODBC.m:42, Kyligence Kyligence.m:72, KyvosODBC KyvosODBC.pq:434, MariaDB MariaDB.m:145, MongoDBAtlasODBC MongoDBAtlasODBC.pq:184, OpenSearchProject OpenSearchProject.m:116, QubolePresto QubolePresto.m:112, SingleStoreODBC SingleStoreODBC.m:188, StarburstPresto StarburstEnterprise.pq:108

native-query: 11 connectors

Value.NativeQuery is supported, through an OnNativeQuery handler or a source function that accepts native queries.

Explained in: Native queries.

ClickHouseArrowFlight ✓ ClickHouseArrowFlight.pq:469, CommonDataService ✓ CommonDataService.pq:68, LakeHouse ✓ DualTable.View.pqm:275, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:967, CDataConnectCloud CDataConnectCloudServiceV2.pqm:298, Databricks Databricks.pq:1651, Denodo DenodoForPowerBI.m:113, Dremio Dremio.pq:829, PowerPlatformDataflows PowerPlatformDataflows.pq:1738, SingleStoreODBC SingleStoreODBC.m:188, StarburstPresto StarburstEnterprise.pq:108

custom-sql-generator: 7 connectors

The connector writes its own SQL text generator outside the ODBC driver, usually behind Table.View handlers.

ClickHouseArrowFlight ✓ ClickHouseArrowFlight.pq:469, LakeHouse ✓ DualTable.View.pqm:275, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:967, CDataConnectCloud CDataConnectCloudServiceV2.pqm:298, Databricks Databricks.pq:1651, Dremio Dremio.pq:829, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

odata-folding: 13 connectors

The connector returns OData.Feed tables, so the OData connector folds filters, selects and paging into the request. Answer this, not none, even though the connector writes no folding code itself.

Explained in: OData feeds.

AptixInsights ✓ AptixInsights.pq:42, CogniteDataSource ✓ CogniteDataSource.pq:544, PlanviewOKR ✓ PlanviewOKR.m:173, Cognite Cognite.pq:147, DCWInsights DCWInsights.m:29, Emigo Emigo.m:263, HexagonSmartApi HexagonSmartApi.m:108, IntuneDataWarehouse Intune.m:32, IntuneV2 IntuneV2.pq:56, MicrosoftGraphSecurity MicrosoftGraphSecurity.m:106, PlanviewProjectplace PlanviewProjectplace.m:133, Spigit Spigit.m:132, SumTotal SumTotal.pq:117

source-function-folding: 13 connectors

Folding is delegated to a source function that folds on its own, such as Sql.Database. Answer this, not none.

CommonDataService ✓ CommonDataService.pq:68, LakeHouse ✓ DualTable.View.pqm:275, PowerBIDatamarts ✓ PowerBIDatamarts.pq:263, AtScale AtScale.pq:27, AzureDatabaseForMySQL AzureDatabaseForMySQL.pq:12, AzureHorizonDB AzureHorizonDB.pq:31, AzurePostgreSQL AzurePostgreSQL.pq:31, FabricSql FabricSql.pq:272, OneLakeSql OneLakeSql.pq:244, PowerPlatformDataflows PowerPlatformDataflows.pq:1738, Sentinel Sentinel.pq:103, Synapse Synapse.pq:392, Warehouse Warehouse.pq:340

folding/table-view-handlers: Which Table.View handlers are implemented?

on-take: 11 connectors

Asana ✓ Asana.m:53, LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, CDataConnectCloud CDataConnectCloudServiceV2.pqm:304, Celonis Celonis.m:284, MicrostrategyDataset MicroStrategyDataset.m:517, PowerPlatformDataflows PowerPlatformDataflows.pq:1738, Samsara Samsara.Table.Fetch.pqm:128, Usercube Usercube.m:117, kxkdbinsightsenterprise kxkdbinsightsenterprise.pq:226

on-skip: 7 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, CDataConnectCloud CDataConnectCloudServiceV2.pqm:304, Celonis Celonis.m:284, MicrostrategyDataset MicroStrategyDataset.m:517, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

on-select-rows: 11 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, Databricks Databricks.pq:1651, Dremio DremioAdbcDataSource.pqm:576, Eduframe EduFrame.pq:205, FabricSql FabricSql.pq:277, OneLakeSql OneLakeSql.pq:245, PowerPlatformDataflows PowerPlatformDataflows.pq:1738, Warehouse Warehouse.pq:299, WorkplaceAnalytics WorkplaceAnalytics.pq:603

on-select-columns: 6 connectors

LakeHouse ✓ LakeHouse.pq:3570, AssembleViews AssembleViews.m:501, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, CDataConnectCloud CDataConnectCloudServiceV2.pqm:304, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

on-sort: 5 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, CDataConnectCloud CDataConnectCloudServiceV2.pqm:304, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

on-group: 4 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

on-add-columns: 4 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

get-row-count: 5 connectors

LakeHouse ✓ LakeHouse.pq:3570, Bloomberg Folding.pqm:66, CDataConnectCloud CDataConnectCloudServiceV2.pqm:304, MicrostrategyDataset MicroStrategyDataset.m:517, PowerPlatformDataflows PowerPlatformDataflows.pq:1738

get-expression: 6 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, FabricSql FabricSql.pq:277, OneLakeSql OneLakeSql.pq:245, PowerPlatformDataflows PowerPlatformDataflows.pq:1738, Warehouse Warehouse.pq:299

other: 6 connectors

LakeHouse ✓ LakeHouse.pq:3570, AzureCosmosDBForMongoDBvCore AzureCosmosDBForMongoDBvCore.pq:580, Bloomberg Folding.pqm:66, CDataConnectCloud CDataConnectCloudServiceV2.pqm:304, FabricSql FabricSql.pq:277, PowerPlatformDataflows PowerPlatformDataflows.pq:1738