-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changefeedccl: add option to shard cloudstorage folders
Previously we always bucketed cloudstorage paths into 'folders' delineated by date which described the earliest possible timestamp that could exist in that folder. Ex: topic-name/2021-09-13/file.ndjson A customer with a ton of files wanted the folders to be separated hourly rather than just into dates. Ex: topic-name/2021-0-13/04/file.ndjson This patch adds a `partition_format` query param which allows the user to elect to use the default behaviour with the "daily" value, split it by date/hour/ with the "hourly" value, or not partition at all with the "flat" value So to solve the customer's issue they would add the query parameter partition_format="hourly" Release justification: low risk new ux option Release note (api change): CREATE CHANGEFEED on a CloudStorage sink now allows a new query parameter to specify how the file paths are partitioned, for example partition_format="daily" represents the default behavior of splitting into dates (2021-05-01/), while partition_format="hourly" will further partition them them by hour (2021-05-01/05/), and partition_format="flat" will not partition at all
- Loading branch information
Showing
4 changed files
with
153 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters