Skip to content
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

Merged
merged 6 commits into from
May 21, 2015

Conversation

toddboom
Copy link
Contributor

Fixes #2563.

@corylanou
Copy link
Contributor

+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
Copy link
Contributor

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...)
Copy link
Contributor

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

@dgnorton
Copy link
Contributor

+1

@toddboom
Copy link
Contributor Author

thanks, guys!

toddboom added a commit that referenced this pull request May 21, 2015
Remove references to SeriesID in `DROP SERIES` handlers.
@toddboom toddboom merged commit 37c47e3 into master May 21, 2015
@toddboom toddboom deleted the fix-2563-remove-drop-series-id branch May 21, 2015 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update DROP SERIES to function without series ID but with FROM and WHERE clauses
3 participants