PRQL / prql

PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement
https://prql-lang.org
Apache License 2.0
9.84k stars 216 forks source link

[Integration] Use PRQL to query log data #1672

Open nitisht opened 1 year ago

nitisht commented 1 year ago

Hi there!

Parseable is an open source, log storage and query platform written in Rust. Parseable support SQL as the query interface.

PRQL seems to be a great way to get insight from log data. Is there a way we could integrate and may be even have a hosted playground that sends PRQL to SQL query to the demo parseable server (login with parseable, parseable)

max-sixty commented 1 year ago

Hi @nitisht

Parseable looks great! I'd heard of it on the grapevine though haven't used it yet.

I think this could be quite a good fit, and I'd be happy to work together.

I can see a few ways of doing this:

I haven't looked at the server yet, but I imagine this would be possible with any of those.

Let us know your thoughts. If it would be helpful, happy to speak at the end of next week.

nitisht commented 1 year ago

Hey @max-sixty thank you so much for the detailed response. All great ideas :)

IMHO

Integrated: add a feature to the Parseable server so it can compile PRQL to SQL internally, and so could accept PRQL as a lang. That would be (optimistically) a dozen lines of code given we're both in rust, and could be an optional cargo feature.

Seems the best approach in the longer run. To start with, I was thinking taking the first approach, - A simple cli tool to write PRQL in the terminal to be executed against a Parseable server instance.

If it would be helpful, happy to speak at the end of next week.

It would be great to talk and discuss further. Would you please send a note to nitish at parseable dot io. We can setup a time..

snth commented 1 year ago

To start with, I was thinking taking the first approach, - A simple cli tool to write PRQL in the terminal to be executed against a Parseable server instance.

I haven't followed this discussion in detail but just a quick note that prql-query has a fairly modular backend architecture so perhaps you just provide a Parseable backend for it?

Logs are a more specific use case so it might make sense to have a more specialised tool for that but in case that prql-query might be enough I just wanted to make you aware of it.

nitisht commented 1 year ago

Thanks @snth . Checking it out now.