Parquet
Apache Parquet is an open-source, column-oriented data file format designed for efficient data storage and retrieval. It forms the backbone of many datalake and table format systems.
Last updated
Was this helpful?
Was this helpful?
export BOOTSTRAP_HOST=<YOUR_BOOTSTRAP_BROKER> \
SASL_USERNAME=<YOUR_SASL_USERNAME> \
SASL_PASSWORD=<YOUR_SASL_PASSWORD>;input:
kafka_franz:
consumer_group: bento_parquet
commit_period: 1s
start_from_oldest: true
tls:
enabled: true
sasl:
- mechanism: PLAIN
username: "${SASL_USERNAME}"
password: "${SASL_PASSWORD}"
seed_brokers:
- <YOUR_WARPSTREAM_BOOTSTRAP_URL>:9092
topics:
- products
output:
broker:
pattern: fan_out
batching:
count: 1000
processors:
- parquet_encode:
default_compression: zstd
default_encoding: PLAIN
schema:
- name: productId
type: BYTE_ARRAY
- name: name
type: BYTE_ARRAY
- name: price
type: DOUBLE
- name: inventoryCount
type: INT64
outputs:
- file:
path: 'warp/${! timestamp_unix() }-${! uuid_v4() }.parquet'
codec: all-bytes1724970577-71fde68c-7a04-45c1-8b4f-6a7461060ef7.parquet
1724970589-3da21d72-a2e0-4c4d-95b0-329bd0912621.parquet
1724970577-97967e71-cc23-44b0-9f61-c2873f0b1c98.parquet
1724970589-71ec2ec2-23ba-4b43-b5b6-8ee14aed3df2.parquetSELECT count(*) FROM '1724970589-71ec2ec2-23ba-4b43-b5b6-8ee14aed3df2.parquet';