Error: Running Python code is not allowed when DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION is set

未关闭
#2,968 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go, python
领域
cli

调研方向

使用 experimental_job_as_code 模板重现该问题:运行 databricks bundle init,在 Databricks UI 中打开 bundle,并检查 Deployments 选项卡。将其行为与 PR #2598 引入的限制进行比较;当 UI 显示将要生成的对象列表,而不是 Python 执行错误时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

DABs No Autoclose
Describe the issue

When running a DAB which is job as code using the Databricks UI, the following error is thrown:
Error: Running Python code is not allowed when DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION is set
This is introduced by https://github.com/databricks/cli/pull/2598

Configuration

Create a DAB from the job as code template and try to run it using the Databricks UI

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. In a Datzbricks terminal, run databricks bundle init, select experimental_job_as_code as template
  2. Open the created DAB in the Databricks UI
  3. Open the Deployments tab
  4. See error: Error: Running Python code is not allowed when DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION is set
Expected Behavior

A list of to be generated objects should be shown

Actual Behavior

The error appears

OS and CLI version

No compute is selected. This runs on Databricks infrastructure

Is this a regression?

This is introduced by https://github.com/databricks/cli/pull/2598

Debug Logs
主要语言
Go
星标
427
派生
267
平均合并
2 天 1 小时
30 天内合并 PR
233

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

databricks/cli 的其他 Issue

查看 databricks/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。