Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

PlyQL through JDBC doesn't return updated data #44

Closed
fedecasanova72 opened this issue Jun 22, 2016 · 2 comments
Closed

PlyQL through JDBC doesn't return updated data #44

fedecasanova72 opened this issue Jun 22, 2016 · 2 comments

Comments

@fedecasanova72
Copy link

If I'm not doing anything incorrectly, here's what happens:

I'm ingesting 80 million rows to Druid through Kafka. In the meantime, I want to start querying them.

Let's just check how many rows are already indexed.

plyql -h IPADDRESS -q 'SELECT count(*) as cnt FROM content_log'

Result: (correct).

┌─────────┐
│ cnt     │
├─────────┤
│ 3706116 │
└─────────┘

Previously I started the PlyQL MySQL gateway.

plyql -h your.druid.broker:8082 -i P2Y --experimental-mysql-gateway 3307

And if I run the same query in a Java app with JDBC, the result is: 999756. And it hasn't change since the gatewat start.

Do you know this problem?

@fedecasanova72
Copy link
Author

#38

Just found out there's already an issue opened about this.

@vogievetsky
Copy link
Member

vogievetsky commented Jul 14, 2016

Hi when you start plyql with -i P2Y it is the same as saying -i P2Y/<current date> i.e. explicitly constrain the query to the last 2 years from now. You can omit -i P2Y or set it to -i P40Y/2020-01-01 or maybe the year 3000

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

No branches or pull requests

2 participants