mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
df7d5ca2d8
commit
dda138fa63
|
@ -47,7 +47,12 @@ func (w *workspaceFilesExtensionsClient) getNotebookStatByNameWithExt(ctx contex
|
|||
nameWithoutExt := strings.TrimSuffix(name, string(ext))
|
||||
|
||||
// File name does not have an extension associated with Databricks notebooks, return early.
|
||||
if _, ok := notebook.ExtensionToLanguage[ext]; !ok {
|
||||
if !slices.Contains([]notebook.Extension{
|
||||
notebook.ExtensionPython,
|
||||
notebook.ExtensionR,
|
||||
notebook.ExtensionScala,
|
||||
notebook.ExtensionSql,
|
||||
notebook.ExtensionJupyter}, ext) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ var ExtensionToLanguage = map[Extension]workspace.Language{
|
|||
ExtensionSql: workspace.LanguageSql,
|
||||
|
||||
// The platform supports all languages (Python, R, Scala, and SQL) for Jupyter notebooks.
|
||||
ExtensionJupyter: workspace.LanguageUnknown,
|
||||
}
|
||||
|
||||
func GetExtensionByLanguage(objectInfo *workspace.ObjectInfo) Extension {
|
||||
|
|
Loading…
Reference in New Issue