chdb icon indicating copy to clipboard operation
chdb copied to clipboard

Enable remote ClickHouse access via chDB capabilities in clickhouse-connect

Open wudidapaopao opened this issue 10 months ago • 3 comments

Add chDB compatibility to clickhouse-connect, enabling users to access remote ClickHouse instances via chDB's capabilities directly in clickhouse-connect.

wudidapaopao avatar Jan 22 '26 10:01 wudidapaopao

Looking forward to the development of this feature

a819721810 avatar Mar 18 '26 02:03 a819721810

@a819721810 Just to confirm: are you currently using clickhouse-connect and hoping to leverage chDB's capabilities within it?

wudidapaopao avatar Mar 18 '26 07:03 wudidapaopao

@a819721810 Just to confirm: are you currently using clickhouse-connect and hoping to leverage chDB's capabilities within it?

yes, for example,

ds = DataStore.from_clickhouse(
            host=f"{HOST}:{PORT_TCP}",
            database=DATABASE,
            table=TABLE,
            user=USER,
            password=PASSWORD,
        )
        result = (
            ds[ds['date'] == DATE][ds['time_int'] <= TIME_INT_MAX]
            .sort_values(['date_time', 'chno', 'seqno'])
        )
        df = result.to_pandas()

df using clickhouse-connect insert_df to insert into clickhouse

a819721810 avatar Mar 18 '26 08:03 a819721810