apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.3k stars 1.17k forks source link

环境变量设置无效(The environment variable setting is invalid) #456

Closed fatsheng closed 2 years ago

fatsheng commented 4 years ago

Describe the bug 通过filesystem/saveScript接口保存参数params: {variable: {}, configuration: {runtime: {datasource: "c3384a76-e21b-45b3-ab13-0209981f8513"}}}后无法通过filesystem/openFile取回参数

产生原因如下: Linkis/storage/storage/src/main/scala/com/webank/wedatasphere/linkis/storage/script/VariableParser.getMap(VariableParser.scala:75)判断逻辑有误

if(vars.size() >0)params += CONFIGURATION -> confs

To Reproduce 通过filesystem/saveScript接口保存参数params: {variable: {}, configuration: {runtime: {datasource: "c3384a76-e21b-45b3-ab13-0209981f8513"}}}

Expected behavior 通过filesystem/openFile取回参数params: {variable: {}, configuration: {runtime: {datasource: "c3384a76-e21b-45b3-ab13-0209981f8513"}}}

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

peacewong commented 3 years ago

Yes, this is a bug, you can submit a PR to the branch dev-0.11.0