-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from fishtown-analytics/dev/stephen-girard
Merge upstream
- Loading branch information
Showing
220 changed files
with
2,019 additions
and
1,945 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[report] | ||
include = | ||
dbt/* | ||
core/dbt/* | ||
plugins/adapters/dbt/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<p align="center"> | ||
<img src="/etc/dbt-horizontal.png" alt="dbt logo"/> | ||
</p> | ||
<p align="center"> | ||
<a href="https://codeclimate.com/github/fishtown-analytics/dbt"> | ||
<img src="https://codeclimate.com/github/fishtown-analytics/dbt/badges/gpa.svg" alt="Code Climate"/> | ||
</a> | ||
<a href="https://circleci.com/gh/fishtown-analytics/dbt/tree/master"> | ||
<img src="https://circleci.com/gh/fishtown-analytics/dbt/tree/master.svg?style=svg" alt="CircleCI" /> | ||
</a> | ||
<a href="https://ci.appveyor.com/project/DrewBanin/dbt/branch/development"> | ||
<img src="https://ci.appveyor.com/api/projects/status/v01rwd3q91jnwp9m/branch/development?svg=true" alt="AppVeyor" /> | ||
</a> | ||
<a href="https://slack.getdbt.com"> | ||
<img src="https://slack.getdbt.com/badge.svg" alt="Slack" /> | ||
</a> | ||
</p> | ||
|
||
**[dbt](https://www.getdbt.com/)** (data build tool) enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. | ||
|
||
dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis. | ||
|
||
![dbt architecture](/etc/dbt-arch.png?raw=true) | ||
|
||
dbt can be used to [aggregate pageviews into sessions](https://github.com/fishtown-analytics/snowplow), calculate [ad spend ROI](https://github.com/fishtown-analytics/facebook-ads), or report on [email campaign performance](https://github.com/fishtown-analytics/mailchimp). | ||
|
||
## Understanding dbt | ||
|
||
Analysts using dbt can transform their data by simply writing select statements, while dbt handles turning these statements into tables and views in a data warehouse. | ||
|
||
These select statements, or "models", form a dbt project. Models frequently build on top of one another – dbt makes it easy to [manage relationships](https://docs.getdbt.com/reference#ref) between models, and [visualize these relationships](https://docs.getdbt.com/docs/documentation), as well as assure the quality of your transformations through [testing](https://docs.getdbt.com/docs/testing). | ||
|
||
![dbt dag](/etc/dbt-dag.png?raw=true) | ||
|
||
## Getting started | ||
|
||
- [Install dbt](https://docs.getdbt.com/docs/installation) | ||
- Read the [documentation](https://docs.getdbt.com/). | ||
- Productionize your dbt project with [Sinter](https://www.sinterdata.com) | ||
|
||
## Find out more | ||
|
||
- Check out the [Introduction to dbt](https://dbt.readme.io/docs/introduction). | ||
- Read the [dbt Viewpoint](https://dbt.readme.io/docs/viewpoint). | ||
|
||
## Join thousands of analysts in the dbt community | ||
|
||
- Join the [chat](http://slack.getdbt.com/) on Slack. | ||
- Find community posts on [dbt Discourse](https://discourse.getdbt.com). | ||
|
||
## Reporting bugs and contributing code | ||
|
||
- Want to report a bug or request a feature? Let us know on [Slack](http://slack.getdbt.com/), or open [an issue](https://github.com/fishtown-analytics/dbt/issues/new). | ||
- Want to help us build dbt? Check out the [Contributing Getting Started Guide](/CONTRIBUTING.md) | ||
|
||
## Code of Conduct | ||
|
||
Everyone interacting in the dbt project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [PyPA Code of Conduct](https://www.pypa.io/en/latest/code-of-conduct/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
|
||
from dbt.config.project import Project | ||
|
||
|
||
class AdapterPlugin(object): | ||
"""Defines the basic requirements for a dbt adapter plugin. | ||
:param type adapter: An adapter class, derived from BaseAdapter | ||
:param type credentials: A credentials object, derived from Credentials | ||
:param str project_name: The name of this adapter plugin's associated dbt | ||
project. | ||
:param str include_path: The path to this adapter plugin's root | ||
:param Optional[List[str]] dependencies: A list of adapter names that this\ | ||
adapter depends upon. | ||
""" | ||
def __init__(self, adapter, credentials, include_path, dependencies=None): | ||
self.adapter = adapter | ||
self.credentials = credentials | ||
self.include_path = include_path | ||
project_path = os.path.join(self.include_path, adapter.type()) | ||
project = Project.from_project_root(project_path, {}) | ||
self.project_name = project.project_name | ||
if dependencies is None: | ||
dependencies = [] | ||
self.dependencies = dependencies |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.