chdb-io / chdb

chDB is an in-process OLAP SQL Engine 🚀 powered by ClickHouse
https://clickhouse.com/chdb
Apache License 2.0
2.13k stars 75 forks source link

RowBinary #106

Closed ruslandoga closed 1 year ago

ruslandoga commented 1 year ago

👋

Is it possible to insert RowBinary using sessions? Right now the following query hangs as I don't know how to provide it with the data:

from chdb import session as chs
s = chs.Session()
s.query("create database dev")
s.query("create table dev.example(a UInt64) engine MergeTree order by tuple()")
s.query("insert into dev.example format RowBinary")
ruslandoga commented 1 year ago

I guess the current approach is to just encode it into the insert statement.