Skip to content

Commit

Permalink
fix print error log
Browse files Browse the repository at this point in the history
  • Loading branch information
aiceflower committed Jul 25, 2023
1 parent 5241a5e commit 7159178
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ class MDQPostExecutionHook extends SparkPostExecutionHook with Logging {
case l: CodeLanguageLabel => l.getCodeType
case _ => ""
}
if (StringUtils.isEmpty(runType) || !SparkKind.FUNCTION_MDQ_TYPE.equalsIgnoreCase(runType)) {
val linkisVar = "val linkisVar=1"
if (
StringUtils.isEmpty(runType) || !SparkKind.FUNCTION_MDQ_TYPE.equalsIgnoreCase(
runType
) || (code != null && code.contains(linkisVar))
) {
return
}
val sender = Sender.getSender(SparkConfiguration.MDQ_APPLICATION_NAME.getValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ class MDQPreExecutionHook extends SparkPreExecutionHook with Logging {
case _ =>
""
}
if (StringUtils.isEmpty(runType) || !SparkKind.FUNCTION_MDQ_TYPE.equalsIgnoreCase(runType)) {
val linkisVar = "val linkisVar=1"
if (
StringUtils.isEmpty(runType) || !SparkKind.FUNCTION_MDQ_TYPE.equalsIgnoreCase(
runType
) || (code != null && code.contains(linkisVar))
) {
return code
}
val sender = Sender.getSender(SparkConfiguration.MDQ_APPLICATION_NAME.getValue)
Expand Down

0 comments on commit 7159178

Please sign in to comment.