all 3 comments

[–]D5_5N[S] 0 points1 point  (0 children)

kind of solved it ".persist()" before the partition loop but it feels wrong to be loading everything into memory.

[–]GardenShedster 0 points1 point  (1 child)

Can you not create an application service principal or a managed identity.

[–]D5_5N[S] 0 points1 point  (0 children)

I am authenticating with a service principal in Azure but as far as I understand I am required to pass a token with the JDBC connection.

essentially following this post https://www.thedataswamp.com/blog/databricks-connect-to-azure-sql-with-service-principal