Skip to content

test: OHLC data dedup + calcite coverage for Sonar gate#162

Merged
dfa1 merged 2 commits into
mainfrom
test/ohlc-data-dedup
Jun 25, 2026
Merged

test: OHLC data dedup + calcite coverage for Sonar gate#162
dfa1 merged 2 commits into
mainfrom
test/ohlc-data-dedup

Conversation

@dfa1

@dfa1 dfa1 commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Two test-only changes:

  • OHLC test-data dedup — integration callers switched onto OhlcData.Batch; drop the duplicate OhlcGenerator/OhlcBatch shape (TODO follow-up).
  • Calcite coverage — restore SonarCloud new_coverage gate (was 74% < 80%). Adds FilterPushDownTest, AggregateRuleBranchTest, extends VortexAdapterCoverageTest. calcite new-code 74% → 88.5% lines / 83.2% line+branch units. No production changes.

🤖 Generated with Claude Code

dfa1 and others added 2 commits June 25, 2026 20:43
Drop the integration OhlcGenerator/OhlcBatch adapter and switch the JNI
round-trip callers (FileSizeComparisonIntegrationTest,
JavaWritesRustReadsIntegrationTest) to core.testing.OhlcData.Batch
directly, so the OHLC shape is single-sourced rather than mirrored.

Verified against the JNI integration suite (OHLC round-trips + file-size
comparison, native libs present).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…r new-coverage gate)

SonarCloud quality gate was ERROR: new_coverage 74% < 80%, concentrated in the
new calcite adapter. Add tests for the uncovered paths — no production changes:

- FilterPushDownTest: JDBC WHERE over every supported comparison, Utf8/float
  literal coercion, multi-conjunct AND, non-pushable bool/bare-ref predicates
  (exercises toRowFilter/binary/collectColumns).
- AggregateRuleBranchTest: Hep planner asserts rewrite-to-Values vs abandon for
  COUNT(*), COUNT(col), SUM (no stat), MIN(varchar), MIN(expr), GROUP BY.
- VortexAdapterCoverageTest: missing-file UncheckedIOException paths, reset()/
  close-with-open-chunk, i32/f32 sums, non-numeric-column throw.

calcite new-code coverage 74% -> 88.5% lines / 83.2% line+branch units.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit 5adb63e into main Jun 25, 2026
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.

1 participant