Skip to content
/ chdb Public
forked from chdb-io/chdb

chDB is an in-process SQL OLAP Engine powered by ClickHouse

License

Notifications You must be signed in to change notification settings

nmreadelf/chdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build PyPI Monthly Downloads Twitter

chDB

chDB is an in-process SQL OLAP Engine powered by ClickHouse

Table of Contents

Features

  • In-process SQL OLAP Engine, powered by ClickHouse
  • No need to install ClickHouse
  • Minimized data copy from C++ to Python with python memoryview
  • Input&Output support Parquet, CSV, JSON, Arrow, ORC and more

Arch

Installation

Currently, chDB only supports Python 3.7+ on macOS(x86_64 and ARM64) and Linux.

pip install chdb

Usage

Currently, chDB only supports query function, which is used to execute SQL and return desired format data.

import chdb
res = chdb.query('select version()', 'CSV'); print(str(res.get_memview().tobytes()))

work with Parquet or CSV

chdb.query('select * from file("data.parquet", Parquet)', 'CSV')
chdb.query('select * from file("data.csv", CSV)', 'CSV')

pandas dataframe output

chdb.query('select * from file("data.parquet", Parquet)', 'Dataframe')

more examples, please refer to examples

Documentation

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. There are something you can help:

  • Report bugs on GitHub Issues.
  • Help me with Windows support, I don't know much about Windows toolchain.
  • The Python Wrapper just have a query function. I want to add more functions to make it more convenient to use. like toPandas, toNumpy and so on.

License

AGPL-v3.0 or Commercial License, see LICENSE for more information.

Acknowledgments

chDB is mainly based on ClickHouse for trade mark and other reasons, I named it chDB.

Contact

About

chDB is an in-process SQL OLAP Engine powered by ClickHouse

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.8%
  • Assembly 6.5%
  • CMake 1.0%
  • Shell 0.4%
  • Go 0.4%
  • C 0.4%
  • Other 0.5%