-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into support-python-submissions
- Loading branch information
Showing
13 changed files
with
259 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: 🐞 Bug | ||
description: Report a bug or an issue you've found in dbt-athena | ||
title: "[Bug] <title>" | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: checkboxes | ||
attributes: | ||
label: Is this a new bug in dbt-athena? | ||
description: > | ||
If this is a request for help or troubleshooting code in your own dbt project, | ||
please join [dbt Community Slack](https://www.getdbt.com/community/join-the-community/) | ||
#db-athena or open a [Discussion question](https://github.com/dbt-athena/dbt-athena/discussions). | ||
Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I believe this is a new bug in dbt-athena | ||
required: true | ||
- label: I have searched the existing issues, and I could not find an existing issue for this bug | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A concise description of what you're experiencing. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. In this environment... | ||
2. With this config... | ||
3. Run '...' | ||
4. See error... | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
examples: | ||
- **OS**: Ubuntu 20.04 | ||
- **Python**: 3.9.12 (`python3 --version`) | ||
- **dbt-core**: 1.1.1 (`dbt --version`) | ||
- **dbt-athena-community**: 1.1.1 | ||
value: | | ||
- OS: | ||
- Python: | ||
- dbt: | ||
- dbt-athena-community: | ||
render: markdown | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional Context | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
**Tip**: You can attach images or log files by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: false |
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 @@ | ||
blank_issues_enabled: false |
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,55 @@ | ||
name: ✨ Feature | ||
description: Propose a straightforward extension of dbt functionality | ||
title: "[Feature] <title>" | ||
labels: ["feature"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this feature request! | ||
- type: checkboxes | ||
attributes: | ||
label: Is this your first time submitting a feature request? | ||
description: > | ||
We want to make sure that features are distinct and discoverable, | ||
so that other members of the community can find them and offer their thoughts. | ||
Issues are the right place to request straightforward extensions of existing dbt functionality. | ||
For "big ideas" about future capabilities of dbt, we ask that you open a | ||
options: | ||
- label: I have searched the existing issues, and I could not find an existing issue for this feature | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: | | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Who will this benefit? | ||
description: | | ||
What kind of use case will this feature be useful for? | ||
Please be specific and provide examples, this will help us prioritize properly. | ||
validations: | ||
required: false | ||
- type: input | ||
attributes: | ||
label: Are you interested in contributing this feature? | ||
description: Let us know if you want to write some code, and how we can help. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Anything else? | ||
description: | | ||
Links? References? Anything that will give us more context about the feature you are suggesting! | ||
validations: | ||
required: false |
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,30 @@ | ||
name: Other | ||
description: Anything that is not a bug or a feature | ||
title: "<title>" | ||
labels: [] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is this your first time submitting an issue in dbt-athena? | ||
description: > | ||
We want to make sure that features are distinct and discoverable, | ||
so that other members of the community can find them and offer their thoughts. | ||
Issues are the right place to request straightforward extensions of existing dbt functionality. | ||
For "big ideas" about future capabilities of dbt, we ask that you open a | ||
options: | ||
- label: I have searched the existing issues, and I could not find an existing issue for this feature | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe your request/question | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Anything else? | ||
description: | | ||
Links? References? Anything that will give us more context about the requests or question | ||
validations: | ||
required: false |
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
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,12 +1,14 @@ | ||
{% macro athena__persist_docs(relation, model, for_relation, for_columns) -%} | ||
{% macro athena__persist_docs(relation, model, for_relation=true, for_columns=true) -%} | ||
{% set persist_relation_docs = for_relation and config.persist_relation_docs() and model.description %} | ||
{% set persist_column_docs = for_columns and config.persist_column_docs() and model.columns %} | ||
{% set skip_archive_table_version = not is_incremental() %} | ||
{% if persist_relation_docs or persist_column_docs %} | ||
{% do adapter.persist_docs_to_glue(relation, | ||
model, | ||
persist_relation_docs, | ||
persist_column_docs, | ||
skip_archive_table_version=skip_archive_table_version) %}} | ||
{% do adapter.persist_docs_to_glue( | ||
relation=relation, | ||
model=model, | ||
persist_relation_docs=persist_relation_docs, | ||
persist_column_docs=persist_column_docs, | ||
skip_archive_table_version=true | ||
) | ||
%}} | ||
{% endif %} | ||
{% endmacro %} |
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
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
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,39 @@ | ||
import pytest | ||
|
||
from dbt.tests.adapter.basic.files import ( | ||
base_materialized_var_sql, | ||
base_table_sql, | ||
base_view_sql, | ||
schema_base_yml, | ||
seeds_base_csv, | ||
) | ||
from dbt.tests.adapter.basic.test_base import BaseSimpleMaterializations | ||
|
||
seed_base_csv_underscore_column = seeds_base_csv.replace("name", "_name") | ||
|
||
quote_columns_seed_schema = """ | ||
seeds: | ||
- name: base | ||
config: | ||
quote_columns: true | ||
""" | ||
|
||
|
||
class TestSimpleMaterializationsHive(BaseSimpleMaterializations): | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
schema = schema_base_yml + quote_columns_seed_schema | ||
return { | ||
"view_model.sql": base_view_sql, | ||
"table_model.sql": base_table_sql, | ||
"swappable.sql": base_materialized_var_sql, | ||
"schema.yml": schema, | ||
} | ||
|
||
@pytest.fixture(scope="class") | ||
def seeds(self): | ||
return { | ||
"base.csv": seed_base_csv_underscore_column, | ||
} |
Oops, something went wrong.