refactor(cubestore): Introduce QueryResult enum for SqlService execute#10817
refactor(cubestore): Introduce QueryResult enum for SqlService execute#10817
Conversation
|
Claude finished @ovr's task in 2m 34s —— View job Code Review:
|
| impl PartialEq for QueryResult { | ||
| fn eq(&self, other: &Self) -> bool { | ||
| match (self, other) { | ||
| (QueryResult::Frame(a), QueryResult::Frame(b)) => a == b, | ||
| // Streaming results carry a live BoxStream and aren't comparable. | ||
| _ => false, | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
The PartialEq impl silently returns false for any comparison involving a Stream variant — including Stream vs Stream. This is correct behavior (streams aren't comparable), but it breaks the reflexivity contract of PartialEq (x == x should be true).
This won't cause issues today since Stream is never constructed yet, but once it is, any assert_eq! on a Stream result will fail unexpectedly. Consider either:
- Not implementing
PartialEqat all (compile errors are better than silent wrong answers) - Adding a doc comment explaining the intentional contract violation
|
Claude finished @ovr's task in 3m 15s —— View job Code Review:
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #10817 +/- ##
===========================================
- Coverage 78.79% 58.09% -20.70%
===========================================
Files 470 216 -254
Lines 92135 16899 -75236
Branches 3424 3426 +2
===========================================
- Hits 72597 9818 -62779
+ Misses 19035 6578 -12457
Partials 503 503
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.