expression: remove redundant warnings when executing SUBTIME (#57508)

This commit is contained in:
Lynn
2024-11-25 11:11:44 +08:00
committed by GitHub
parent 6e22b8cb13
commit eda6cc31e9
3 changed files with 0 additions and 7 deletions

View File

@ -3002,7 +3002,6 @@ func TestIssue48756(t *testing.T) {
))
tk.MustQuery("show warnings").Check(testkit.Rows(
"Warning 1292 Incorrect time value: '120120519090607'",
"Warning 1105 ",
))
}

View File

@ -350,7 +350,6 @@ func (b *builtinAddStringAndDurationSig) vecEvalString(ctx EvalContext, input *c
return err
}
if isNull {
tc.AppendWarning(err)
result.AppendNull() // fixed: false
continue
}
@ -448,7 +447,6 @@ func (b *builtinAddStringAndStringSig) vecEvalString(ctx EvalContext, input *chu
return err
}
if isNull {
tc.AppendWarning(err)
result.AppendNull() // fixed: false
continue
}
@ -991,7 +989,6 @@ func (b *builtinSubStringAndDurationSig) vecEvalString(ctx EvalContext, input *c
return err
}
if isNull {
tc.AppendWarning(err)
result.AppendNull() // fixed: false
continue
}
@ -1089,7 +1086,6 @@ func (b *builtinSubStringAndStringSig) vecEvalString(ctx EvalContext, input *chu
return err
}
if isNull {
tc.AppendWarning(err)
result.AppendNull() // fixed: false
continue
}

View File

@ -269,7 +269,6 @@ func (b *{{.SigName}}) vecEval{{ .Output.TypeName }}(ctx EvalContext, input *chu
return err
}
if isNull {
tc.AppendWarning(err)
{{ template "SetNull" . }}
continue
}
@ -302,7 +301,6 @@ func (b *{{.SigName}}) vecEval{{ .Output.TypeName }}(ctx EvalContext, input *chu
return err
}
if isNull {
tc.AppendWarning(err)
{{ template "SetNull" . }}
continue
}