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

v0.10 order by problem #5883

Closed
zhang8h opened this issue Mar 2, 2016 · 1 comment
Closed

v0.10 order by problem #5883

zhang8h opened this issue Mar 2, 2016 · 1 comment

Comments

@zhang8h
Copy link

zhang8h commented Mar 2, 2016

select * from c201 where time<1456898400s and time>1456894800s

select * from c201 where time<1456898400s and time>1456894800s  order by time desc

The results they get are not the same

request:

select * from c201 where time<1456898400s and time>1456894800s

response:

{
    "results": [
        {
            "series": [
                {
                    "name": "c201",
                    "columns": [
                        "time",
                        "temperature"
                    ],
                    "values": [
                        [
                            "2016-03-02T05:06:44Z",
                            17.51
                        ],
                        [
                            "2016-03-02T05:16:44Z",
                            17.52
                        ],
                        [
                            "2016-03-02T05:26:44Z",
                            17.51
                        ],
                        [
                            "2016-03-02T05:36:44Z",
                            17.51
                        ],
                        [
                            "2016-03-02T05:46:44Z",
                            17.52
                        ],
                        [
                            "2016-03-02T05:56:44Z",
                            17.52
                        ]
                    ]
                }
            ]
        }
    ]
}

request:

select * from c201 where time<1456898400s and time>1456894800s order by time desc

response:

{
    "results": [
        {
            "series": [
                {
                    "name": "c201",
                    "columns": [
                        "time",
                        "temperature"
                    ],
                    "values": [
                        [
                            "2016-03-02T05:16:44Z",
                            17.52
                        ],
                        [
                            "2016-03-02T05:06:44Z",
                            17.51
                        ]
                    ]
                }
            ]
        }
    ]
}

Not all have this problem

@rossmcdonald
Copy link
Contributor

This is a duplicate of #4944. The query engine underwent a large refactor for the 0.11 release with #5196, so this issue should no longer occur with the latest nightlies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants