SQL Expressions: Return error on malformed input (#110479)
Fixup on a misleading error being returned due to a missing return statement in the code. Was returning the error "conversion succeeded but no frames" even though there was an error.
This commit is contained in:
1 parent
099a43aa10
commit
d97836f407
2 files changed
+12
No files matched your search
@@ -378,6 +378,7 @@ func handleSqlInput(ctx context.Context, tracer trace.Tracer, refID string, forR
|
||||
convertedFrames, err := ConvertToFullLong(dataFrames)
|
||||
if err != nil {
|
||||
result.Error = sql.MakeInputConvertError(err, refID, forRefIDs, dsType)
|
||||
return result, true
|
||||
}
|
||||
|
||||
if len(convertedFrames) == 0 {
|
||||
|
||||
Reference in new issue
Block a user