BlazingDB / blazingsql

BlazingSQL is a lightweight, GPU accelerated, SQL engine for Python. Built on RAPIDS cuDF.
https://blazingsql.com
Apache License 2.0
1.93k stars 183 forks source link

connect to blazingSQL with a tool like redash #1520

Open fcomte opened 3 years ago

fcomte commented 3 years ago

I use spark and sometimes I use the spark thrift and query it from redash to visualize my data. It could be interesting to publish table inside blazing to the outside world with a standard SQL interface.

Is there an solution to query a blazing engine / context from the outside world ?

felipeblazing commented 3 years ago

It is pretty easy to make something like a flask app that provides a json interface by taking input that is either a query itself or converts your request into a query and then you just do something along the lines of:

def handle_request(...):
    return bc.sql(query).to_json()