Repository navigation
fix(plan): say batch windows as a count of days, hours or minutes - #386
Merged
Merged
Conversation
plan -v printed a seven-day batch_size as "11 windows of 7days". The commits line now says "11 windows of 7 days", "1 window of 1 day" or "4 windows of 6 hours", as the shorter commits line already said "7-day". The refusal of a files merge into another target names the targets it loads into, DuckDB, MotherDuck and Postgres, without history wording.
Deploying sqlload with
|
| Latest commit: |
1ce958d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://80e47461.sqlload.pages.dev |
| Branch Preview URL: | https://fix-plan-window-length.sqlload.pages.dev |
render.rs passed the 2,000-line limit. window_length and window_span go to time_text, beside the other time wording plan uses.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plan -vprinted a daybatch_sizeas "11 windows of 7days". Thecommitsline now reads "11 windows of 7 days", "1 window of 1 day" or "4 windows of 6 hours", using the same rounding to days, hours or minutes as the short "7-day" form. An integerbatch_sizeis unchanged ("4 windows of 50000").The refusal of a files
merge(ordelete_insertbyreplace_key) into another target drops "so far" and names every target that takes it: "merge from a files source loads only into DuckDB, MotherDuck and Postgres targets, not Snowflake; use append, or delete_insert on a partition cursor". MotherDuck uses the DuckDB adapter, so it was already allowed.loader/tests/test_plan_lines.rscovers 7-day, 1-day, 6-hour and integer windows. It fails on the old code ("7days") and passes with the fix.cargo test -p sqlload --lib -- loader::tests::plan_linesandcargo fmt --check.