Skip to content

v1.2.0-alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@akvlad akvlad released this 27 Jan 17:43
· 4 commits to main since this release
9f9880a

What's Changed

How to use

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

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

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

Full Changelog: v1.1.3...v1.2.0-alpha