Skip to content

Commit 8d388e8

Browse files
authored
OpenSearch Readiness: SQL/PPL, JDBC, ODBC (#8)
* Update CoC * Update license * Move developer guide * Update README * Update NOTICE * Add SPDX licence header * Add SPDX licence header * Update PR template * Add SPDX licence header * Add issue template * Add maintainers * Update contributing * Update maintainers * Update contributing * Fix CoC link
1 parent 1cc931c commit 8d388e8

38 files changed

+720
-78
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: 🐛 Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
Or for query issues:
20+
1. Create the index with test documents by 'POST ...'
21+
2. Run the query 'SELECT ...'
22+
3. See error
23+
24+
**Expected behavior**
25+
A clear and concise description of what you expected to happen.
26+
27+
**Plugins**
28+
Please list all plugins currently enabled.
29+
30+
**Screenshots**
31+
If applicable, add screenshots to help explain your problem.
32+
33+
**Host/Environment (please complete the following information):**
34+
- OS: [e.g. iOS]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: 🎆 Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
*Issue #, if available:*
1+
### Description
2+
[Describe what this change achieves]
3+
4+
### Issues Resolved
5+
[List any issues this PR will resolve]
6+
7+
### Check List
8+
- [ ] New functionality includes testing.
9+
- [ ] All tests pass, including unit test, integration test and doctest
10+
- [ ] New functionality has been documented.
11+
- [ ] New functionality has javadoc added
12+
- [ ] New functionality has user manual doc added
13+
- [ ] Commits are signed per the DCO using --signoff
214

3-
*Description of changes:*
4-
5-
6-
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
15+
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
16+
For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

CODE_OF_CONDUCT.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
## Code of Conduct
2-
This project has adopted an [Open Source Code of Conduct](https://opendistro.github.io/for-elasticsearch/codeofconduct.html).
1+
2+
This code of conduct applies to all spaces provided by the OpenSource project including in code, documentation, issue trackers, mailing lists, chat channels, wikis, blogs, social media and any other communication channels used by the project.
3+
4+
5+
**Our open source communities endeavor to:**
6+
7+
* Be Inclusive: We are committed to being a community where everyone can join and contribute. This means using inclusive and welcoming language.
8+
* Be Welcoming: We are committed to maintaining a safe space for everyone to be able to contribute.
9+
* Be Respectful: We are committed to encouraging differing viewpoints, accepting constructive criticism and work collaboratively towards decisions that help the project grow. Disrespectful and unacceptable behavior will not be tolerated.
10+
* Be Collaborative: We are committed to supporting what is best for our community and users. When we build anything for the benefit of the project, we should document the work we do and communicate to others on how this affects their work.
11+
12+
13+
**Our Responsibility. As contributors, members, or bystanders we each individually have the responsibility to behave professionally and respectfully at all times. Disrespectful and unacceptable behaviors include, but are not limited to:**
14+
15+
* The use of violent threats, abusive, discriminatory, or derogatory language;
16+
* Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, race, political or religious affiliation;
17+
* Posting of sexually explicit or violent content;
18+
* The use of sexualized language and unwelcome sexual attention or advances;
19+
* Public or private harassment of any kind;
20+
* Publishing private information, such as physical or electronic address, without permission;
21+
* Other conduct which could reasonably be considered inappropriate in a professional setting;
22+
* Advocating for or encouraging any of the above behaviors.
23+
* Enforcement and Reporting Code of Conduct Issues:
24+
25+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported. [Contact us](mailto:[email protected]). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.

CONTRIBUTING.md

+37-34
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ information to effectively respond to your bug report or contribution.
1111

1212
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1313

14-
When filing an issue, please check [existing open](../../issues), or [recently closed](../../issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
14+
When filing an issue, please check [existing open](https://github.com/opensearch-project/sql/issues), or [recently closed](https://github.com/opensearch-project/sql/issues?q=is%3Aissue+is%3Aclosed), issues to make sure somebody else hasn't already
1515
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1616

1717
* A reproducible test case or series of steps
@@ -20,50 +20,53 @@ reported the issue. Please try to include as much information as you can. Detail
2020
* Anything unusual about your environment or deployment
2121

2222
## Sign your work
23-
The sign-off is a simple line at the end of each commit, which certifies that you wrote it or otherwise have the right to pass it on as an open-source patch. if you can certify the below
23+
OpenSearch is an open source product released under the Apache 2.0 license (see either [the Apache site](https://www.apache.org/licenses/LICENSE-2.0) or the [LICENSE.txt file](./LICENSE.txt)). The Apache 2.0 license allows you to freely use, modify, distribute, and sell your own products that include Apache 2.0 licensed software.
24+
25+
We respect intellectual property rights of others and we want to make sure all incoming contributions are correctly attributed and licensed. A Developer Certificate of Origin (DCO) is a lightweight mechanism to do that.
26+
27+
The DCO is a declaration attached to every contribution made by every developer. In the commit message of the contribution, the developer simply adds a `Signed-off-by` statement and thereby agrees to the DCO, which you can find below or at [DeveloperCertificate.org](http://developercertificate.org/).
28+
2429
```
30+
Developer's Certificate of Origin 1.1
31+
2532
By making a contribution to this project, I certify that:
2633
2734
(a) The contribution was created in whole or in part by me and I
28-
have the right to submit it under the open source license
29-
indicated in the file; or
35+
have the right to submit it under the open source license
36+
indicated in the file; or
3037
31-
(b) The contribution is based upon previous work that, to the best
32-
of my knowledge, is covered under an appropriate open source
33-
license and I have the right under that license to submit that
34-
work with modifications, whether created in whole or in part
35-
by me, under the same open source license (unless I am
36-
permitted to submit under a different license), as indicated
37-
in the file; or
38+
(b) The contribution is based upon previous work that, to the
39+
best of my knowledge, is covered under an appropriate open
40+
source license and I have the right under that license to
41+
submit that work with modifications, whether created in whole
42+
or in part by me, under the same open source license (unless
43+
I am permitted to submit under a different license), as
44+
Indicated in the file; or
3845
3946
(c) The contribution was provided directly to me by some other
40-
person who certified (a), (b) or (c) and I have not modified
41-
it.
47+
person who certified (a), (b) or (c) and I have not modified
48+
it.
4249
4350
(d) I understand and agree that this project and the contribution
44-
are public and that a record of the contribution (including all
45-
personal information I submit with it, including my sign-off) is
46-
maintained indefinitely and may be redistributed consistent with
47-
this project or the open source license(s) involved.
48-
```
49-
then you just add a line to every git commit message:
50-
```
51-
Signed-off-by: Bob Sanders <[email protected]>
52-
```
53-
You can sign off your work easily by adding the configuration in github
54-
```
55-
git config user.name "Bob Sanders"
56-
git config user.email "[email protected]"
57-
```
58-
Then, you could sign off commits automatically by adding `-s` or `-=signoff` parameter to your usual git commits commands. e.g.
51+
are public and that a record of the contribution (including
52+
all personal information I submit with it, including my
53+
sign-off) is maintained indefinitely and may be redistributed
54+
consistent with this project or the open source license(s)
55+
involved.
56+
```
57+
We require that every contribution to OpenSearch is signed with a Developer Certificate of Origin. Additionally, please use your real name. We do not accept anonymous contributors nor those utilizing pseudonyms.
58+
59+
Each commit must include a DCO which looks like this
60+
5961
```
60-
git commit -s -m "my first commit"
62+
Signed-off-by: Jane Smith <[email protected]>
6163
```
64+
You may type this line on your own when writing your commit messages. However, if your user.name and user.email are set in your git configs, you can use `-s` or `– – signoff` to add the `Signed-off-by` line to the end of the commit message.
6265

6366
## Contributing via Pull Requests
6467
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
6568

66-
1. You are working against the latest source on the *master* branch.
69+
1. You are working against the latest source on the *develop* branch.
6770
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
6871
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
6972

@@ -81,15 +84,15 @@ GitHub provides additional document on [forking a repository](https://help.githu
8184

8285
## Developing
8386

84-
For instructions for development in details, please refer to [Development Guide](./docs/developing.rst).
87+
For instructions for development in details, please refer to [Developer Guide](./DEVELOPER_GUIDE.rst).
8588

8689
## Finding contributions to work on
87-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](../../labels/help%20wanted) issues is a great place to start.
90+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/opensearch-project/sql/issues?q=label%3A%22help+wanted%22) issues is a great place to start.
8891

8992

9093
## Code of Conduct
9194

92-
This project has adopted an [Open Source Code of Conduct](https://opendistro.github.io/for-elasticsearch/codeofconduct.html).
95+
This project has adopted an [Open Source Code of Conduct](./CODE_OF_CONDUCT.md).
9396

9497

9598
## Security issue notifications
@@ -99,4 +102,4 @@ If you discover a potential security issue in this project we ask that you notif
99102

100103
## Licensing
101104

102-
See the [LICENSE](./LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
105+
See the [LICENSE](./LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.

docs/developing.rst DEVELOPER_GUIDE.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. highlight:: sh
22

3-
=================
4-
Development Guide
5-
=================
3+
===============
4+
Developer Guide
5+
===============
66

77
.. rubric:: Table of contents
88

@@ -132,7 +132,6 @@ The plugin codebase is in standard layout of Gradle project::
132132
│   ├── attributions.md
133133
│   ├── category.json
134134
│   ├── dev
135-
│   ├── developing.rst
136135
│   ├── experiment
137136
│   └── user
138137
├── gradle.properties

LICENSE.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/

MAINTAINERS.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# OpenSearch SQL Maintainers
2+
3+
## Maintainers
4+
5+
| Maintainer | GitHub ID | Affiliation |
6+
| --------------- | --------- | ----------- |
7+
| Anirudha (Ani) Jadhav | [anirudha](https://github.com/anirudha) | Amazon |
8+
| Peng Huo | [penghuo](https://github.com/penghuo) | Amazon |
9+
| Chloe | [chloe-zh](https://github.com/chloe-zh) | Amazon |
10+
| Chen Dai | [dai-chen](https://github.com/dai-chen) | Amazon |
11+
| Harold Wang | [harold-wang](https://github.com/harold-wang) | Amazon |

NOTICE

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
Open Distribution for Elasticsearch SQL
2-
Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
OpenSearch
2+
Copyright 2021 OpenSearch Contributors
3+
4+
This product includes software developed by
5+
Elasticsearch (http://www.elastic.co).
6+
Copyright 2009-2018 Elasticsearch
7+
8+
This product includes software developed by The Apache Software
9+
Foundation (http://www.apache.org/).
10+
11+
This product includes software developed by
12+
Joda.org (http://www.joda.org/).
313

414
This project is based on the Apache 2.0-licensed elasticsearch-sql project (https://github.com/NLPchina/elasticsearch-sql):
515

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ The following projects have been merged into this repository as separate folders
2323

2424
## Documentation
2525

26-
Please refer to the [SQL Language Reference Manual](./docs/user/index.rst), [Piped Processing Language (PPL) Reference Manual](./docs/experiment/ppl/index.rst) and [Technical Documentation](https://opendistro.github.io/for-elasticsearch-docs) for detailed information on installing and configuring plugin. Looking to contribute? Read the instructions on [Development Guide](./docs/developing.rst) and then submit a patch!
27-
26+
Please refer to the [SQL Language Reference Manual](./docs/user/index.rst), [Piped Processing Language (PPL) Reference Manual](./docs/experiment/ppl/index.rst) and [Technical Documentation](https://opendistro.github.io/for-elasticsearch-docs) for detailed information on installing and configuring plugin. Looking to contribute? Read the instructions on [Developer Guide](./DEVELOPER_GUIDE.rst) and then submit a patch!
2827

2928
## SQL Engine V2
3029

build-tools/sqlplugin-coverage.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
112
/*
213
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
314
*

build.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
112
/*
213
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
314
*

common/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
12+
/*
13+
* Licensed to Elasticsearch under one or more contributor
14+
* license agreements. See the NOTICE file distributed with
15+
* this work for additional information regarding copyright
16+
* ownership. Elasticsearch licenses this file to you under
17+
* the Apache License, Version 2.0 (the "License"); you may
18+
* not use this file except in compliance with the License.
19+
* You may obtain a copy of the License at
20+
*
21+
* http://www.apache.org/licenses/LICENSE-2.0
22+
*
23+
* Unless required by applicable law or agreed to in writing,
24+
* software distributed under the License is distributed on an
25+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
26+
* KIND, either express or implied. See the License for the
27+
* specific language governing permissions and limitations
28+
* under the License.
29+
*/
30+
131
plugins {
232
id 'java'
333
id "io.freefair.lombok"

core/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
12+
/*
13+
* Licensed to Elasticsearch under one or more contributor
14+
* license agreements. See the NOTICE file distributed with
15+
* this work for additional information regarding copyright
16+
* ownership. Elasticsearch licenses this file to you under
17+
* the Apache License, Version 2.0 (the "License"); you may
18+
* not use this file except in compliance with the License.
19+
* You may obtain a copy of the License at
20+
*
21+
* http://www.apache.org/licenses/LICENSE-2.0
22+
*
23+
* Unless required by applicable law or agreed to in writing,
24+
* software distributed under the License is distributed on an
25+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
26+
* KIND, either express or implied. See the License for the
27+
* specific language governing permissions and limitations
28+
* under the License.
29+
*/
30+
131
plugins {
232
id 'java'
333
id "io.freefair.lombok"

0 commit comments

Comments
 (0)