Skip to content

test: improve array_distance sqllogictest coverage - #23971

Closed
2010YOUY01 wants to merge 1 commit into
apache:mainfrom
2010YOUY01:codex/coverage-array-distance
Closed

test: improve array_distance sqllogictest coverage#23971
2010YOUY01 wants to merge 1 commit into
apache:mainfrom
2010YOUY01:codex/coverage-array-distance

Conversation

@2010YOUY01

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #.

Rationale for this change

Codecov reports low test coverage for this function, so this PR adds more SLT tests for it.

The tests were AI-generated, and I manually verified that the results are correct.

See Codecov bot comment -> ☔ View full report in Codecov by Harness -> Indirect Changes for the updated test coverage.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@2010YOUY01
2010YOUY01 marked this pull request as draft July 29, 2026 09:38
----
NULL NULL

# nested large-list inputs and nested nulls on either side

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm unsure about this behavior, need some further investigation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It should be a bug, array_distance() should only support 1-D array, multi-dimensional array distance should not be supported.

I'll open a fix later.

@github-actions github-actions Bot added the sqllogictest SQL Logic Tests (.slt) label Jul 29, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.75%. Comparing base (02a902c) to head (2ea617f).
⚠️ Report is 113 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23971      +/-   ##
==========================================
+ Coverage   80.71%   80.75%   +0.04%     
==========================================
  Files        1089     1096       +7     
  Lines      368293   373282    +4989     
  Branches   368293   373282    +4989     
==========================================
+ Hits       297250   301439    +4189     
- Misses      53332    53863     +531     
- Partials    17711    17980     +269     

☔ View full report in Codecov by Harness.
📢 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.

@2010YOUY01

Copy link
Copy Markdown
Contributor Author

continued in #23995

@2010YOUY01 2010YOUY01 closed this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants