{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/7117","repository_url":"https://api.github.com/repos/influxdata/influxdb","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/7117/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/7117/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/7117/events","html_url":"https://github.com/influxdata/influxdb/issues/7117","id":169652251,"number":7117,"title":"[Bug Report] Rewriting deleted records not working","user":{"login":"MikaelGRA","id":908241,"avatar_url":"https://avatars.githubusercontent.com/u/908241?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelGRA","html_url":"https://github.com/MikaelGRA","followers_url":"https://api.github.com/users/MikaelGRA/followers","following_url":"https://api.github.com/users/MikaelGRA/following{/other_user}","gists_url":"https://api.github.com/users/MikaelGRA/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelGRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelGRA/subscriptions","organizations_url":"https://api.github.com/users/MikaelGRA/orgs","repos_url":"https://api.github.com/users/MikaelGRA/repos","events_url":"https://api.github.com/users/MikaelGRA/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelGRA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-05T17:03:16Z","updated_at":"2016-08-06T08:43:10Z","closed_at":null,"body":"### Bug report\r\nI am attempting to use the newly introduced \"DELETE\" operation.\r\n\r\nIf I first write data to a measurement, then delete a range of data in that measurement that includes the data I wrote, and then rewrite the data and attempt to query it again, no data is returned.\r\n\r\nIs this the expected behaviour or a bug?\r\n\r\n__System info:__\r\nInfluxdb 0.13 on Ubuntu\r\n\r\n__Steps to reproduce:__\r\n\r\n```\r\n# create database\r\ncurl -G -X POST http://localhost:8086/query --data-urlencode \"q=CREATE DATABASE mydb\"\r\n\r\n# write a record  to 'data' measurement\r\ncurl -X POST http://localhost:8086/write?db=mydb --data-binary \"data value=61 1293843669000000000\"\r\n\r\n# read the record from the 'data' measurement (this works as expected)\r\ncurl -G http://localhost:8086/query?db=mydb --data-urlencode \"q=SELECT * from data WHERE '2011-01-01' <= time AND time < '2012-01-01'\"\r\n\r\n# delete the record in the 'data' measurement by deleting a range of data\r\ncurl -G http://localhost:8086/query?db=mydb --data-urlencode \"q=DELETE FROM data WHERE '2011-01-01' <= time AND time < '2012-01-01'\"\r\n\r\n# write a record  to 'data' measurement (again)\r\ncurl -X POST http://localhost:8086/write?db=mydb --data-binary \"data value=61 1293843669000000000\"\r\n\r\n# read the record from the 'data' measurement (the record is not returned)\r\ncurl -G http://localhost:8086/query?db=mydb --data-urlencode \"q=SELECT * from data WHERE '2011-01-01' <= time AND time < '2012-01-01'\"\r\n```\r\n\r\n__Expected behavior:__ \r\nWhen I query the record after it has been rewritten, I expect that record to be returned.\r\n\r\n__Actual behavior:__\r\nThe record is not returned."},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/comments/238013162","html_url":"https://github.com/influxdata/influxdb/issues/7117#issuecomment-238013162","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/7117","id":238013162,"user":{"login":"MikaelGRA","id":908241,"avatar_url":"https://avatars.githubusercontent.com/u/908241?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelGRA","html_url":"https://github.com/MikaelGRA","followers_url":"https://api.github.com/users/MikaelGRA/followers","following_url":"https://api.github.com/users/MikaelGRA/following{/other_user}","gists_url":"https://api.github.com/users/MikaelGRA/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelGRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelGRA/subscriptions","organizations_url":"https://api.github.com/users/MikaelGRA/orgs","repos_url":"https://api.github.com/users/MikaelGRA/repos","events_url":"https://api.github.com/users/MikaelGRA/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelGRA/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T08:43:10Z","updated_at":"2016-08-06T08:43:10Z","body":"That guide installs v. 0.13 though :)"}}
{"actor":{"display_login":"MikaelGRA"}}