-
Notifications
You must be signed in to change notification settings - Fork 60
bulkcopy using service principal authentication freezes #662
Copy link
Copy link
Closed
Labels
area: bulk-copyIssues in cursor.bulkcopy()Issues in cursor.bulkcopy()bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existstriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.under development
Description
Activity
Metadata
Metadata
Assignees
Labels
area: bulk-copyIssues in cursor.bulkcopy()Issues in cursor.bulkcopy()bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existstriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.under development
Describe the bug
Now the service principal authentication is (meant to be) fixed when using bulk copy, I've attempted using it today.
However, I'm finding that bulkcopy freezes when using this authentication method.
Bulk copy does work when using the Default authentication method (and setting the appropriate environment variables which trigger it to use a service principal under the hood). But this explicit ServicePrincipal authentication route seems not to work.
To reproduce
Prerequisities: set the environment variables to the appropriate values.
The same happens for existing tables (ones I haven't created in the same session).
Expected behavior
Bulkcopy should not freeze.
Further technical details
Python version: 3.12.10
SQL Server version: Azure SQL managed instance
Operating system: Windows 11
Additional context
Add any other context about the problem here.