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:
@@ -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