GCP Sink Time Based Partitioning
Examples for GCP Sink Kafka Connector time based partitioning.
Partitioning by Date and Time
Partitioning by Data Date and Hour
Default Confluent Partitioning
<prefix>/<topic>/<encodedPartition>/<topic>+<kafkaPartition>+<startOffset>.<format>transforms=partition
transforms.partition.type=io.lenses.connect.smt.header.InsertRecordTimestampHeaders
transforms.partition.date.format="yyyy-MM-dd-HH"
connect.gcpstorage.kcql=INSERT INTO $bucket:prefix SELECT * FROM kafka_topic PARTITIONBY _header.date STORE AS Xtransforms=partition
transforms.partition.type=io.lenses.connect.smt.header.InsertRecordTimestampHeaders
transforms.partition.year.format="'year='yyyy"
transforms.partition.month.format="'month='MM"
transforms.partition.day.format="'day='dd"
transforms.partition.hour.format="'hour='HH"
connect.gcpstorage.kcql=INSERT INTO $bucket:prefix SELECT * FROM kafka_topic PARTITIONBY _header.year, _header.month, _header.day, _header.hourPartitioning by Year, Month, and Day
Partitioning by Year, Month, Day, Hour, and Minute
Partitioning by Year, Month, Day, and Hour
Partitioning by Date and Hour
Partitioning by Created At Timestamp
Partitioning by Raw Creation Date
Partitioning by Creation Timestamp
Partitioning by Created At Date
Partitioning by Created At Date (Alternate Format)
Partitioning by Creation Date
Partitioning by Data Date
Partitioning by Date and Hour
Last updated
Was this helpful?

