Query DRUID in Scala using plyql

Hi,

I am trying to query my local Druid in Scala using Plyql; I am unable to do so. I have regular SQL queries coming in as input and have to use them without transformations to query Druid. Could you please guide?

This is the query which is working on terminal
“plyql -h localhost:8082 -q ‘SELECT page as pg, count() as cnt from wikipedia GROUP BY page ORDER BY cnt DESC LIMIT 5’”

now I have to use it in Scala.

Thanks,
Tushar

Hey Tushar,

Would you consider using Druid SQL instead of PlyQL: http://druid.io/docs/latest/querying/sql

It’s more modern, and built-in.

Sure, will check that out. Thanks