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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pejay
Frequent Visitor

PowerBI & Athena ODBC connection problem

Hi everyone,

 

we try to connect to AWS Athena from PowerBI via their ODBC driver. We encountered a problem with queries that have a with statement, i.e.

 

 

with a1 as

(
     select * from table1
)
select *
from a1;

We get the error message: We encountered an error while trying to connect. Details: "This native database query isn't currently supported."

 

Queries without with statement work fine, also with queries work with a JDBC driver. I couldn't find any problems while checking logs of the ODBC Athena driver, it looks to me like a problem of PowerBI.

 

Any idea what could causing this and how to solve it? Nesting the queries gets quite ugly.

 

Thanks for any help.

 

Best,

Philipp

 

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@pejay,

As you test, it doesn't support CTE query in this case, you would need to remove with statement in the query to connect to your data source.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Well, I wanted to know why it doesn't support CTE queries, it seems to be a problem of PowerBI, not Athena ODBC. JFYI: Another workaround is to use Redshift Spectrum.

@pejay,


This is by design, you can submit an idea here.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors