databricks/databricks-cli

Databricks workspace import and import_dir should support importing non-code files like images

Opened this issue · 2 comments

Right now it seems databricks workspace import commands only consider code files and require a language.

However this makes things difficult for example if I have a project with notebooks that reference images in a relative path, and I want to import the entire project as the notebook + images using the same path.

It seems this is already supported as in the UI you can already import an image and it just works, so this is likely just a limitation of the CLI.

See also #618

Databricks has deprecated the storage of cluster init scripts in DBFS, suggesting that they instead be stored in Workspace. This feature would therefore also be useful for managing the import of shell scripts into Workspace via scripts and pipelines using the Databricks CLI, which facilitates making this update across multiple environments.