clickhouse-table
Version, currently 0.3.03 versions
- 0.3.1latestSep 30, 2018
- 0.3.0not indexedJul 7, 2020
- 0.2.0not indexedJul 7, 2020
github.com/maiha/clickhouse-table
A standalone ClickHouse table manager that provides partial data updates
Nothing has been indexed for 0.3.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
clickhouse-table:
github: maiha/clickhouse-table
version: ~> 0.3.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.3.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
clickhouse-table 
A standalone ClickHouse table manager that provides partial data updates.
$ clickhouse-table create merge
$ clickhouse-table insert 20180924 diff.csv
$ clickhouse-table replace 20180924 full.csv
Features
- create table schema
- insert table data
- replace table data
- visualization of commands by dry-run ("-n" option)
Assumes
- client:
clickhouse-client - engine:
MergeTree - table:
Merge - range of update: daily
Architecture
tables
logs # Merge('^logs_')
logs_20180922 # MergeTree
logs_20180923 # MergeTree
logs_20180924 # MergeTree
- table name
logsis set byconfig:table
replace
DROP TABLE logs_20180924
CREATE TABLE logs_20180924
INSERT INTO logs_20180924 FORMAT CSV
Installation
Static Binary is ready for x86_64 linux
- https://github.com/maiha/clickhouse-table/releases
Usage
configure
First, create a new config file.
Then, set schema settings about table, column, engine.
$ clickhouse-table config sample > .clickhouse-table.toml
$ vi .clickhouse-table.toml
Or, you can generate config from existing table.
$ clickhouse-table config from default.logs -n
clickhouse-client -d default --query='SHOW CREATE TABLE logs FORMAT CSV'
$ clickhouse-table config from default.logs > .clickhouse-table.toml
insert data
Invoke insert command for daily operation.
This accumulates the data each operations.
$ clickhouse-table insert 20180924 data.csv -n
clickhouse-client --query='INSERT INTO logs_20180924 FORMAT CSV' < data.csv
replace data
Invoke replace command for correction batch.
This replaces the data for the day.
$ clickhouse-table replace 20180924 data.csv
Development
$ make test
Contributing
- Fork it (https://github.com/maiha/clickhouse-table/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- maiha maiha - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3.0- Tagged
- Jul 7, 2020
- Commit
d8885af35037- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/maiha/clickhouse-table
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 3