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

different result between normal and continuous query with "group by" clause #250

Closed
hirose31 opened this issue Feb 12, 2014 · 1 comment
Closed
Assignees
Milestone

Comments

@hirose31
Copy link

Query results of normal and continuous query with "group by" clause are different.

Write following data:

{
  "name": "cqtest",
  "columns": ["time", "reqtime", "url"],
  "points": [
      [0, 8.0, "/login"],
      [0, 3.0, "/list"],
      [0, 4.0, "/register"],
      [5, 9.0, "/login"],
      [5, 4.0, "/list"],
      [5, 5.0, "/register"]
  ]
}

and query, this result is expected.

QUERY:
select mean(reqtime), url from cqtest group by time(10s), url

RESULT:
[
  {
    columns => ["time", "mean", "url"],
    name => "cqtest",
    points => [
      [0, 4.5, "/register"],
      [0, 3.5, "/list"],
      [0, 8.5, "/login"]
    ]
  }
]

then create continuous query similer to above query and query from that series.

CREATE CONTINUOUS QUERY:
select mean(reqtime), url from cqtest group by time(10s), url into cqtest.10s

QUERY:
select * from cqtest.10s

RESULT:
[
  {
    columns => ["time", "sequence_number", "mean", "url"],
    name => "cqtest.10s",
    points => [
      [0, 1, 8.5, "/login"],
    ]
  }
]

This result is different from result of normal query.

@pauldix pauldix added this to the 0.5.0 milestone Feb 16, 2014
@eckardt
Copy link
Contributor

eckardt commented Feb 16, 2014

I ran into the same issue: https://gist.github.com/eckardt/9040576

@toddboom toddboom self-assigned this Feb 20, 2014
jvshahid added a commit that referenced this issue Feb 25, 2014
fixes #132, fixes #103, fixes #65

Merge branch 'master' into create-cluster-interfaces-and-refactor

Conflicts:
	src/api/http/api.go
	src/api/http/api_test.go
	src/coordinator/cluster_configuration.go
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

No branches or pull requests

4 participants