Skip to content

Conversation

@seanwoodward
Copy link
Contributor

Fix #109 and add test

@stephencelis
Copy link
Member

@seanwoodward Sorry for the delay, and thanks for explaining #109 a bit more with this PR.

I think we are inclined to keep the behavior as is. The jsonGroupArray that automatically unwraps values includes this filter automatically, so folks reaching for it should ideally omit the id.isNot(nil) check. If they do include it, the redundant SQL generated should be mostly harmless.

Let us know if you have other thoughts!

@stephencelis
Copy link
Member

Revisiting my comment and I we are inclined to close, but please let me know if I misunderstood the intent of the PR or anything else!

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.

jsonGroupArray emits redundant check for primaryKey not null if specified in filter argument

2 participants