Forum Discussion

mmarcoux's avatar
mmarcoux
Frequent Visitor
1 year ago
Solved

Query folding with incremental refresh in dataflows gen2 using Databricks.Query() connector

Hello All, We are testing incremental refresh in Dataflows Gen2 using the Databricks connector and are running into a query folding validation error. The validation fails with the message that the...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi mmarcoux ,

    Thanks for clarifying, I see what you mean now. You’ve already confirmed query folding is working correctly (green lightning icon and supported syntax), so the issue isn’t with your M code or transformations.

    What you’re running into is more about how incremental refresh validation in Dataflows Gen2 checks for foldability. At the moment, that validation logic doesn’t seem to recognize the Databricks connector the same way it does for SQL-based sources (like SQL Server, Synapse, etc.). That’s why you still get the “query is not foldable” error even though folding indicators show it is.

    From what’s documented today, incremental refresh in Gen2 officially supports only a limited set of connectors, and Databricks isn’t yet on that list. So this looks less like a mistake on your side and more like either:

    • a limitation/unsupported feature (incremental refresh not yet enabled for Databricks in Gen2), or
    • a bug in how the validation step is detecting foldability.

    If you haven’t already, I’d recommend logging this on the Fabric Ideas - Microsoft Fabric Community or raising a support ticket through the How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn. That’s the best way to get confirmation from the product team on whether this is an unsupported scenario or a bug, and to track if/when Databricks query folding support for incremental refresh in Dataflows Gen2 is on the roadmap.

    Regards,
    Akhil.