Skip to content

feat(vquery): improve having integration tests#360

Open
youngwinds wants to merge 8 commits intomainfrom
feat/improve-having-integration
Open

feat(vquery): improve having integration tests#360
youngwinds wants to merge 8 commits intomainfrom
feat/improve-having-integration

Conversation

@youngwinds
Copy link
Collaborator

  • Add aggregation integration tests (sum, avg, count, min, max)
  • Delete unit tests, use integration tests only
  • Fix _meta.json to include having directory
  • All 135 tests passing

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

🔗 Related PR link

🐞 Bugserver case id

💡 Background and solution

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

小龙虾 added 8 commits March 4, 2026 23:10
- Add aggregation integration tests (sum, avg, count, min, max)
- Delete unit tests, use integration tests only
- Fix _meta.json to include having directory
- All 135 tests passing
- Fix having filter transformation format
- Fix having.ts to use default switch instead of unreachable default case
- Tests: 136 passed
- Add sum, avg, count, min, max operators to VBI HavingFilter
- Add unit tests for having aggregation operators
- Update HavingFilterNodeBuilder to support aggregation operators

Tests: 141 passed
- Add is-null, is-not-null, between, not-between integration tests
- Fix test cases to use aggregated fields in having clause
- Tests: 145 passed
- Coverage: 99.05% statements, 92.14% branches, 100% functions, 99.46% lines
Tests: 145 passed
- Function coverage: 100%
- Statement coverage: 89.18%
- Note: rstest has known coverage tracking limitations for certain code patterns
- Add PeriodConfig type with dateField, offsetUnit, offset
- Add OffsetUnit type (year/quarter/month/week/day)
- Update SelectItem to support period config
- Implement SQL generation for LAG window function

Note: Integration tests need GROUP BY updates - will follow up
- Auto-add dateField from period config to GROUP BY
- Add period-yoy integration test
- Coverage: 96.71% statements
- Add MoM (month-over-month) integration test
- Add QoQ (quarter-over-quarter) integration test
- Tests: 148 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