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

Fix license header #12008

Merged
merged 6 commits into from
Nov 7, 2024
Merged

Fix license header #12008

merged 6 commits into from
Nov 7, 2024

Conversation

waynexia
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

When preparing datafusion-contrib/datafusion-orc#121 I opened this repo to find some reference. But I saw a strange header on a random opened file datafusion/optimizer/src/push_down_filter.rs 🤣

image

What changes are included in this PR?

  • Fix existing license headers
  • Add a checker in CI to check it on PR

Are these changes tested?

no need

Are there any user-facing changes?

no

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actions github-actions bot added sql SQL Planner development-process Related to development process of DataFusion logical-expr Logical plan and expressions physical-expr Physical Expressions optimizer Optimizer rules core Core DataFusion crate common Related to common crate execution Related to the execution crate proto Related to proto crate functions labels Aug 15, 2024
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Copy link
Member Author

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

Those are some interesting diff I find XD

Comment on lines +1 to +7
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
Copy link
Member Author

Choose a reason for hiding this comment

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

Different line break style

Comment on lines 2 to 7
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
Copy link
Member Author

Choose a reason for hiding this comment

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

Missing one line in the middle

Comment on lines +1 to 5
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
Copy link
Member Author

Choose a reason for hiding this comment

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

Missing lines at the begining.

Comment on lines 9 to 13
// http://www.apache.org/licenses/LICENSE-2.0
//
// UnLt required by applicable law or agreed to in writing,
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
Copy link
Member Author

Choose a reason for hiding this comment

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

Strange error...

@@ -6,7 +6,7 @@
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
Copy link
Member Author

Choose a reason for hiding this comment

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

Different ident style

Comment on lines 15 to 17
// specific language governing permissions and limitations
// under the License.language governing permissions and
// limitations under the License.
// under the License.

Copy link
Member Author

Choose a reason for hiding this comment

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

Redundant sentences at the end

Comment on lines 16 to 18
// under the License.
//
// use arrow::array::{ArrayRef, GenericStringArray, OffsetSizeTrait, RecordBatch, UInt32Array};

use crate::stagger_batch;
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove a dead code by the way

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 @waynexia -- this PR is 👨‍🍳 👌 from my perspective and makes the code better 🙏

My only question is about the new workflow

.github/workflows/rust.yml Show resolved Hide resolved
@alamb alamb marked this pull request as draft August 20, 2024 19:00
Copy link

github-actions bot commented Nov 2, 2024

Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale PR has not had any activity for some time label Nov 2, 2024
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia
Copy link
Member Author

waynexia commented Nov 4, 2024

Almost forgot this ticket... Thanks to that great remainder 🤣

Renew the context:

  • About the consistency between two different tools:
    • I've replaced all the usages of RAT with hawkeye
  • GitHub Action Allow list
    • korandoru/hawkeye@v5 has been used in apache/opendal here
  • Release verification
    • Now the release procedure won't check the license header. It's checked in PR CI instead.

Please let me know if I missed anything 🙈 (and Sorry for the huge delay

@waynexia waynexia marked this pull request as ready for review November 4, 2024 10:43
@github-actions github-actions bot removed the Stale PR has not had any activity for some time label Nov 5, 2024
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.

Looks good to me -- thank you @waynexia ❤️

@waynexia waynexia merged commit ddee471 into apache:main Nov 7, 2024
25 checks passed
@waynexia waynexia deleted the fix-license-header branch November 7, 2024 09:37
@alamb
Copy link
Contributor

alamb commented Nov 7, 2024

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate core Core DataFusion crate development-process Related to development process of DataFusion execution Related to the execution crate functions logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions proto Related to proto crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants