-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove references to SeriesID in DROP SERIES
handlers.
#2624
Conversation
+1 with changelog. |
@@ -1448,9 +1448,6 @@ func (s *ShowSeriesStatement) RequiredPrivileges() ExecutionPrivileges { | |||
|
|||
// DropSeriesStatement represents a command for removing a series from the database. | |||
type DropSeriesStatement struct { | |||
// The Id of the series being dropped (optional) | |||
SeriesID uint64 | |||
|
|||
// Data source that fields are extracted from (optional) | |||
Source Source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't update this with the regex changes a while back but it probably should be changed to Sources Sources
and change parseDropSeriesStatement
to call parseSources
. Or, we should add an argument to parseSource
to disallow regexp.
@@ -2568,8 +2556,7 @@ func (s *Server) executeDropSeriesStatement(stmt *influxql.DropSeriesStatement, | |||
return nil, ErrDatabaseNotFound(database) | |||
} | |||
|
|||
// Get the list of measurements we're interested in. | |||
measurements, err := measurementsFromSourceOrDB(stmt.Source, db) | |||
measurements, err := measurementsFromSourcesOrDB(db, stmt.Sources...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to call expandSources
before calling measurmentsFromSourcesOrDB
+1 |
thanks, guys! |
Remove references to SeriesID in `DROP SERIES` handlers.
Fixes #2563.