Skip to content

Commit

Permalink
21 add changelog notice copyright headers other dbt files (#23)
Browse files Browse the repository at this point in the history
Finish generating files and adding notices to all other files.

Co-authored-by: Jared LaRue <[email protected]>
Co-authored-by: jlarue26 <[email protected]>
  • Loading branch information
3 people authored Oct 17, 2022
1 parent eb38160 commit eac396e
Show file tree
Hide file tree
Showing 52 changed files with 860 additions and 92 deletions.
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
59 changes: 59 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Contributing to dbt-dremio
===================

Thank you for your interest in contributing to dbt-dremio.

This document summarizes the different ways you can contribute.

Code of conduct
-----------------------------------------------
You must agree to abide by the dbt-dremio [Code of Conduct](CODE_OF_CONDUCT.md).

Feature requests and bug reports
-----------------------------------------------

If you believe you have found an issue in dbt-dremio, or have an idea for a feature missing in our software, you might not be alone. Please start by searching https://github.com/dremio/dbt-dremio/issues and check if someone else has already reported it.

If you're the first one to report a bug, please include as much information as possible, so we can diagnose and possibly reproduce:

- dbt-dremio version (`pip show dbt-dremio` - please try to reproduce the issue with the latest available version, as it might have already been fixed)
- Dremio version, available under `Help > About Dremio`
- dbt version, (`pip show dbt-core`)
- Python version (`python -V`)
- OS (`uname -a` output on Unix platforms, or equivalent for Windows)
- Information about the query: the query itself, the query profile, the data sources, and any other information you can provide that might be helpful
- If queried data is public, a link to it
- Stacktrace from the logs

For a feature request, please create a new topic describing the feature, what it is supposed to do, and why you need it. If someone else already created a topic for it, please contribute to the discussion.

Contributing code and documentation changes
-------------------------------------------

Here are the recommended steps if you are ready to contribute code or a documentation change:

### Verify if someone else already proposed the same change

Check https://github.com/dremio/dbt-dremio/pulls to see if someone is already working on it.

### Fork and clone the repository

You will need to fork `dbt-dremio` repository and clone it to your local machine. See
[github help page](https://help.github.com/articles/fork-a-repo) for help.

Instructions on how to install dbt-dremio are available in the [README.md](README.md) file at the root of the repository.

### Open a pull request

Once your changes are ready to be submitted:

1. Sign the CLA (Contributor License Agreement)

Please make sure you have signed our [Contributor License Agreement](https://www.dremio.com/legal/contributor-agreement/), which enables Dremio to distribute your contribution without restriction.

2. Submit a pull request

Push your local changes to your forked copy of the repository and [submit a pull request](https://help.github.com/articles/using-pull-requests). Don't forget to choose a title for your change, and don't hesitate to add details in your description.

3. Reply to feedback and wait
You will probably be contacted by a Dremio team member regarding your changes, with some questions and possibly some suggestions or change requests. If everything looks good (and CLA is signed), your contribution will be merged in our internal repository, and available in `dbt-dremio` repository with our next release.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2022 Dremio Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 10 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Dremio
Copyright 2022 Dremio Corporation

This project includes code originating from https://github.com/fabrice-etanchaud/dbt-dremio that was developed by Fabrice Etanchaud.

--------------------------------------------------------------------------------

This project includes code from Ryan Murray with the following copyright notice:

| Copyright (c) 2019 Ryan Murray.
42 changes: 42 additions & 0 deletions THIRD_PARTY_LICENSES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Name Version License
Babel 2.10.3 BSD License
Jinja2 2.11.3 BSD License
Logbook 1.5.3 BSD
MarkupSafe 2.0.1 BSD License
PyYAML 6.0 MIT License
Werkzeug 2.2.2 BSD License
agate 1.6.3 MIT License
attrs 22.1.0 MIT License
certifi 2022.9.24 Mozilla Public License 2.0 (MPL 2.0)
cffi 1.15.1 MIT License
charset-normalizer 2.1.1 MIT License
click 8.1.3 BSD License
colorama 0.4.4 BSD License
dbt-core 1.1.2 Apache Software License
dbt-extractor 0.4.1 Apache Software License
future 0.18.2 MIT License
hologram 0.0.15 MIT License
idna 3.4 BSD License
isodate 0.6.1 BSD License
jsonschema 3.2.0 MIT License
leather 0.3.4 MIT License
mashumaro 2.9 Apache Software License
minimal-snowplow-tracker 0.0.2 Apache Software License
msgpack 1.0.4 Apache Software License
networkx 2.8.3 BSD License
packaging 21.3 Apache Software License; BSD License
parsedatetime 2.4 Apache Software License
pycparser 2.21 BSD License
pyodbc 4.0.34 MIT License
pyparsing 3.0.9 MIT License
pyrsistent 0.18.1 MIT License
python-dateutil 2.8.2 Apache Software License; BSD License
python-slugify 6.1.2 MIT License
pytimeparse 1.1.8 MIT License
pytz 2022.4 MIT License
requests 2.28.1 Apache Software License
six 1.16.0 MIT License
sqlparse 0.4.3 BSD License
text-unidecode 1.3 Artistic License; GNU General Public License (GPL); GNU General Public License v2 or later (GPLv2+)
typing-extensions 4.4.0 Python Software Foundation License
urllib3 1.26.12 MIT License
14 changes: 14 additions & 0 deletions dbt/adapters/dremio/api/authentication.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (C) 2022 Dremio Corporation

# Licensed 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

# http://www.apache.org/licenses/LICENSE-2.0

# 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 KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from dataclasses import dataclass
from typing import Optional
from abc import ABC, abstractmethod
Expand Down
34 changes: 13 additions & 21 deletions dbt/adapters/dremio/api/basic.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2022 Dremio Corporation
#
# Copyright (c) 2019 Ryan Murray.
#
# This file is part of Dremio Client
# (see https://github.com/rymurr/dremio_client).
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Licensed 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

# http://www.apache.org/licenses/LICENSE-2.0

# 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 KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import requests

from dbt.adapters.dremio.api.parameters import Parameters
Expand Down
15 changes: 15 additions & 0 deletions dbt/adapters/dremio/api/cursor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Copyright (C) 2022 Dremio Corporation

# Licensed 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

# http://www.apache.org/licenses/LICENSE-2.0

# 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 KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


import agate

from dbt.adapters.dremio.api.endpoints import (
Expand Down
38 changes: 15 additions & 23 deletions dbt/adapters/dremio/api/endpoints.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2022 Dremio Corporation

# Copyright (c) 2019 Ryan Murray.
#
# This file is part of Dremio Client
# (see https://github.com/rymurr/dremio_client).
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# Licensed 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

# http://www.apache.org/licenses/LICENSE-2.0

# 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 KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from asyncio.log import logger
import requests
import json as jsonlib
Expand Down
36 changes: 13 additions & 23 deletions dbt/adapters/dremio/api/error.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2022 Dremio Corporation

# Copyright (c) 2019 Ryan Murray.
#
# This file is part of Dremio Client
# (see https://github.com/rymurr/dremio_client).
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# Licensed 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

# http://www.apache.org/licenses/LICENSE-2.0

# 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 KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

class DremioException(Exception):
def __init__(self, msg, original_exception, response=None):
Expand Down
14 changes: 14 additions & 0 deletions dbt/adapters/dremio/api/handle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (C) 2022 Dremio Corporation

# Licensed 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

# http://www.apache.org/licenses/LICENSE-2.0

# 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 KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from dbt.adapters.dremio.api.cursor import DremioCursor
from dbt.adapters.dremio.api.parameters import Parameters

Expand Down
Loading

0 comments on commit eac396e

Please sign in to comment.