Power Query \Microsoft.Mashup.Document\Host\Document\Analysis\AddPartitionMetaDocumentAnalyzer.cs => BeginAnalyzeDocumentPartitions
✓ Published0🌍 Public
HHugoberry
Last edited Mar 28, 2017
Created on Mar 28, 2017
This visualization shows how Power Query’s folding engine decides whether a query can be pushed to a data source, using a generated `Expression.m` file. The code inspects a table’s structure and metadata, removes columns of complex types, and then evaluates whether the resulting expression is a native query invocation. It relies on the Power Query M language’s `Table.FromValue`, `Table.RemoveColumns`, and `Value.ResourceExpression` functions to build and analyze the expression tree. The output is a record with `IsFolded` and `HasNativeQuery` flags, revealing whether the query is foldable and whether it uses a native query path. The data source is implicit, but the logic centers on the M expression’s `Kind` and `Arguments`.
AI-generated description