Skip to content
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

Merged
merged 1 commit into from
Jan 14, 2022
Merged

Update to rust 1.58 #1557

merged 1 commit into from
Jan 14, 2022

Conversation

xudong963
Copy link
Member

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?

@github-actions github-actions bot added ballista datafusion Changes in the datafusion crate labels Jan 14, 2022
@xudong963
Copy link
Member Author

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());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rank,
DenseRank,
PercentRank,
Basic,
Copy link
Member Author

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()?;
Copy link
Member Author

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)?;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@houqp houqp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alamb alamb merged commit 811bb51 into apache:master Jan 14, 2022
@alamb
Copy link
Contributor

alamb commented Jan 14, 2022

Thanks @xudong963 !

@xudong963 xudong963 deleted the update_rust branch January 14, 2022 11:22
@xudong963
Copy link
Member Author

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

@alamb
Copy link
Contributor

alamb commented Jan 14, 2022

No worries at all 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants