apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.45k stars 3.7k forks source link

Cannot find data if big number used in where clause #8602

Closed Vaduz closed 5 years ago

Vaduz commented 5 years ago

I get Query returned no data error when I specify big number in where clause at query console ui.

Affected Version

0.16.0

Description

Cluster size

Configurations in use

Steps to reproduce the problem

Query like this:

SELECT * FROM table WHERE id = 9223372036854775807

You'll see Query returned no data error

We can find and verify data that are stored properly if I don't use where clause.

SELECT * FROM table LIMIT 100

And group by query also works.

SELECT id, COUNT(*) FROM table GROUP BY id

This query returns count of big number rows.

vogievetsky commented 5 years ago

What is the type of the id column?

Vaduz commented 5 years ago

It's long.

vogievetsky commented 5 years ago

I just tried this and I can not repro:

image

And then:

image

Are there more filters in your query? Anything that could provide hints.

Vaduz commented 5 years ago

Sorry, the original number I posted was too small. Please try much bigger number like: 9223372036854775807

Vaduz commented 5 years ago

I figured out cause of this problem. So I created an another issue #8617. Please check.