Skip to content

Commit

Permalink
Add more
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanahuckova committed Nov 5, 2024
1 parent b274d3f commit cf52d07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/time_series.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func WideToLong(wideFrame *Frame) (*Frame, error) {
if err != nil {
return nil, err
} else if wideLen == 0 {
return nil, fmt.Errorf("can not convert to long series, input fields have no rows")
return nil, ErrInputFieldsWithoutRows
}

var uniqueValueNames []string // unique names of Fields that are value types
Expand Down
1 change: 1 addition & 0 deletions data/time_series_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "errors"
var (
ErrorNullTimeValues = errors.New("unable to process the data to wide series because input has null time values, make sure all time values are not null")
ErrorSeriesUnsorted = errors.New("unable to process the data because it is not sorted in ascending order by time, please updated your query to sort the data by time and try again")
ErrInputFieldsWithoutRows = errors.New("can not convert to long series, input fields have no rows")
)


0 comments on commit cf52d07

Please sign in to comment.