Skip to content

fix: Handle calculations on data layers that disallow filters#2682

Open
Munksgaard wants to merge 1 commit intoash-project:mainfrom
Munksgaard:fix/resolve-call-predicate-arguments
Open

fix: Handle calculations on data layers that disallow filters#2682
Munksgaard wants to merge 1 commit intoash-project:mainfrom
Munksgaard:fix/resolve-call-predicate-arguments

Conversation

@Munksgaard
Copy link
Copy Markdown
Contributor

@Munksgaard Munksgaard commented Apr 21, 2026

Previously, adding calculations using is_nil on resources in data layers that
didn't support filtering, such as the one in the included test, the following
error was returned (at compile time if using :auto as the type, at runtime if
using :boolean as the type):

key :arguments not found in: is_nil(bookedInvoiceId)

Fix: remove the predicate exclusion from the hydrate_refs branch in
resolve_call. do_hydrate_refs already handles predicates correctly.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Previously, adding calculations using `is_nil` on resources in data layers that
didn't support filtering, such as the one in the included test, the following
error was returned (at compile time if using `:auto` as the type, at runtime if
using `:boolean` as the type):

    key :arguments not found in: is_nil(bookedInvoiceId)

Fix: remove the predicate exclusion from the hydrate_refs branch in
resolve_call. do_hydrate_refs already handles predicates correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Munksgaard Munksgaard changed the title fix: handle predicates returned by Function.new in resolve_call fix: Handle calculations on data layers that disallow filters Apr 21, 2026
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