-
Notifications
You must be signed in to change notification settings - Fork 0
Add value spans to clickbench tests, add docs and From impl #1
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
Conversation
#[derive(Debug, Clone, Eq, Ord)] | ||
/// Wraps a primitive SQL [`Value`] with its [`Span`] location | ||
/// | ||
/// # Example: create a `ValueWithSpan` from a `Value` |
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.
I added some examples to make the transition easier
} | ||
} | ||
|
||
impl Ord for ValueWithSpan { |
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.
I did this to fix clippy
@@ -63,6 +102,12 @@ impl From<ValueWithSpan> for Value { | |||
} | |||
} | |||
|
|||
impl From<Value> for ValueWithSpan { |
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.
This makes it easy to create new ValueWithSpan
@@ -55,7 +55,7 @@ fn parse_map_access_expr() { | |||
"indexOf", | |||
[ | |||
Expr::Identifier(Ident::new("string_names")), | |||
Expr::Value(Value::SingleQuotedString("endpoint".to_string())) | |||
Expr::value(Value::SingleQuotedString("endpoint".to_string())) |
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.
By adding the Expr::value
method, the changes to update the tests became a find/replace exercise
Thanks for your help ! I manually merged your changes into apache#1738 |
Merging this PR will update the above PR
I will comment inline