Skip to content
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

feat: JQ Processor #88

Merged
merged 6 commits into from
Mar 23, 2023
Merged

feat: JQ Processor #88

merged 6 commits into from
Mar 23, 2023

Conversation

jshlbrd
Copy link
Collaborator

@jshlbrd jshlbrd commented Mar 22, 2023

Description

  • Adds a JQ processor

Motivation and Context

This started as an experiment to see how difficult it would be to add jq support -- I think it's worth merging because jq provides coverage for data transformations not yet implemented as processors.

How Has This Been Tested?

Added new unit tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@jshlbrd jshlbrd marked this pull request as ready for review March 22, 2023 18:28
@jshlbrd jshlbrd requested a review from a team as a code owner March 22, 2023 18:28
process/jq.go Outdated
}

var arr []interface{}
iter := query.Run(i)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like RunWithContext might be a better API to use here passing in the batches context?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 👍

@jshlbrd jshlbrd merged commit 0adf249 into main Mar 23, 2023
@jshlbrd jshlbrd deleted the jshlbrd/feat/jq-processor branch March 23, 2023 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants