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

Query for exact timestamp causes panic #2487

Closed
tdalzell opened this issue May 4, 2015 · 1 comment · Fixed by #2547
Closed

Query for exact timestamp causes panic #2487

tdalzell opened this issue May 4, 2015 · 1 comment · Fixed by #2547
Assignees
Milestone

Comments

@tdalzell
Copy link

tdalzell commented May 4, 2015

This query works:
SELECT count(msgCount) FROM outbounddata WHERE providerId='1' AND time > now() - 15m

This query causes panic: ( time = vs time > )
SELECT count(msgCount) FROM outbounddata WHERE providerId='1' AND time = now() - 15m

panic: runtime error: integer divide by zero
[signal 0x8 code=0x1 addr=0x6c318d pc=0x6c318d]

goroutine 5120 [running]:
github.com/influxdb/influxdb/influxql.(*MapReduceJob).Execute(0xc20bea8310, 0xc20be318c0, 0xc209290700)
        /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/influxql/engine.go:138 +0x68d
github.com/influxdb/influxdb/influxql.(*Executor).execute(0xc20be79440, 0xc20be318c0)
        /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/influxql/engine.go:774 +0xba
created by github.com/influxdb/influxdb/influxql.(*Executor).Execute
        /root/.gvm/pkgsets/go1.4.2/global/src/github.com/influxdb/influxdb/influxql/engine.go:753 +0x5a

Schema:

{
    "database": "streamDB",
    "retentionPolicy": "default",
    "points": [
        {
            "name": "outbounddata",
            "tags": {
                "providerId": "1",
                "customerId": "xyz"

            },
            "fields": {
                "stream":"stream1",
                           "subscription":"sdfsd1",
                           "msgCount": 1
            }
        }
    ]
}
@tdalzell
Copy link
Author

tdalzell commented May 4, 2015

After digging around some more it looks like this may be related to #2002

@beckettsean beckettsean added this to the 0.9.0 milestone May 5, 2015
@beckettsean beckettsean changed the title Query causes panic Query for exact timestamp causes panic May 5, 2015
@toddboom toddboom modified the milestones: 0.9.0, 0.9.1 May 8, 2015
@toddboom toddboom self-assigned this May 11, 2015
@pauldix pauldix removed the 1 - Ready label May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants