Repository navigation
src/cosmos: a cosmos sql source with a query file, day window and shaping (0.8.0) - #17
Merged
Merged
Conversation
…0) (refs #16) the query comes from Query or an InputFile in the job directory. @day, @from and @to are the day a run reports (AS_OF, or yesterday) and a Days window ending with it, sent only when the query uses them. Fresh stops the run when the container's last load is too old. a record gets every column any record has, so a missing value is an empty cell, not a shifted file. Formats, Map, Sort and Drop do what the rest gateway cannot: date formats, code to name maps, and order by across partitions.
royashbrook
force-pushed
the
16-cosmos-source
branch
from
October 14, 2026 15:56
0fe75ae to
1969252
Compare
royashbrook
marked this pull request as ready for review
October 14, 2026 17:53
Owner
Author
|
the corrected head is my offline rerun passes 144 acceptance checks, helper pins, capability inventory and negative/CRLF checks. all six current CI checks are green. no live provider call or consumer change. merge and release remain held for the fresh exact-head review of this small delta. |
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.
adds a cosmos source,
src/cosmos. it posts cosmos sql over rest with the account key, so no sdk on the runner. 0.8.0.a feed keeps its query in
get-data.sql, same as a sql feed. setInputFile, or put it inline inQuery. if the query uses@day,@fromor@to, those go in too.@dayis AS_OF or yesterday.@fromand@toare aDayswindow ending with it.Freshstops the run if the container's last load is too old.cosmos drops a value it doesn't have from that record. so every record gets every column, empty if missing, and a file never shifts.
the rest gateway won't do aggregates or order by across partitions. cosmos sql has no date formats or lookups by a computed key either. so
Formats,Map,SortandDropdo those after the read.tested: acceptance passes, 144 checks. new cosmos checks fail on the first draft. i ran sixteen feeds against their current readers for ten days, read only. every day matched byte for byte.
refs #16
🤖 Generated with Claude Code
https://claude.ai/code/session_01Jub9tSz3bzXLyvDJ6iUd2F