Skip to content

#1577: All implementations of Iterable and not just lists should be returned as is when being cast to CQL lists.#1641

Merged
antvaset merged 3 commits intomasterfrom
fix-issue-1577
Nov 20, 2025
Merged

#1577: All implementations of Iterable and not just lists should be returned as is when being cast to CQL lists.#1641
antvaset merged 3 commits intomasterfrom
fix-issue-1577

Conversation

@antvaset
Copy link
Copy Markdown
Contributor

@antvaset antvaset commented Nov 14, 2025

Closes #1577. Closes #1636. Closes #1569.

Currently, when runtime Java lists are cast to CQL's List<T> types, they are returned as is. This should happen for all implementations of Iterable.

This issue can be replicated using the VSCode extension and language server, which use the FederatedDataProvider. In that retrieve provider, everything is correct and it returns an Iterable (FluentIterable). In this fix, the As evaluator now handles Iterables correctly which are not necessarily Java lists.

@github-actions
Copy link
Copy Markdown

Formatting check succeeded!

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 14, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 65.78%. Comparing base (ceccf4c) to head (1fff984).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...rg/opencds/cqf/cql/engine/execution/Environment.kt 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1641      +/-   ##
============================================
+ Coverage     65.76%   65.78%   +0.01%     
  Complexity     1646     1646              
============================================
  Files           472      472              
  Lines         27424    27426       +2     
  Branches       5457     5458       +1     
============================================
+ Hits          18036    18042       +6     
+ Misses         7089     7086       -3     
+ Partials       2299     2298       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@antvaset antvaset enabled auto-merge (squash) November 14, 2025 20:47
@jreyno77 jreyno77 assigned jreyno77 and unassigned jreyno77 Nov 18, 2025
@c-schuler c-schuler self-requested a review November 18, 2025 17:06
Copy link
Copy Markdown
Contributor

@c-schuler c-schuler left a comment

Choose a reason for hiding this comment

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

The quality gate is not passing and it would be nice to see some of the specific examples given in the issues as part of the tests. However, the code looks good to me

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
33.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@antvaset antvaset merged commit e4ae8d4 into master Nov 20, 2025
8 of 9 checks passed
@antvaset antvaset deleted the fix-issue-1577 branch November 20, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

5 participants