Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/prequet file #40

Merged
merged 14 commits into from
Jan 27, 2025
Merged

Feature/prequet file #40

merged 14 commits into from
Jan 27, 2025

Conversation

akvlad
Copy link
Contributor

@akvlad akvlad commented Jan 27, 2025

write & merge parquet files engine

How to use

  1. Run the quackpipe with the parquet ingester enabled:
docker run \
  -e QUACK_PIPE_ENABLED=true \
  -e QUACK_PIPE_ROOT=/data \
  -e QUACK_PIPE_MERGE_TIMEOUT_S=10 \
  -v "$(pwd)/_data:/data" \
  -p 8080:8123 \
  ghcr.io/metrico/quackpipe:latest
  1. Create a "table"
cat <<EOF | curl -X POST http://localhost:8080/quackdb/create --data-binary @/dev/stdin
create_table: test
fields:
  timestamp_ns: INT8
  fingerprint: INT8
  str: STRING
  value: FLOAT8
engine: Merge
order_by:
  - timestamp_ns
timestamp:
  field: timestamp_ns
  precision: ns
partition_by: ""
EOF
  1. Send the data:
cat <<EOF | curl -X POST http://localhost:8080/quackdb/test/insert -H 'Content-Type: application/x-ndjson' --data-binary @/dev/stdin
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
{"timestamp_ns": 1668326823000000000, "fingerprint": 1234567890, "str": "hello", "value": 123.456}
EOF

merge/repository/registry.go Fixed Show fixed Hide fixed
merge/repository/registry.go Fixed Show fixed Hide fixed
merge/service/merge_tree_service.go Fixed Show fixed Hide fixed
merge/service/merge_tree_service.go Fixed Show fixed Hide fixed
merge/service/merge_tree_service.go Fixed Show fixed Hide fixed
@akvlad akvlad merged commit 9f9880a into main Jan 27, 2025
3 checks passed
@akvlad akvlad deleted the feature/prequet-file branch January 27, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants