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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
anhngv
Advocate II
Advocate II

Can Jetbrains Datagrip connect to Fabric lakehouse?

First, I don't know where should this topic be put and I hope anyone here knows the answer.

As stated in the subject, I have a Lakehouse in a Fabric Workspace. The lakehouse has its own SQL connection string (xxx.datawarehouse.pbidedicated.windows.net). I am using Datagrip to manage all my project data sources.

And my question is, is there any way that I can connect the Fabric Lakehouse to the Datagrip?

 

What I have tried:

- I have put the SQL connection string to Host, Port is default 1433

- For authentication, I have selected User & Password which I have filled my Fabric User/password

anhngv_1-1711726987201.png

- And then I got this error. I have checked my login and I still can log my account into Fabric service

anhngv_2-1711727170618.png

 

Hope to hear from you soon.

 

8 REPLIES 8
DürsinKurt
Regular Visitor

whe have the same 'database_principal_id' is not supported Message. It seems to be allready reported for about an year to DataGrip.

Actually it is marked as resolved since 11 Days and will be released with Build 2024.02:


https://youtrack.jetbrains.com/issue/DBE-17970/FUNCTION-databaseprincipalid-is-not-supported-in-Azur...

jragan
Frequent Visitor

Note here - in the Advanced settings area for the azure sql connection in DataGrip, the hostNameInCertificate is hardcoded to the default for azure sql which is INCORRECT for fabric - the value needs to be changed to *.datawarehouse.fabric.microsoft.com

It turned out that we still be able to connect the database but no schemas or tables shown.

We still may do SQL queries but just not any support from IDE. It's just like free text.

 

anhngv_0-1716737108156.png

 

JPuris
Frequent Visitor

I'm facing the same exact issue 😞

 

It is able to connect via Azure SQL Server connection type as described above, but you will get the error

FUNCTION 'database_principal_id' is not supported.

This issue also causes the interspection to fail, which consequently eliminates any intelliSense 😞

 

It is not able to connect to the Lakehouse SQL endpoint at all, if choosing the Azure Synapse Analytics database type.

TomMartens
Super User
Super User

Hey @anhngv ,

 

I just installed Datagrip on my Macbook Pro (Apple Silicon - M2)

I used the connection string from the SQL Analytics Endpoint of an existing lakehouse:

image.png

Then, in Datagrip I configure a data source like this, please be aware that I use the driver of an Azure SQL Database type:

image.png

With these settings I'm able to connect to the SQL Analytics Endpoint of a lakehouse and query the data.

TomMartens_1-1711785735986.png

Please be aware that I'm not a DataGrip expert, but from my perspective I looks like as DataGrip is able to to connect to the SQL Analytics Endpoint of a Microsoft Fabric's lakehouse.

 

Hopefully, this helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

I'm using Datagrip in Windows 10. I followed your steps, it did something but still did not get connected.

 

1, This is my setting, it popped up a log-in screen of Microsoft, then I completed the Authentication. When I clicked on Test Connection, it showed Succeeded 

anhngv_1-1711936337180.png

anhngv_0-1711936226215.png

 

2, But when I clicked OK to load the database, it showed Error below

anhngv_2-1711936500730.png

It gets closer 😄

TomMartens
Super User
Super User

Hey @anhngv ,

 

try to use the interactive authentication mode.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

I tried Interactive then I received the new error

anhngv_1-1711770344492.png

 

 

anhngv_0-1711770318168.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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

Top Solution Authors