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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
Anonymous
Not applicable

@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

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.

Anonymous
Not applicable

@pejay,


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

Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.