Skip to content

Conversation

@suddendust
Copy link
Contributor

Description

This PR adds support for UNNEST on nester arrays in any JSONB column in flat collections.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.10%. Comparing base (1e3c868) to head (ed0aa06).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...1/vistors/PostgresFilterTypeExpressionVisitor.java 66.66% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #244      +/-   ##
============================================
+ Coverage     80.08%   80.10%   +0.01%     
  Complexity     1134     1134              
============================================
  Files           215      215              
  Lines          5484     5488       +4     
  Branches        481      482       +1     
============================================
+ Hits           4392     4396       +4     
  Misses          764      764              
  Partials        328      328              
Flag Coverage Δ
integration 80.10% <84.61%> (+0.01%) ⬆️
unit 57.34% <30.76%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

suresh-prakash
suresh-prakash previously approved these changes Oct 22, 2025
Returns the column name with double quotes if the collection is flat to prevent folding to lower-case by PG
*/
private String getColName(boolean isFlatCollection, String pgColumnName) {
private String shouldQuoteColName(boolean isFlatCollection, String pgColumnName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The new method name seems like it would return a boolean.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! Will fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@suddendust suddendust changed the title Support for unnested for json arrays in flat collections Support for unnest for json arrays in flat collections Oct 22, 2025
@suddendust suddendust changed the title Support for unnest for json arrays in flat collections Support for unnest on json arrays in flat collections Oct 23, 2025
@suddendust suddendust changed the title Support for unnest on json arrays in flat collections Unnest on nested json arrays in flat collections Oct 23, 2025
@suresh-prakash suresh-prakash merged commit 5c2ddf5 into hypertrace:main Oct 27, 2025
6 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