Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Query Folding - ODBC

I'm connected to an Impala database using the Cloudera ODBC connector. The Power BI documentation claims that most ODBC connections should be able to support query folding. However, every query I attempt looks like it is not folding (View NativeQuery button is greyed out in my Query Editor).

 

I at first was using a more complex query, but now am just attempting a simple SELECT *, and yet, the query is still not folding. 

 

Any tips or tricks here would be great because I'm at a complete loss for what about at SELECT * query is unfoldable. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

1.The View Native Query option is only available for certain relational DB/SQL generating connectors. It doesn't work for OData based connectors, for example, even though there is folding occurring on the backend. The Query Diagnostics feature is the best way to see what folding has occurred for non-SQL connectors (although the steps that fold aren't explicitly called out—you just see the resulting URL that was generated).

2.Query folding supports SQL Server, Oracle, and data sources that support ODBC connectivity.

Excel, CSV, and website are not supported.( Data sources without any query mechanism).

3.If the query statement is preconfigured before connecting the data source, query folding will not work.

19.png

4.Note that when a Power Query query encompasses multiple data sources, incompatibility of data source privacy levels can prevent query folding from taking place.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

1.The View Native Query option is only available for certain relational DB/SQL generating connectors. It doesn't work for OData based connectors, for example, even though there is folding occurring on the backend. The Query Diagnostics feature is the best way to see what folding has occurred for non-SQL connectors (although the steps that fold aren't explicitly called out—you just see the resulting URL that was generated).

2.Query folding supports SQL Server, Oracle, and data sources that support ODBC connectivity.

Excel, CSV, and website are not supported.( Data sources without any query mechanism).

3.If the query statement is preconfigured before connecting the data source, query folding will not work.

19.png

4.Note that when a Power Query query encompasses multiple data sources, incompatibility of data source privacy levels can prevent query folding from taking place.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , This cod talks about " Wrapping the Odbc.DataSource function will allow your connector to inherit default query folding behavior based on the capabilities reported by your driver."

Not sure this can really help you, but check : https://docs.microsoft.com/en-us/power-query/odbc

 

others:

https://docs.microsoft.com/en-us/power-query/power-query-folding

https://blog.crossjoin.co.uk/2019/01/04/odbc-power-bi-power-query-refresh-performance/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.