We are running into an issue when uploading Python files using the method import_workspace_dir in the WorkspaceApi class. However, these files are not treated as Python source files, but as Databricks notebooks.
The only reason I managed to pinpoint this issue is the fact that the API removes the extension and as such they are no longer interpreted as Python modules but as Databricks notebooks.
|
cur_dst = cur_dst[:-len(ext)] |
Is this intended behaviour? could this be changed by not removing the file extension, unless the file is actually a Databricks notebook?
We are running into an issue when uploading Python files using the method
import_workspace_dirin theWorkspaceApiclass. However, these files are not treated as Python source files, but as Databricks notebooks.The only reason I managed to pinpoint this issue is the fact that the API removes the extension and as such they are no longer interpreted as Python modules but as Databricks notebooks.
databricks-cli/databricks_cli/workspace/api.py
Line 153 in 5c38791
Is this intended behaviour? could this be changed by not removing the file extension, unless the file is actually a Databricks notebook?