Skip to content

flx clippy warnings - #8455

Merged
waynexia merged 4 commits into
apache:mainfrom
waynexia:fix-clippy-2
Dec 8, 2023
Merged

flx clippy warnings#8455
waynexia merged 4 commits into
apache:mainfrom
waynexia:fix-clippy-2

Conversation

@waynexia

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #.

Rationale for this change

Fix rust lints

What changes are included in this PR?

Two major warnings:

  • unnecessary try_from()
  • .get(0) to .first()

Are these changes tested?

Yes

Are there any user-facing changes?

No

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actionsgithub-actionsBot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates optimizer Optimizer rules core Core DataFusion crate labels Dec 7, 2023

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @waynexia -- this looks good to me

@waynexia
waynexia merged commit c0c9e88 into apache:mainDec 8, 2023
@waynexia
waynexia deleted the fix-clippy-2 branch December 8, 2023 02:23
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Dec 15, 2023
* change get zero to first()
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* wake clone to wake_by_ref
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* more first()
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
* try_from() to from()
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coreCore DataFusion cratelogical-exprLogical plan and expressionsoptimizerOptimizer rulesphysical-exprChanges to the physical-expr cratessqlSQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@waynexia@alamb