-
Notifications
You must be signed in to change notification settings - Fork 2
Add lazy jq input with wader/gojq (jqresult package) #37
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f704dc1
Add lazy jq input via wader/gojq and jqresult package.
apstndb 126be2a
Address PR review: ioMu, redact drain, RowToJSON, lint CI.
apstndb d730250
Validate lazy rowIter input and add emulator jq tests.
apstndb 6c96b2d
Assert lazy .rows[] emits nothing when rows are redacted.
apstndb 02e1f74
Defer lazy stats in JQValueEach for consistent enumeration.
apstndb af7b656
Fix lazy stats length and reject lazy mode for partitioned DML.
apstndb 3f9b5bd
Use lazyRowsField so captured .rows survives stats drain.
apstndb b273eab
Remove unreachable partitioned DML eager path in lazy branch.
apstndb 1c9713f
Cache lazy rows during streaming and document duplicate .rows usage.
apstndb b2c24ff
Append streamed rows when lazy drain completes stats.
apstndb a4faa64
Encode empty lazy row arrays as [] instead of null.
apstndb e680968
Remove unreachable normalize cases caught by staticcheck.
apstndb c1c7e9c
Implement lazyRowsField array keys/has and use after drain.
apstndb cb47a07
Fix lazy rows snapshot races and repeatable materialization.
apstndb 9b3639c
Align lazy row JSON with eager protojson and preserve .rows[] streaming.
apstndb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package jqresult | ||
|
|
||
| import ( | ||
| "github.com/wader/gojq" | ||
| ) | ||
|
|
||
| // Compile parses filter and returns executable jq code for the given input mode. | ||
| func Compile(filter string, mode InputMode) (*gojq.Code, error) { | ||
| q, err := gojq.Parse(filter) | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| return gojq.Compile(q) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.