-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation for comparison operations #505
Conversation
Conformance comparison report
Number passing in both: 5731 Number failing in both: 611 Number passing in Base (36b90c5) but now fail: 0 Number failing in Base (36b90c5) but now pass: 1 The following test(s) were previously failing but now pass. Before merging, confirm they are intended to pass: Click here to see
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #505 +/- ##
==========================================
+ Coverage 80.78% 80.84% +0.05%
==========================================
Files 80 80
Lines 19338 19398 +60
Branches 19338 19398 +60
==========================================
+ Hits 15623 15683 +60
Misses 3291 3291
Partials 424 424 ☔ View full report in Codecov by Sentry. |
4e05f89
to
41c8bc7
Compare
41c8bc7
to
52e9ca4
Compare
partiql-value/src/lib.rs
Outdated
@@ -6,7 +6,7 @@ use std::cmp::Ordering; | |||
|
|||
use std::borrow::Cow; | |||
|
|||
use std::fmt::{Debug, Formatter}; | |||
use std::fmt::{Debug, Display, Formatter, Write}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copying the clippy warning:
unused import: `Write`
warning: unused import: `Write`
--> partiql-value/src/lib.rs:9:43
|
9 | use std::fmt::{Debug, Display, Formatter, Write};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
partiql-value/src/lib.rs
Outdated
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { | ||
match self.to_pretty_string(f.width().unwrap_or(80)) { | ||
Ok(pretty) => f.write_str(&pretty), | ||
Err(err) => f.write_str("<internal value error occurred>"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copying the clippy warning
unused variable: `err`
warning: unused variable: `err`
--> partiql-value/src/lib.rs:68:17
|
68 | Err(err) => f.write_str("<internal value error occurred>"),
| ^^^ help: if this is intentional, prefix it with an underscore: `_err`
|
= note: `#[warn(unused_variables)]` on by default
Ok(_) => ControlFlow::Continue(result), | ||
Err(value) => { | ||
if STRICT { | ||
// TODO better error messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be addressed in this PR? Otherwise can track in a separate issue?
Fixes #506
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.