You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2021/11/23 03:20:05 UTC
[incubator-linkis] branch dev-1.0.3 updated: VarSubstitutionInterceptor get code type bug fix
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.0.3
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.0.3 by this push:
new 68690ca VarSubstitutionInterceptor get code type bug fix
new f5d266a Merge pull request #1106 from zhaoyun006/get-code-type-1.0.3
68690ca is described below
commit 68690ca58a82b07bf37ea66c5152bd6dd4c65176
Author: 赵志强 <赵志强>
AuthorDate: Tue Nov 23 10:22:37 2021 +0800
VarSubstitutionInterceptor get code type bug fix
---
.../linkis/entrance/interceptor/impl/VarSubstitutionInterceptor.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/VarSubstitutionInterceptor.scala b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/VarSubstitutionInterceptor.scala
index 58e81b3..6aff2a0 100644
--- a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/VarSubstitutionInterceptor.scala
+++ b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/VarSubstitutionInterceptor.scala
@@ -37,8 +37,8 @@ class VarSubstitutionInterceptor extends EntranceInterceptor {
case jobRequest: JobRequest =>
Utils.tryThrow {
logAppender.append(LogUtils.generateInfo("Program is substituting variables for you") + "\n")
- val engineType = LabelUtil.getEngineType(jobRequest.getLabels)
- val (result, code) = CustomVariableUtils.replaceCustomVar(jobRequest, engineType)
+ val codeType = LabelUtil.getCodeType(jobRequest.getLabels)
+ val (result, code) = CustomVariableUtils.replaceCustomVar(jobRequest, codeType)
if (result) jobRequest.setExecutionCode(code)
logAppender.append(LogUtils.generateInfo("Variables substitution ended successfully") + "\n")
jobRequest
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org