Skip to content

fix jq path to match postgresql lax jsonpath for load-legacy-tests - #235

Merged
stalep merged 1 commit into
Hyperfoil:mainfrom
willr3:issue_230_fix_lax_sql_to_jq
Aug 4, 2026
Merged

fix jq path to match postgresql lax jsonpath for load-legacy-tests#235
stalep merged 1 commit into
Hyperfoil:mainfrom
willr3:issue_230_fix_lax_sql_to_jq

Conversation

@willr3

@willr3 willr3 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

This fixes issue #230 by changing how jq operations are created for Horreum extractor paths. The new jq operations will check each key in a chain of keys to handle the auto array expansion that occurs in postgresql lax jsonpath.

@willr3
willr3 force-pushed the issue_230_fix_lax_sql_to_jq branch 4 times, most recently from fca15b8 to c13bc4b Compare August 4, 2026 14:37

@stalep stalep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, I just had two minor comments

TransactionManager tm;

@Test
public void workers(){

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This could be removed I think.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed along with the unused valueService

LoadLegacyTests.Extractor results = new LoadLegacyTests.Extractor("results","$.results.*",true);
LoadLegacyTests.Label label = new LoadLegacyTests.Label(-1,"Autobench",
"v => v[\"results\"].reduce((a,b) => a+b) / v[\"results\"].length",
"v => v[\"results\"].reduce((a,b) => a+b) / v[\"results\"].stop",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why was this changed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

because I failed with the scope of a variable rename and thought I fixed them all but missed one :)

@willr3
willr3 force-pushed the issue_230_fix_lax_sql_to_jq branch from c13bc4b to 1cbb905 Compare August 4, 2026 17:18
@stalep
stalep merged commit 1bbb596 into Hyperfoil:main Aug 4, 2026
2 checks passed
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