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

style: make clippy happy and remove redundant prefix #6624

Merged
merged 3 commits into from
Jun 11, 2023

Conversation

jackwener
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql SQL Planner labels Jun 10, 2023
@jackwener jackwener changed the title style: make clippy happy style: make clippy happy and remove redundant prefix Jun 10, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @jackwener -- I think this PR really makes the code much nicer to read ❤️

@@ -185,14 +188,14 @@ pub fn return_type(
"The {fun} function can only accept list as the first argument"
))),
},
BuiltinScalarFunction::Cardinality => Ok(DataType::UInt64),
BuiltinScalarFunction::MakeArray => Ok(DataType::List(Arc::new(Field::new(
BuiltinScalarFunction::Cardinality => Ok(UInt64),
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a nice change, but will conflict with #6612

(which is fine, I can handle resolving it, but perhaps you have some time to review #6612 @jackwener to minimize future conflicts)?

@alamb alamb merged commit 57bc5b0 into apache:main Jun 11, 2023
@alamb
Copy link
Contributor

alamb commented Jun 11, 2023

Merging now to avoid accumulating conflicts

@jackwener jackwener deleted the clippy branch June 11, 2023 13:11
jayzhan211 pushed a commit to jayzhan211/datafusion that referenced this pull request Jun 12, 2023
* clippy

* remove default()

* style: remove redundant prefix in function.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants