-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update to rust 1.58 #1557
Update to rust 1.58 #1557
Conversation
Let's use the latest Rust version and learn what has changed! |
@@ -293,7 +293,7 @@ mod test { | |||
.plan_query_stages(&job_uuid.to_string(), plan) | |||
.await?; | |||
for stage in &stages { | |||
println!("{}", displayable(stage.as_ref()).indent().to_string()); | |||
println!("{}", displayable(stage.as_ref()).indent()); |
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.
Rank, | ||
DenseRank, | ||
PercentRank, | ||
Basic, |
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.
return None | ||
}; | ||
// The result may be None, because DataFusion doesn't have support for ScalarValues of the column type | ||
let null_scalar: ScalarValue = data_type.try_into().ok()?; |
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.
@@ -1739,7 +1739,7 @@ impl fmt::Display for ScalarValue { | |||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | |||
match self { | |||
ScalarValue::Decimal128(v, p, s) => { | |||
write!(f, "{}", format!("{:?},{:?},{:?}", v, p, s))?; | |||
write!(f, "{:?},{:?},{:?}", v, p, s)?; |
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.
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.
LGTM
Thanks @xudong963 ! |
I wrote this PR without reading the email today, so I didn't notice that you have already filed a ticket. I'm sorry @alamb |
No worries at all 👍 |
Which issue does this PR close?
Rationale for this change
https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html
What changes are included in this PR?
Are there any user-facing changes?