You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add query ID and warnings to `QueryResult`, refactor `QueryStats` duration handling
- Added `QueryID` and `Warnings` fields to `QueryResult`.
- Refactored `QueryStats` to use `DurationMs` (in milliseconds) instead of `time.Duration`.
- Updated tests to verify new fields and JSON serialization.
- Introduced `queryProgressUpdater` to capture query ID during execution.
- Added fallback logic to handle unsupported progress callbacks.
* Update `QueryStats` tests to verify `QueryID` addition and `DurationMs` refactor
* Refactor tests: replace `time.Duration` with `DurationMs` in `QueryStats`
* Update `QueryResult` to use `DurationMs` instead of `Milliseconds` for execution time formatting
* Refactor tests: replace `Duration` with `DurationMs` in `QueryStats` usage
* Remove Warnings field from QueryResult and related tests
- Removed the `Warnings` field from `QueryResult` as it is not exposed in trino-go-client v0.333.0.
- Updated tests to reflect this change.
- Added a comment noting the Trino REST API behavior and linked to the relevant GitHub issue.
* Add tests for `queryProgressUpdater` including concurrent access handling
- Introduced unit tests for `queryProgressUpdater` to verify correct handling of query ID updates.
- Added a concurrency test to ensure thread safety during concurrent reads and writes.
* Add codecov configuration to enforce coverage targets and enable PR comments
- Introduced `codecov.yml` with project and patch coverage targets (82% and 80% respectively).
- Configured Codecov to provide PR comments for coverage changes.
0 commit comments