Skip to content

Latest commit

 

History

History
112 lines (77 loc) · 5.62 KB

CONTRIBUTING.md

File metadata and controls

112 lines (77 loc) · 5.62 KB

Contributing

Welcome! Thank you for your interest in the Velox project. Before starting to contribute, please, take a moment to review the contribution guidelines outlined below.

Contributions are not just about code. Contributing code is great, but that’s probably not the best place to start. There are lots of ways to make valuable contributions to the project and community.

Code of Conduct

This project and everyone participating in it is governed by a Code of Conduct. By participating, you are expected to uphold this code.

Community

A good first step to getting involved in the Velox project is to join the conversations in GitHub Issues and Discussions.

Bug Reports

Found a bug? Help us by filing an issue on GitHub.

Ensure the bug was not already reported by searching GitHub Issues. If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.

Meta has a bounty program for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue.

Documentation

Help the community understand how to use the Velox library by proposing additions to our docs or pointing out outdated or missing pieces.

Code

This is the process we suggest for code contributions. This process is designed to reduce the burden on project reviews, impact on other contributors, and to keep the amount of rework from the contributor to a minimum.

It is good to start with small bug fixes and tiny features to get familiar with the contributing process and build relationships with the community members. Look for GitHub issues labeled good first issue or consider adding one of the missing Presto SQL functions.

  1. Sign the Contributor License Agreement (CLA). This step needs to be completed only once.

  2. Review the LICENSE file. By contributing to Velox, you agree that your contributions will be licensed under that LICENSE file. This step needs to be completed only once.

  3. Start a discussion by creating a Github issue, or asking on Slack (unless the change is trivial).

    • This step helps you identify possible collaborators and reviewers.
    • Does the change align with technical vision and project values?
    • Will the change conflict with another change in progress? If so, work with others to minimize impact.
    • Is this change large? If so, work with others to break into smaller steps.
  4. Review our coding style and best practices document in CODING_STYLE.md.

    • Implement the change
    • If the change is large, post a preview Github pull request with the title prefixed with [WIP], and share with collaborators.
    • Include tests and documentation as necessary.
  5. Create a Github pull request (PR).

  6. Review is performed by one or more reviewers.

    • This normally happens within a few days, but may take longer if the change is large, complex, or if a critical reviewer is unavailable. (feel free to ping the pull request).
    • Address concerns and update the pull request.
  7. After pushing the changes, add a comment to the pull-request, mentioning the reviewers by name, stating the comments have been addressed. This is the only way that a reviewer is notified that you are ready for the code to be reviewed again.

  8. Go to step 7.

  9. Maintainer merges the pull request after final changes are accepted. Due to tooling limitations, a Meta employee is required to merge the pull request.

Presto’s SQL Functions

Here are specific guidelines for contributing Presto SQL functions.

  1. Read How to add a scalar function? guide.

  2. Use the following template for the PR title: Add xxx Presto function (replace xxx with the function name.)

  3. Add documentation for the new function to an .rst file under velox/docs/functions directory.

  4. Functions in documentation are listed in alphabetical order. Make sure to place the new function so that the order is preserved.

  5. Use Presto to check the function semantics. Try different edge cases to see whether the function returns null, or throws, or does something else. Make sure to replicate Presto semantics exactly.

  6. Add tests.

Here are example PRs: