When trying to use `dbutils.fs.cp` in the #databricks-connect #databricks-connect context to upload files to Azure Datalake Gen2 I get a malformed URI error
I have used the code provided here:
https://learn.microsoft.com/en-gb/azure/databricks/dev-tools/databricks-connect/python/databricks-ut...
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
path = r"abfss://bronze@devstorageacc.dfs.core.windows.net/test/"
w.dbutils.fs.cp('dbfs:/config.json', path)
Error:
```databricks.sdk.errors.mapping.InvalidParameterValue: java.net.URISyntaxException: Relative path in absolute URI: abfss:%5Cbronze@devstorageacc.dfs.core.windows.net%5Ctest```
The standard `dbutils.fs.cp` works on the cluster without problems. I have positively confirmed access rights.
Possibly it is a known issue described here: databricks-connect : Relative path in absolute URI ยท Issue #2883 ยท sparklyr/sparklyr (github.com)