Skip to content

Remove dead jqresult API surface left over from input-mode split#76

Open
apstndb wants to merge 1 commit into
mainfrom
chore/cleanup-jqresult
Open

Remove dead jqresult API surface left over from input-mode split#76
apstndb wants to merge 1 commit into
mainfrom
chore/cleanup-jqresult

Conversation

@apstndb

@apstndb apstndb commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Drop the unused mode parameter from jqresult.Compile and update all call sites.
  • Simplify NormalizeForEncode by removing the redundant isEncodeLeaf branch.
  • Remove the unreachable readWrite case in runJqOutput and document that read-write DML always uses eager jq materialization.

Part of #74.

Test plan

  • make lint
  • make test (including emulator integration tests)

Made with Cursor

Compile never used its mode argument, NormalizeForEncode had a no-op
branch, and runJqOutput's read-write case was unreachable after eager
materialization was forced for DML.

Co-authored-by: Cursor <cursoragent@cursor.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the jqresult.Compile function by removing the unused InputMode parameter and updating all its call sites across tests and main execution paths. Additionally, it cleans up jqresult/normalize.go by removing unused imports and the redundant isEncodeLeaf helper function, as the default switch case already handles those types identically. In main.go, a redundant panic case for readWrite mode has been removed and replaced with an explanatory comment. I have no further feedback to provide as the changes are clean and simplify the codebase.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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.

1 participant