-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Updated catalog compaction arg, small pipelines fixes #10743
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "wrangler": patch | ||
| --- | ||
|
|
||
| Changes fileSizeMB->file-size for compaction arg. Small fixes for pipelines commands |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,9 +181,9 @@ export const r2BucketCatalogCompactionEnableCommand = createCommand({ | |
| type: "string", | ||
| demandOption: true, | ||
| }, | ||
| targetSizeMb: { | ||
| "target-size": { | ||
| describe: | ||
| "The target size for compacted files (allowed values: 64, 128, 256, 512)", | ||
| "The target size for compacted files in MB (allowed values: 64, 128, 256, 512)", | ||
| type: "number", | ||
| demandOption: false, | ||
| default: 128, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty sure that by having a default here, this option will never be
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might be totally wrong but in other parts of Wrangler we have a pattern where a value can be configured in both the Wrangler config file but also on the command line.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK I am totally wrong. I see that this option doesn't get merged with other config. So it is all good.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I note that now this value is used in the only call to But since this will always be defined (thanks to the default value) then that function could just take |
||
|
|
@@ -209,7 +209,7 @@ export const r2BucketCatalogCompactionEnableCommand = createCommand({ | |
| config, | ||
| accountId, | ||
| args.bucket, | ||
| args.targetSizeMb | ||
| args.targetSize | ||
| ); | ||
|
|
||
| logger.log( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting that file size is now optional but interval is not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that's correct, since interval_seconds has a default so should always be present