instance_id
stringlengths
21
53
repo
stringclasses
188 values
language
stringclasses
1 value
pull_number
int64
20
148k
title
stringlengths
6
144
body
stringlengths
0
83.4k
created_at
stringdate
2015-09-25 03:17:17
2025-07-10 16:50:35
problem_statement
stringlengths
188
240k
hints_text
stringlengths
0
145k
resolved_issues
listlengths
1
6
base_commit
stringlengths
40
40
commit_to_review
dict
reference_review_comments
listlengths
1
62
merged_commit
stringlengths
40
40
merged_patch
stringlengths
297
9.87M
metadata
dict
dbt-labs__dbt-core-8117@80d6267
dbt-labs/dbt-core
Python
8,117
Ensure that target_schema from snapshot config is promoted to node level
resolves #6745 ### Problem Snapshot target_schema and target_database were being processed when the snapshot nodes were processed, but those config fields were not being promoted to the node level schema and database if set in config in dbt_proejct.yml or a schema yaml file. ### Solution Added code to the...
2023-07-17T20:53:28Z
[CT-1913] Snapshot target_schema & target_database used from dbt_project.yml ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior Profiles.yml ``` dev: t...
Thank you for reaching out about this @minhajpasha ! p.s. I added some ` ``` ` to your description to help format each or your YAML examples -- hope you don't mind. I was able to reproduce what you described, and I agree this is a bug. It _might_ be related to https://github.com/dbt-labs/dbt-core/issues/4000 #...
[ { "body": "### Is this a new bug in dbt-core?\r\n\r\n- [X] I believe this is a new bug in dbt-core\r\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\r\n\r\n### Current Behavior\r\n\r\nProfiles.yml\r\n```\r\n dev:\r\n type: bigquery\r\n method: oauth\r...
203bd8defd023460a364400cad0422594aa8857c
{ "head_commit": "80d62673dfab48d8cdcee2b55b81a540d7c1a6f8", "head_commit_message": "Update test", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230717-160652.yaml b/.changes/unreleased/Fixes-20230717-160652.yaml\nnew file mode 100644\nindex 00000000000..8c63a584db9\n--- /dev/null\n+++ b/.changes/u...
[ { "diff_hunk": "@@ -280,9 +279,18 @@ def update_parsed_node_config_dict(\n def update_parsed_node_relation_names(\n self, parsed_node: IntermediateNode, config_dict: Dict[str, Any]\n ) -> None:\n- self._update_node_database(parsed_node, config_dict)\n- self._update_node_schema(pars...
fa45019dbe84dfecfa0e14f9cc22a55f415a05c1
diff --git a/.changes/unreleased/Fixes-20230717-160652.yaml b/.changes/unreleased/Fixes-20230717-160652.yaml new file mode 100644 index 00000000000..8c63a584db9 --- /dev/null +++ b/.changes/unreleased/Fixes-20230717-160652.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Copy target_schema from config into snapshot node +time:...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-8250@746a8b6
dbt-labs/dbt-core
Python
8,250
[CT-2888] Support dbt-semantic-interfaces 0.2.0
resolves #8247 ### Problem There is a bug currently in core main and 1.6.latest where-in daemonic invocations of core get killed off due to a multi processing in DSI 0.1.0rc1. This is fixed in DSI 0.2.0 Additionally there are breaking changes in DSI 0.2.0 that we need to in core (and backported to core 1.6). Thi...
2023-07-28T20:55:01Z
[CT-2888] Support DSI 0.2.0 DSI 0.2.0 is dropping soon. It has a fix for an a runtime exception being encountered when dbt-core is run in a daemonic environment. There are additionally some breaking protocol changes that come with it that we'll need to support. This work will need to get backported to 1.6.latest
[ { "body": "DSI 0.2.0 is dropping soon. It has a fix for an a runtime exception being encountered when dbt-core is run in a daemonic environment. There are additionally some breaking protocol changes that come with it that we'll need to support. This work will need to get backported to 1.6.latest", "number":...
5b6d21d7da00847e694111e21724a59053b36e76
{ "head_commit": "746a8b6a1377e53c30cba81790f7a6316a47f851", "head_commit_message": "Fix metric filter specifications in existing tests", "patch_to_review": "diff --git a/core/dbt/contracts/graph/nodes.py b/core/dbt/contracts/graph/nodes.py\nindex 3e191e90855..59ac576db79 100644\n--- a/core/dbt/contracts/graph/no...
[ { "diff_hunk": "@@ -0,0 +1,6 @@\n+kind: Dependencies\n+body: Support dbt-semantic-interfaces 0.2.0\n+time: 2023-07-28T13:52:27.207241-07:00\n+custom:\n+ Author: QMalcolm\n+ PR: \"8247\"", "line": null, "original_line": 6, "original_start_line": null, "path": ".changes/unreleased/Dependencies-2...
2c6d0da6aabf5eed4ed32511622a9b177833f763
diff --git a/.changes/unreleased/Dependencies-20230728-135227.yaml b/.changes/unreleased/Dependencies-20230728-135227.yaml new file mode 100644 index 00000000000..3373d055c3e --- /dev/null +++ b/.changes/unreleased/Dependencies-20230728-135227.yaml @@ -0,0 +1,6 @@ +kind: Dependencies +body: Support dbt-semantic-interfa...
{ "difficulty": "high", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-7706@05d298b
dbt-labs/dbt-core
Python
7,706
Target path should be relative to project dir, rather than current working directory
resolves #7465 ### Description With version 1.5 we no longer did a chdir to the project directory in the same places as in previous releases. There are two ways this could be fixed: 1) Always do a chdir to the project directory for every command, 2) construct paths based on the project root directory. In ...
2023-05-25T21:02:05Z
[CT-2491] [Bug] Default `--target-path` should be relative to `--project-dir`, rather than current working directory ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior Exe...
@OwenKephart Thanks for opening, and for trying out the v1.5 RC! We did need to make some low-level changes to how `--target-path` works in v1.5.0. This is called out in the migration guide: > Setting `log-path` and `target-path` in dbt_project.yml has been deprecated for consistency with other invocation-specifi...
[ { "body": "### Is this a new bug in dbt-core?\n\n- [X] I believe this is a new bug in dbt-core\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\n\n### Current Behavior\n\nExecuting a command that targets a project in a specified `--project-dir` results in the json ...
7e3a6eec96d55363501be4d01c0328030a1ec51b
{ "head_commit": "05d298b7624d363138ed64cad6edd6f507a0447e", "head_commit_message": "Remove resolve_path from state click.Path, modify defer_state test to\ntest", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230525-165053.yaml b/.changes/unreleased/Fixes-20230525-165053.yaml\nnew file mode 100644\...
[ { "diff_hunk": "@@ -41,7 +43,7 @@ def __init__(self, path: Path, current_path: Path):\n exc.add_filename(str(sources_path))\n raise\n \n- sources_current_path = self.current_path / \"sources.json\"\n+ sources_current_path = self.target_path / \"sources.json\"", ...
51a2ebbaac6af9eac0cec768c8eec22332a0c08f
diff --git a/.changes/unreleased/Fixes-20230525-165053.yaml b/.changes/unreleased/Fixes-20230525-165053.yaml new file mode 100644 index 00000000000..89dcd6ddf60 --- /dev/null +++ b/.changes/unreleased/Fixes-20230525-165053.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Incorrect paths used for "target" and "state" directorie...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-7862@c8509a8
dbt-labs/dbt-core
Python
7,862
Add AdapterRegistered event log message
resolves #7038 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. --> ### Description <!--- Describe the Pull Request here. Add any references and info to ...
2023-06-13T22:21:54Z
[CT-2171] [Feature] Add adapter(s) version(s) to the log It would make things much easier when debugging a dbt invocation, if the adapter version were present. Right now we get (below for a `dbt debug`) ``` ============================== 2023-02-22 23:21:37.421632 | d8954cb4-b0c3-461a-a0f1-68c918c2fe23 =========...
@VersusFacit that's one you may be interested in contributing to, even though that's pretty core ;) ➕ yes! related older issue (which we never had the priority/capacity to pick up): - https://github.com/dbt-labs/dbt-core/issues/5124 Love me some tooling. And I certainly enjoy working on the `tasks/` dir in `core`! ...
[ { "body": "It would make things much easier when debugging a dbt invocation, if the adapter version were present.\r\n\r\nRight now we get (below for a `dbt debug`)\r\n\r\n```\r\n============================== 2023-02-22 23:21:37.421632 | d8954cb4-b0c3-461a-a0f1-68c918c2fe23 ==============================\r\n\u0...
b947b2bc7e6513273398ea19fb1064ab8519f0be
{ "head_commit": "c8509a895514af5e410603efe58ae59910439d4d", "head_commit_message": "Add AdapterRegistered to unit test", "patch_to_review": "diff --git a/.changes/unreleased/Features-20230613-151507.yaml b/.changes/unreleased/Features-20230613-151507.yaml\nnew file mode 100644\nindex 00000000000..88b6adb66b3\n--...
[ { "diff_hunk": "@@ -89,7 +89,8 @@ def load_plugin(self, name: str) -> Type[Credentials]:\n def register_adapter(self, config: AdapterRequiredConfig) -> None:\n adapter_name = config.credentials.type\n adapter_type = self.get_adapter_class_by_name(adapter_name)\n-\n+ adapter_version = ...
823a360d8df25f57a549053cec831af4b95b01c7
diff --git a/.changes/unreleased/Features-20230613-151507.yaml b/.changes/unreleased/Features-20230613-151507.yaml new file mode 100644 index 00000000000..88b6adb66b3 --- /dev/null +++ b/.changes/unreleased/Features-20230613-151507.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Add AdapterRegistered event log message +tim...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-7743@81f7775
dbt-labs/dbt-core
Python
7,743
fix: removing dependency from dependencies.yml
resolves https://github.com/dbt-labs/dbt-core/issues/7745 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. --> ### Description <!--- Describe the Pull Req...
2023-05-31T14:53:44Z
[CT-2614] [Bug] Removing project dependency from dependencies.yml between runs causes RuntimeError Going from: ``` -- dependencies.yml projects: - name: project_a ``` to: ``` -- dependencies.yml projects: [] ``` causes: ```python File "/Users/michelleark/src/dbt-core/core/dbt/parser/manifest.py", ...
[ { "body": "Going from: \r\n```\r\n-- dependencies.yml\r\nprojects:\r\n - name: project_a\r\n```\r\nto: \r\n```\r\n-- dependencies.yml\r\nprojects: []\r\n```\r\n\r\ncauses: \r\n```python\r\n File \"/Users/michelleark/src/dbt-core/core/dbt/parser/manifest.py\", line 791, in build_public_nodes\r\n for project...
8e1c4ec116e8968eb1cec39e713dbebed0e6a76c
{ "head_commit": "81f7775d1da3154002cc9f55fefb5cc3b61ddd51", "head_commit_message": "changelog entry", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230605-124425.yaml b/.changes/unreleased/Fixes-20230605-124425.yaml\nnew file mode 100644\nindex 00000000000..09c23e3f296\n--- /dev/null\n+++ b/.chang...
[ { "diff_hunk": "@@ -804,3 +810,26 @@ def test_pp_groups(self, project):\n )\n with pytest.raises(ParsingError):\n results = run_dbt([\"--partial-parse\", \"run\"])\n+\n+\n+class TestDependencies:\n+ @pytest.fixture(scope=\"class\")\n+ def models(self):\n+ return {\"order...
96c70d79232d3d889c068f9d385aadedf16b797e
diff --git a/.changes/unreleased/Fixes-20230605-124425.yaml b/.changes/unreleased/Fixes-20230605-124425.yaml new file mode 100644 index 00000000000..09c23e3f296 --- /dev/null +++ b/.changes/unreleased/Fixes-20230605-124425.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: fix RuntimeError when removing project dependency from d...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-7276@acfae95
dbt-labs/dbt-core
Python
7,276
Initial implementation of cross-project ref
resolves #7227 ### Description Initial implementation of cross project refs, including writing out publication artifacts, ingesting publication artifacts from other projects, constructing public nodes and resolving references to public nodes at runtime. ### Checklist - [x] I have read [the contributing guid...
2023-04-05T15:26:36Z
[CT-2327] [Spike] Produce publication artifact and resolve cross-project refs Write a new 'publication artifact' as a result of dbt invocations. This artifact should contain the set of _logical_ project state necessary for downstream projects to take dependencies (resolve refs) to public models in the producer project....
_Paraphrasing from some conversations with @bossnunta_ **`dbt list`** should include information about public models in upstream projects: - with a clear attribute saying that this is a node _not_ in this project / an installed package (let's not call this `external_nodes`, since that's taken on a different meaning...
[ { "body": "Write a new 'publication artifact' as a result of dbt invocations. This artifact should contain the set of _logical_ project state necessary for downstream projects to take dependencies (resolve refs) to public models in the producer project. \r\n\r\nMinimally, the publication artifact would contain:...
f1dddaa6e96b743498440925a55e66a7d5cdacfa
{ "head_commit": "acfae95cf6fe9d886d1e2bd43e4dadafc91ccdf9", "head_commit_message": "Add public_nodes to flat_graph", "patch_to_review": "diff --git a/.changes/unreleased/Features-20230420-124756.yaml b/.changes/unreleased/Features-20230420-124756.yaml\nnew file mode 100644\nindex 00000000000..c1ee4eb71ae\n--- /d...
[ { "diff_hunk": "@@ -0,0 +1,110 @@\n+from typing import Optional, List, Dict, Any\n+from datetime import datetime\n+from dbt.dataclass_schema import dbtClassMixin\n+\n+from dataclasses import dataclass, field\n+\n+from dbt.contracts.util import BaseArtifactMetadata, ArtifactMixin, schema_version\n+from dbt.contr...
7471b2f349227a91dfacb95154c4a70b887d5bc6
diff --git a/.changes/unreleased/Features-20230420-124756.yaml b/.changes/unreleased/Features-20230420-124756.yaml new file mode 100644 index 00000000000..c1ee4eb71ae --- /dev/null +++ b/.changes/unreleased/Features-20230420-124756.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Publication artifacts and cross-project ref ...
{ "difficulty": "high", "estimated_review_effort": 5, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-7180@0829ff7
dbt-labs/dbt-core
Python
7,180
CT-2049: Add CommandCompleted event
resolves #6878 ### Description [CT-2049](https://github.com/dbt-labs/dbt-core/issues/6878) outlines a desire to have an event that is output on completion of any and every command. This PR adds that functionality. Below is a demo of the functionality in a loom video (clicking will redirect you to loom) <a hre...
2023-03-16T19:28:55Z
[CT-2049] Fire an event at the end of every command On the `feature/click-cli` branch, each command explicitly returns a tuple of `success: bool, results: Any`. (The structure of `results` differs based on the command.) We should additionally fire an event that can be used programmatically to determine: - when the ...
Super agree with this. I suggest that we might want to have a CommandCompleted event that contains the data common to all commands, such as timing and success, and refer to an additional event that would contain more of the specific Result dump. We could do a "oneof" of all of the various Result objects, but the way th...
[ { "body": "On the `feature/click-cli` branch, each command explicitly returns a tuple of `success: bool, results: Any`. (The structure of `results` differs based on the command.)\r\n\r\nWe should additionally fire an event that can be used programmatically to determine:\r\n- when the command completed\r\n- if t...
4186f99b742b47e0e95aca4f604cc09e5c67a449
{ "head_commit": "0829ff7226c9aca855b24012065a78a8b696dd32", "head_commit_message": "add CommandCompleted event to event unit tests", "patch_to_review": "diff --git a/core/dbt/cli/requires.py b/core/dbt/cli/requires.py\nindex 57f0df82795..0867e17fe92 100644\n--- a/core/dbt/cli/requires.py\n+++ b/core/dbt/cli/requ...
[ { "diff_hunk": "@@ -1827,6 +1827,16 @@ def message(self) -> str:\n return \"No nodes selected!\"\n \n \n+@dataclass\n+class CommandCompleted(InfoLevel, pt.CommandCompleted):", "line": null, "original_line": 1831, "original_start_line": null, "path": "core/dbt/events/types.py", "start...
92cec272ca70c276b892bdec412f46a73fe15ec0
diff --git a/.changes/unreleased/Under the Hood-20230316-123305.yaml b/.changes/unreleased/Under the Hood-20230316-123305.yaml new file mode 100644 index 00000000000..8aace685284 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230316-123305.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Add CommandComplete...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-7175@a57266a
dbt-labs/dbt-core
Python
7,175
Deprecate more env vars
resolves #6903 ### Description Deprecate the rest of the environment variables outlined in the issue. ### Checklist - [X] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [X] I have signed the [CLA](https://docs.getd...
2023-03-15T17:28:22Z
[CT-2066] Handle old param/flag names in new CLI We're renaming some flags to match the common naming convention: - `no_print` &rarr; `print` - `flags.DEFER_MODE` / (env var) `DBT_DEFER_TO_STATE` &rarr; `defer` - `flags.FAVOR_STATE_MODE` &rarr; `favor_state` - `flags.ARTIFACT_STATE_PATH` / (env var) `DBT_ARTIFACT_S...
After speaking with @iknox-fa, we can keep the `send_anonymous_usage_stats` as is, as it conforms with existing naming of params. I will edit the issue description to remove this change, and any mentions of the `UserConfig`, as this was the only env var held in `UserConfig`. @stu-k The `no_print` &rarr; `print` rename ...
[ { "body": "We're renaming some flags to match the common naming convention:\r\n- `no_print` &rarr; `print`\r\n- `flags.DEFER_MODE` / (env var) `DBT_DEFER_TO_STATE` &rarr; `defer`\r\n- `flags.FAVOR_STATE_MODE` &rarr; `favor_state`\r\n- `flags.ARTIFACT_STATE_PATH` / (env var) `DBT_ARTIFACT_STATE_PATH` &rarr; `sta...
4186f99b742b47e0e95aca4f604cc09e5c67a449
{ "head_commit": "a57266aa4f37602dd7476ccb1ec74e7b202aa713", "head_commit_message": "Deprecate more env vars", "patch_to_review": "diff --git a/.changes/unreleased/Under the Hood-20230315-122723.yaml b/.changes/unreleased/Under the Hood-20230315-122723.yaml\nnew file mode 100644\nindex 00000000000..d99b7133b3b\n-...
[ { "diff_hunk": "@@ -42,6 +42,7 @@ def wrapper(*args, **kwargs):\n \n # Deprecation warnings\n [dep_fn() for dep_fn in flags.deprecated_env_var_warnings]", "line": null, "original_line": 44, "original_start_line": null, "path": "core/dbt/cli/requires.py", "start_line": null, ...
733d4729c64ff1cfaf1c7f2de311e0f0d041cc2b
diff --git a/.changes/unreleased/Under the Hood-20230315-122723.yaml b/.changes/unreleased/Under the Hood-20230315-122723.yaml new file mode 100644 index 00000000000..d99b7133b3b --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230315-122723.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Deprecate additiona...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-6961@8415ffb
dbt-labs/dbt-core
Python
6,961
CT 1921 add missing nodes to previous state test
resolves #6752, #6753 ### Description Improve coverage of previous state tests and fix error in WritableManifest.disabled definition to include metrics and exposures. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what'...
2023-02-13T22:09:20Z
[CT-1920] [Bug] Running dbt with state comparison fails if an exposure is disabled ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior State comparison fails (i.e. `...
Hey @rileyschack thanks for "exposing" this situation! Based on the error message you got using `dbt-core==1.3.2`, I suspect it's because `ParsedExposure` is not in the list [here](https://github.com/dbt-labs/dbt-core/blob/e402241e0e0779c60c0ecb568ef4d4231b7e4775/schemas/dbt/manifest/v7.json#L119-L183). We just r...
[ { "body": "### Is this a new bug in dbt-core?\r\n\r\n- [X] I believe this is a new bug in dbt-core\r\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\r\n\r\n### Current Behavior\r\n\r\nState comparison fails (i.e. `dbt run -s state:modified -t dev --state prod-targ...
d7a2f77705de2b78cfbdab58326f9957dda40556
{ "head_commit": "8415ffb98024f743b077acec13411571faf0201f", "head_commit_message": "Changie", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230213-170723.yaml b/.changes/unreleased/Fixes-20230213-170723.yaml\nnew file mode 100644\nindex 00000000000..5994cb829b6\n--- /dev/null\n+++ b/.changes/unrel...
[ { "diff_hunk": "@@ -82,7 +300,11 @@ def compare_previous_state(\n ]\n if expect_pass:\n results = run_dbt(cli_args, expect_pass=expect_pass)\n- assert len(results) == 0\n+ # We have different numbers of nodes in older versions\n+ if compare_manifest_v...
24ab3d0e5b214f2757efe786dbe01d64edd365b9
diff --git a/.changes/unreleased/Fixes-20230213-170723.yaml b/.changes/unreleased/Fixes-20230213-170723.yaml new file mode 100644 index 00000000000..5994cb829b6 --- /dev/null +++ b/.changes/unreleased/Fixes-20230213-170723.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Fix previous state tests and disabled exposures, metrics...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-6990@3eaa5bd
dbt-labs/dbt-core
Python
6,990
fix small issues with flags and logger to support dbt-rpc
resolves #6979 https://github.com/dbt-labs/dbt-rpc/issues/122 The helper functions are not in ideal situation but I think we can revisit them in the revisit of Flags module that's happening soon
2023-02-16T01:48:13Z
[CT-2123] [Bug] Flags are referenced incorrectly (and sometimes at the wrong time) in functions.py ### Current Behavior Since the merge of the click-cli feature branch, the flags USE_COLOR and LOG_CACHE_EVENTS are accessed inconsistently and sometimes before their values are ready. Consider the following from func...
[ { "body": "\r\n### Current Behavior\r\n\r\nSince the merge of the click-cli feature branch, the flags USE_COLOR and LOG_CACHE_EVENTS are accessed inconsistently and sometimes before their values are ready. Consider the following from functions.py:\r\n```python\r\ndef _get_logbook_log_config(debug: bool) -> Logg...
971b38c26b6f2490b96efa7fd40d5aa316da51e2
{ "head_commit": "3eaa5bd3e82264e0b3daeae6e554bcd63127ee1b", "head_commit_message": "fix small issues with flags and logger to support dbt-rpc", "patch_to_review": "diff --git a/core/dbt/cli/flags.py b/core/dbt/cli/flags.py\nindex 3506049ba4b..5d0a06189f5 100644\n--- a/core/dbt/cli/flags.py\n+++ b/core/dbt/cli/fl...
[ { "diff_hunk": "@@ -133,7 +140,7 @@ def cleanup_event_logger():\n EVENT_MANAGER.add_logger(\n _get_logbook_log_config(debug=False) # type: ignore\n if ENABLE_LEGACY_LOGGER\n- else _get_stdout_config(log_format=\"text\", debug=False, use_colors=True) # type: ignore\n+ else _get_stdout_config(log_...
58f4ca0598ec1695ccb8e37858f8b188f3433929
diff --git a/core/dbt/cli/flags.py b/core/dbt/cli/flags.py index 3506049ba4b..95980de4ffa 100644 --- a/core/dbt/cli/flags.py +++ b/core/dbt/cli/flags.py @@ -8,7 +8,7 @@ from typing import Set, List from click import Context, get_current_context, BadOptionUsage -from click.core import ParameterSource +from click.cor...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-6851@5dfbfdf
dbt-labs/dbt-core
Python
6,851
Add back `depends_on` for seeds - only `macros`, never `nodes`
resolves #6806 ### Description - Seeds can have pre/post hooks that call macros, and we need to track these in the seed's `depends_on` - If those macros try to take a dependency on another node, this is an unsupported anti-pattern — raise an explicit error I'm not thrilled with this approach, which requires a...
2023-02-03T12:57:49Z
[CT-1984] [Regression] In v1.4, seeds with hooks calling macros raise an AttributeError ### Is this a regression in a recent version of dbt-core? - [X] I believe this is a regression in dbt-core functionality - [X] I have searched the existing issues, and I could not find an existing issue for this regression ##...
Think I narrowed it down.. There are seeds in my project that have a post-hook that calls a macro. e.g. ``` seeds: quote_columns: false my_project: reporting: +schema: reporting +post-hook: - "{{ apply_masking_policy('models') }}" ``` Works ok on previous? Need to tr...
[ { "body": "### Is this a regression in a recent version of dbt-core?\r\n\r\n- [X] I believe this is a regression in dbt-core functionality\r\n- [X] I have searched the existing issues, and I could not find an existing issue for this regression\r\n\r\n### Current Behavior\r\n\r\nAfter trying to upgrade both dbt-...
b2ea2b8b256e5db1da0b712dfedd7973e1e50a37
{ "head_commit": "5dfbfdf8a0ef716913e4add8b1e23d75960c08f9", "head_commit_message": "Be less magical", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230203-135557.yaml b/.changes/unreleased/Fixes-20230203-135557.yaml\nnew file mode 100644\nindex 00000000000..c7b5c3ec265\n--- /dev/null\n+++ b/.chang...
[ { "diff_hunk": "@@ -523,6 +525,39 @@ def empty(self):\n \"\"\"Seeds are never empty\"\"\"\n return False\n \n+ def disallow_implicit_dependencies(self):", "line": null, "original_line": 528, "original_start_line": null, "path": "core/dbt/contracts/graph/nodes.py", "start_l...
956a2ffd7195211ae38acd30c8f3dcda0b5670e2
diff --git a/.changes/unreleased/Fixes-20230203-135557.yaml b/.changes/unreleased/Fixes-20230203-135557.yaml new file mode 100644 index 00000000000..c7b5c3ec265 --- /dev/null +++ b/.changes/unreleased/Fixes-20230203-135557.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Readd depends_on.macros to SeedNode, to support seeds wi...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-7216@2f0d6b7
dbt-labs/dbt-core
Python
7,216
Detect breaking changes to column names and data types in state:modified check
resolves #6869 ### Description Add "same_contract", "state:modified.contract" to defer_state checks, create new exception and tests. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have s...
2023-03-23T17:34:14Z
[CT-2038] Detect breaking changes to column names and data types in state:modified check If a model with `contract:true` has its column name/data types modified in a way that represents a breaking change, dbt should raise an error as part of the `state:modified` check. What constitutes a breaking change? - Removal...
Do we want this exception to be limited to commands where the user has explicitly selected `state:modified`? Or as soon as [previous state](https://github.com/dbt-labs/dbt-core/blob/b9fdfd9e3641e38ff4c96d3b20c5773e1ff50d54/core/dbt/task/runnable.py#L117-L124) is established? Although it feels a bit odd, I think I'm oka...
[ { "body": "If a model with `contract:true` has its column name/data types modified in a way that represents a breaking change, dbt should raise an error as part of the `state:modified` check. \r\n\r\nWhat constitutes a breaking change?\r\n- Removal of column\r\n- name change of column\r\n- data_type change of c...
ab496af1f061f8b5268d3b522b802a7f56543fb1
{ "head_commit": "2f0d6b72916dcc293753819e5cbfbf80f6340f9e", "head_commit_message": "Update artifacts tests. Add reason to exception.", "patch_to_review": "diff --git a/.changes/unreleased/Features-20230323-133026.yaml b/.changes/unreleased/Features-20230323-133026.yaml\nnew file mode 100644\nindex 00000000000..6...
[ { "diff_hunk": "@@ -497,6 +507,39 @@ def depends_on_nodes(self):\n def depends_on_macros(self):\n return self.depends_on.macros\n \n+ def build_contract_checksum(self):\n+ # We don't need to construct the checksum if the model does not\n+ # have contract enabled, because it won't be...
46ad6d3ac653f9eaac0cf2c4f1fe9c585d09d117
diff --git a/.changes/unreleased/Features-20230323-133026.yaml b/.changes/unreleased/Features-20230323-133026.yaml new file mode 100644 index 00000000000..67e3297f7d5 --- /dev/null +++ b/.changes/unreleased/Features-20230323-133026.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Detect breaking changes to contracts in stat...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-6713@bbb4f3c
dbt-labs/dbt-core
Python
6,713
CT 1894 log partial parsing var changes and sort cli vars before hashing
resolves #6710 ### Description If the order of vars passed on the command line changes, then partial parsing will be aborted. Sort the vars before hashing in order to avoid unnecessary reparsing. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBU...
2023-01-24T19:23:36Z
[CT-1894] Add logging to improve diagnosing of unable to partial parsing because vars have changed It's difficult to diagnose situations in which partial parsing is aborted due to changes in vars. Add logging to make it easier to determine what changed.
[ { "body": "It's difficult to diagnose situations in which partial parsing is aborted due to changes in vars. Add logging to make it easier to determine what changed.", "number": 6710, "title": "[CT-1894] Add logging to improve diagnosing of unable to partial parsing because vars have changed" } ]
17014bfad3e204279c94c6a0285f784fc10711eb
{ "head_commit": "bbb4f3ce3f1a4492dd61b8cc01bb46549c3e7537", "head_commit_message": "Add to test_events.py", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230124-141943.yaml b/.changes/unreleased/Fixes-20230124-141943.yaml\nnew file mode 100644\nindex 00000000000..4b85413de58\n--- /dev/null\n+++ b/...
[ { "diff_hunk": "@@ -843,6 +843,15 @@ def message(self) -> str:\n return f\"Unable to do partial parsing because {self.reason}\"\n \n \n+@dataclass\n+class StateCheckVarsHash(DebugLevel, pt.StateCheckVarsHash):\n+ def code(self):\n+ return \"I025\"\n+\n+ def message(self) -> str:\n+ r...
b5ff7839041825213a34f777ceea0e7450358ceb
diff --git a/.changes/unreleased/Fixes-20230124-141943.yaml b/.changes/unreleased/Fixes-20230124-141943.yaml new file mode 100644 index 00000000000..4b85413de58 --- /dev/null +++ b/.changes/unreleased/Fixes-20230124-141943.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Sort cli vars before hashing for partial parsing +time: ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-7450@9179070
dbt-labs/dbt-core
Python
7,450
Use profile specified in --profile with dbt init
resolves #6154 ### Description If --profile is specified with dbt init, and the profile exists, initialize the project with that as the profile instead of creating a new profile. If the profile does not exist, or the command is run inside an existing project, it fails with an error. ### Checklist - [X] I ha...
2023-04-24T20:32:58Z
[CT-1418] [Bug] CLI argument `--profile` ignored in `dbt init` ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior According to `dbt init --help`, the `--profile` option le...
hi @scheah92, thanks for reporting, I am able to reproduce this. my first thought was the order of arguments, so perhaps `dbt init proj1 --profile default` would work, but that behaves the same we are reworking our CLI commands as part of v1.4 and v1.5 and we can likely pick this up for those releases Hi @lostmygithu...
[ { "body": "### Is this a new bug in dbt-core?\n\n- [X] I believe this is a new bug in dbt-core\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\n\n### Current Behavior\n\nAccording to `dbt init --help`, the `--profile` option lets the user load an existing profile ...
7c1bd91d0ae3ecea12c7f755cd0b8bb44037f319
{ "head_commit": "9179070416b21e7fb07d7a6a5929f01d4576175a", "head_commit_message": "Use profile specified in --profile with dbt init", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230424-161642.yaml b/.changes/unreleased/Fixes-20230424-161642.yaml\nnew file mode 100644\nindex 00000000000..aeeb8e1...
[ { "diff_hunk": "@@ -0,0 +1,7 @@\n+kind: Fixes\n+body: If --profile specified with dbt-init, create the project with the specified\n+ profile\n+time: 2023-04-24T16:16:42.994547-04:00\n+custom:\n+ Author: ezraerb\n+ Issue: CT-1418", "line": null, "original_line": 7, "original_start_line": null, ...
9a58a15ad0d9f6b473fe0161c0a76fdb395a092f
diff --git a/.changes/unreleased/Fixes-20230424-161642.yaml b/.changes/unreleased/Fixes-20230424-161642.yaml new file mode 100644 index 00000000000..1eae7a7bd32 --- /dev/null +++ b/.changes/unreleased/Fixes-20230424-161642.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: If --profile specified with dbt-init, create the project...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-6494@cc47f7b
dbt-labs/dbt-core
Python
6,494
Partial parsing bug with empty schema file - ensure None is not passed to load_yaml_text
resolves #4850 ### Description The "contents" of a file object is defined as Optional[str] but load_yaml_text does not support passing in None from contents. Ensure that if field is set to None, an empty string is passed. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs...
2023-01-02T03:34:36Z
[CT-343] partial parse conflicts with generate_schema_name changes ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior We have a project with a custom generate_schema_name macro. If I change the macro generate_schema_name, project compilation fails with error `a s...
I have not been able to recreate this problem (though I don't have access to a Windows machine to test). Is there anything in the logs? Can you share your generate_schema_name macro? Could you try removing all files except the partial_parse.msgpack file from the target directory? Since the msgpack file has been loaded ...
[ { "body": "### Is there an existing issue for this?\n\n- [X] I have searched the existing issues\n\n### Current Behavior\n\nWe have a project with a custom generate_schema_name macro.\r\nIf I change the macro generate_schema_name, project compilation fails with error `a string or stream input is required`.\r\nI...
76fd12c7cdd3f8a0e0c921363fc1fada3eacb278
{ "head_commit": "cc47f7b21a56ce4a05b452046236fac35e5882a0", "head_commit_message": "Changie", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230101-223405.yaml b/.changes/unreleased/Fixes-20230101-223405.yaml\nnew file mode 100644\nindex 00000000000..d90e24aaa56\n--- /dev/null\n+++ b/.changes/unrel...
[ { "diff_hunk": "@@ -100,8 +100,11 @@\n def yaml_from_file(source_file: SchemaSourceFile) -> Dict[str, Any]:\n \"\"\"If loading the yaml fails, raise an exception.\"\"\"\n path = source_file.path.relative_path\n+ # File contents filed is Optional, and is sometimes None, so ensure\n+ # we are not pa...
79423cecebba0e382d65850f6be78d86f323d206
diff --git a/.changes/unreleased/Fixes-20230101-223405.yaml b/.changes/unreleased/Fixes-20230101-223405.yaml new file mode 100644 index 00000000000..d90e24aaa56 --- /dev/null +++ b/.changes/unreleased/Fixes-20230101-223405.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Bug when partial parsing with an empty schema file +time...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-6384@1ee15a4
dbt-labs/dbt-core
Python
6,384
CT 1604 remove compiled classes
resolves #6383 ### Description Remove compiled classes in order to simplify the artifact generation and code. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have signed the [CLA](https://d...
2022-12-05T21:48:25Z
[CT-1604] Remove Compiled Node classes As part of the structured logging updates, we are creating proto definitions for node output. Having separate "Parsed" and "Compiled" classes complicates this and also complicates the code. Remove the core/dbt/contracts/graph/compiled.py file and references to it. Remove "Pa...
[ { "body": "As part of the structured logging updates, we are creating proto definitions for node output. Having separate \"Parsed\" and \"Compiled\" classes complicates this and also complicates the code.\r\n\r\nRemove the core/dbt/contracts/graph/compiled.py file and references to it.\r\n\r\nRemove \"Parsed\" ...
16f529e1d4e067bdbb6a659a622bead442f24b4e
{ "head_commit": "1ee15a4445cd0d5870913ec59eb41bbadc6f62ce", "head_commit_message": "Initial pass at renaming Parsed nodes", "patch_to_review": "diff --git a/.changes/unreleased/Under the Hood-20221205-164948.yaml b/.changes/unreleased/Under the Hood-20221205-164948.yaml\nnew file mode 100644\nindex 00000000000.....
[ { "diff_hunk": "@@ -243,20 +242,19 @@ def create_from_node(\n def create_from(\n cls: Type[Self],\n config: HasQuoting,\n- node: Union[CompiledNode, ParsedNode, ParsedSourceDefinition],\n+ node: Union[ParsedNode, SourceDefinition],\n **kwargs: Any,\n ) -> Self:\n ...
92e97e5bf25058d256ce3bb61e0960bf619844b9
diff --git a/.changes/unreleased/Under the Hood-20221205-164948.yaml b/.changes/unreleased/Under the Hood-20221205-164948.yaml new file mode 100644 index 00000000000..579f973955b --- /dev/null +++ b/.changes/unreleased/Under the Hood-20221205-164948.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: Consolidate ParsedN...
{ "difficulty": "low", "estimated_review_effort": 3, "problem_domain": "Code Refactoring / Architectural Improvement" }
dbt-labs__dbt-core-6317@16525a1
dbt-labs/dbt-core
Python
6,317
Fix dbt.config.get default values (python-model)
resolves #6309 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. --> ### Description After this, will be possible to use default values for dbt.config.get ...
2022-11-24T18:13:42Z
[CT-1545] [Bug] dbt.config.get returns Undefined instead of the default value in Python model ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior `dbt.config.get("mi...
Related to https://github.com/dbt-labs/dbt-core/issues/5846. I can work in a PR to fix that. @devmessias Good catch, thanks for opening! This feels like a relatively simple & self-contained fix, so we'd welcome a contribution for it. Let us know if it turns out to be trickier than expected. > @devmessias Good catch,...
[ { "body": "### Is this a new bug in dbt-core?\r\n\r\n- [X] I believe this is a new bug in dbt-core\r\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\r\n\r\n### Current Behavior\r\n\r\n`dbt.config.get(\"missing_key\", \"default_value\")` default value dosen't work....
7d7066466db4aa34ec89f4f75d039f57b65fbf1e
{ "head_commit": "16525a1f06a913ee12e104f7dce931c8b697a5bf", "head_commit_message": "docs: changie yaml", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20221124-163419.yaml b/.changes/unreleased/Fixes-20221124-163419.yaml\nnew file mode 100644\nindex 00000000000..010a073269a\n--- /dev/null\n+++ b/.ch...
[ { "diff_hunk": "@@ -207,15 +207,33 @@ def parse_python_model(self, node, config, context):\n dbtParser = PythonParseVisitor(node)\n dbtParser.visit(tree)\n config_keys_used = []\n+ config_keys_defaults = []\n for (func, args, kwargs) in dbtParser.dbt_function_calls:\n ...
c220c0f69fc5e97bc1548ea98386aea38063ec8a
diff --git a/.changes/unreleased/Fixes-20221124-163419.yaml b/.changes/unreleased/Fixes-20221124-163419.yaml new file mode 100644 index 00000000000..010a073269a --- /dev/null +++ b/.changes/unreleased/Fixes-20221124-163419.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: After this, will be possible to use default values for d...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-7186@c6b5b12
dbt-labs/dbt-core
Python
7,186
Support configurable delimiter for seed files, default to comma (#3990)
resolves #3990 ### Original description Added support to configure a custom delimiter for seed files, defaults to comma. ### Copilot description This pull request introduces several changes related to seed files and configuration options. The most important changes include adding new test classes and methods to...
2023-03-17T13:52:45Z
Introduce "delimiter" parameter for seeds? Allow non-csv file types ### Describe the feature Use alternative delimiters for seeds besides "," (comma) ### Describe alternatives you've considered Currently, the only option is to load a non-csv seed into database as a temp table and then reference that as a "source"....
@sgoley When you say "non-csv file types," are you talking only about tabular data with non-comma delimiters (e.g. TSVs)? Or are you also thinking about other formats for structured data (JSON, XML, ...)? If it's just a question of delimiters, could you provide a bit more background on the difficulty you're encounte...
[ { "body": "### Describe the feature\r\nUse alternative delimiters for seeds besides \",\" (comma)\r\n\r\n### Describe alternatives you've considered\r\nCurrently, the only option is to load a non-csv seed into database as a temp table and then reference that as a \"source\".\r\n\r\n### Additional context\r\nNo,...
7872f6a67087b08e377cb580248a70355c6c3c76
{ "head_commit": "c6b5b12daffdd555a15c09358a9b933a87eac0dd", "head_commit_message": "Update Features-20230317-144957.yaml", "patch_to_review": "diff --git a/.changes/unreleased/Features-20230317-144957.yaml b/.changes/unreleased/Features-20230317-144957.yaml\nnew file mode 100644\nindex 00000000000..f00c52795c9\n...
[ { "diff_hunk": "@@ -435,6 +435,7 @@ class NodeConfig(NodeAndTestConfig):\n default_factory=dict,\n metadata=MergeBehavior.Update.meta(),\n )\n+ delimiter: str = \",\"", "line": null, "original_line": 438, "original_start_line": null, "path": "core/dbt/contracts/graph/model...
847eb2d6cd0c1ca3890712d490a9c863bfc1e6c9
diff --git a/.changes/unreleased/Features-20230714-202445.yaml b/.changes/unreleased/Features-20230714-202445.yaml new file mode 100644 index 00000000000..c72dfb0e8ea --- /dev/null +++ b/.changes/unreleased/Features-20230714-202445.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Added support to configure a delimiter for a...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-6064@c1152e2
dbt-labs/dbt-core
Python
6,064
Convert messages to struct logs
resolves #5957 ### Description Convert msg to be built in struct logs ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license...
2022-10-14T14:01:15Z
[CT-1267] Convert non-structured messages generated in exceptions.py to structured events We have a number of logging events in which the string message is generated by external utilities, mostly in various functions in exceptions.py. Because of this, the actual information used to structure the message is not include...
[ { "body": "We have a number of logging events in which the string message is generated by external utilities, mostly in various functions in exceptions.py. Because of this, the actual information used to structure the message is not included in the logging event. These events can be identified by the fact that...
8145eed603266951ce35858f7eef3836012090bd
{ "head_commit": "c1152e23e48bfb2a4442a152a26612d7e5278c66", "head_commit_message": "fix expected test message", "patch_to_review": "diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py\nindex 3c301c2e7f4..33b7c45a3c4 100644\n--- a/core/dbt/adapters/base/impl.py\n+++ b/core/dbt/adapters/ba...
[ { "diff_hunk": "@@ -16,17 +16,16 @@\n from dbt.contracts.connection import AdapterRequiredConfig, Credentials\n from dbt.contracts.graph.manifest import ManifestMetadata\n from dbt.contracts.relation import ComponentName\n-from dbt.ui import warning_tag\n \n from dbt.contracts.project import Configuration, User...
64cc12d0deb07204c471416666ba0e9ec20fc80c
diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py index 3c301c2e7f4..33b7c45a3c4 100644 --- a/core/dbt/adapters/base/impl.py +++ b/core/dbt/adapters/base/impl.py @@ -41,13 +41,13 @@ from dbt.contracts.graph.compiled import CompileResultNode, CompiledSeedNode from dbt.contracts.graph.manifes...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Code Refactoring / Architectural Improvement" }
dbt-labs__dbt-core-6022@0757fa0
dbt-labs/dbt-core
Python
6,022
Generate API docs
resolves #5528 ### Description Allows for the auto generation of docs for the high level CLI API. This does not also generate those docs via Github Actions, only enables their generation. ### Checklist - [X] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md)...
2022-10-07T14:06:03Z
[CT-902] CLI (Top level API) is automatically documented **User Story:** As a user I would like to have accurate and easy to read documentation for how to use `dbt-core` as a library. **Acceptance Criteria:** An auto-documentation product (probably Sphinx) is set up and documents the top-level api. This runs as a...
Let's make sure we account for accurate help text for commands which is referenced in this issue: https://github.com/dbt-labs/dbt-core/issues/5319 FYI-- I think there's been some confusion vis-a-vis the documentation. This ticket is to generate sphinx docs as a reference, it doesn't refer to help text at all. That...
[ { "body": "**User Story:**\r\nAs a user I would like to have accurate and easy to read documentation for how to use `dbt-core` as a library.\r\n\r\n**Acceptance Criteria:**\r\nAn auto-documentation product (probably Sphinx) is set up and documents the top-level api. This runs as a GHA.", "number": 5528, ...
95ad1ca4f89f422022e96af547dcd4aa5f288232
{ "head_commit": "0757fa08badf76f3abd3cefb87849a9c5053f757", "head_commit_message": "Add changie entry", "patch_to_review": "diff --git a/.changes/unreleased/Docs-20221007-090656.yaml b/.changes/unreleased/Docs-20221007-090656.yaml\nnew file mode 100644\nindex 00000000000..1159879a249\n--- /dev/null\n+++ b/.chang...
[ { "diff_hunk": "@@ -0,0 +1,5 @@\n+dbt-core\n+=======\n+\n+**dbt-core** An ELT tool for managing your SQL transformations and data models.", "line": null, "original_line": 4, "original_start_line": null, "path": "core/dbt/docs/README.rst", "start_line": null, "text": "@user1:\nJust for un...
437732be39c42c218910115776469c50197f4dd8
diff --git a/.changes/unreleased/Docs-20221007-090656.yaml b/.changes/unreleased/Docs-20221007-090656.yaml new file mode 100644 index 00000000000..1159879a249 --- /dev/null +++ b/.changes/unreleased/Docs-20221007-090656.yaml @@ -0,0 +1,7 @@ +kind: Docs +body: Generate API docs for new CLI interface +time: 2022-10-07T09...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Documentation Updates" }
dbt-labs__dbt-core-5873@ab34ec2
dbt-labs/dbt-core
Python
5,873
Adding metric expression validation
resolves #5871 ### Description - changing default value for expression to None - Adding test to confirm behavior ### Checklist - [X] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [X] I have signed the [CLA](http...
2022-09-16T20:46:08Z
[CT-1201] [Bug] Metrics don't require `expression` field ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior Ran into this behavior when working with a beta customer...
Thanks for the quick issue + PR Callum!
[ { "body": "### Is this a new bug in dbt-core?\r\n\r\n- [X] I believe this is a new bug in dbt-core\r\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\r\n\r\n### Current Behavior\r\n\r\nRan into this behavior when working with a beta customer. Right now, we provide ...
f5a94fc77428426002ef2a908ebf57a32597a627
{ "head_commit": "ab34ec2de46bfd6b7a0a2345149c2fe34e74429b", "head_commit_message": "updating for review", "patch_to_review": "diff --git a/.changes/unreleased/Under the Hood-20220916-154712.yaml b/.changes/unreleased/Under the Hood-20220916-154712.yaml\nnew file mode 100644\nindex 00000000000..1d425067d3e\n--- /...
[ { "diff_hunk": "@@ -196,6 +196,42 @@ def test_simple_metric(\n run_dbt([\"run\"])\n \n \n+invalid_metrics__missing_expression_yml = \"\"\"\n+version: 2\n+metrics:\n+ - name: number_of_people\n+ label: \"Number of people\"\n+ description: Total count of people\n+ calculation_method: count\n...
50938067d42677e2190ea4cc596d85ddc6565524
diff --git a/.changes/unreleased/Under the Hood-20220916-154712.yaml b/.changes/unreleased/Under the Hood-20220916-154712.yaml new file mode 100644 index 00000000000..1d425067d3e --- /dev/null +++ b/.changes/unreleased/Under the Hood-20220916-154712.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: Adding validation f...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-5895@8ea776d
dbt-labs/dbt-core
Python
5,895
improve error message for parsing args
resolves #5887 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. --> ### Description Adding more clear error message for parsing error in dbt python model, this...
2022-09-20T21:58:32Z
[CT-1215] [Bug] support indirect strings in `ref` and `source` for Python models ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior **EDIT**: see comment below. thi...
this is a bit complicated -- even this would fail: ```python def model(dbt, session): model_name = "orders" return dbt.ref(model_name) ``` intermediate step could be more clear error message
[ { "body": "### Is this a new bug in dbt-core?\r\n\r\n- [X] I believe this is a new bug in dbt-core\r\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\r\n\r\n### Current Behavior\r\n\r\n**EDIT**: see comment below. this does not fail due to iterables/lists/dictionar...
ae294b643be3b825865a4ce3ff9fe47b523256c6
{ "head_commit": "8ea776dd168aa830408cc70c12e2171ff76402ef", "head_commit_message": "update error message", "patch_to_review": "diff --git a/core/dbt/main.py b/core/dbt/main.py\nindex 0770a41ca8b..d708e5bd050 100644\n--- a/core/dbt/main.py\n+++ b/core/dbt/main.py\n@@ -1,4 +1,5 @@\n from typing import List\n+\n fr...
[ { "diff_hunk": "@@ -143,7 +149,8 @@ def main(args=None):\n \n except BaseException as e:\n fire_event(MainEncounteredError(exc=str(e)))\n- fire_event(MainStackTrace(stack_trace=traceback.format_exc()))\n+ if not isinstance(e, ParsingException):", "line": null, "...
4e35379e854b305925d1afa6545fc23c5e78e00d
diff --git a/core/dbt/main.py b/core/dbt/main.py index 0770a41ca8b..a7a3b3247bd 100644 --- a/core/dbt/main.py +++ b/core/dbt/main.py @@ -1,4 +1,5 @@ from typing import List + from dbt.logger import log_cache_events, log_manager import argparse @@ -43,7 +44,12 @@ from dbt.utils import ExitCodes, args_to_dict fr...
{ "difficulty": "low", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-6172@e3a8da4
dbt-labs/dbt-core
Python
6,172
CT 1443 remove root path
resolves #6171 ### Description As part of cleanup for the structured logging effort, remove the 'root_path' field from most nodes. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have sig...
2022-10-28T14:47:44Z
[CT-1443] Remove 'root_path' from most node definitions We are moving towards enabling manifests to be portable. Currently we include the 'root_path' of the project in every node, which is duplicative and non-portable. In addition, this field is hardly used. Remove root_path from the node class definitions. Note:...
[ { "body": "We are moving towards enabling manifests to be portable. Currently we include the 'root_path' of the project in every node, which is duplicative and non-portable. In addition, this field is hardly used.\r\n\r\nRemove root_path from the node class definitions.\r\n\r\nNote: because we don't load seed c...
68d06d8a9cea28600ed9c3f375605c9467247316
{ "head_commit": "e3a8da49e3f33f7c3ce71d387d4f7fe7fa96118d", "head_commit_message": "Changie", "patch_to_review": "diff --git a/.changes/unreleased/Under the Hood-20221028-104837.yaml b/.changes/unreleased/Under the Hood-20221028-104837.yaml\nnew file mode 100644\nindex 00000000000..22ad4901794\n--- /dev/null\n++...
[ { "diff_hunk": "@@ -366,9 +365,6 @@\n \"package_name\": {\n \"type\": \"string\"\n },\n- \"root_path\": {\n- \"type\": \"string\"\n- },", "line": null, "original_line": 371, "original_start_line": 369, "path": "schemas/dbt/manifest/v7.json", "...
d83c734f1e2abee82489c0b670039929b4cb86e4
diff --git a/.changes/unreleased/Under the Hood-20221028-104837.yaml b/.changes/unreleased/Under the Hood-20221028-104837.yaml new file mode 100644 index 00000000000..22ad4901794 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20221028-104837.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: Remove the 'root_pa...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Code Refactoring / Architectural Improvement" }
dbt-labs__dbt-core-5868@931c603
dbt-labs/dbt-core
Python
5,868
Disabled Models in schema files
resolves #3992 ### Description - throw correct exception for models disabled in schema files - fix bug when chained disabled models incorrectly throw exception - Add tests ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understan...
2022-09-16T15:33:54Z
[CT-232] Setting enabled to False in schema config does not move model to disabled In the model node, NodeConfig.enabled equals False, but because the node isn't moved into the disabled dictionary, it doesn't have the correct error messages. Instead of the node is disabled messages, nodes referring to the disabled node...
In addition, I don't think we ever remove models from 'disabled', which didn't matter that much without partial parsing, but probably should be fixed. And a model that starts out 'disabled' can now be subsequently enabled via patch config, so we need to apply patches to disabled nodes and put them in the right place. ...
[ { "body": "In the model node, NodeConfig.enabled equals False, but because the node isn't moved into the disabled dictionary, it doesn't have the correct error messages. Instead of the node is disabled messages, nodes referring to the disabled node cause an error \"Model ... depends on a node named ... which wa...
8129862b3c0080215cae2748d54354649a6f8abe
{ "head_commit": "931c603267b9b2547a0e04a45bd3cb82f07a1739", "head_commit_message": "remove comments", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20220916-104854.yaml b/.changes/unreleased/Fixes-20220916-104854.yaml\nnew file mode 100644\nindex 00000000000..64e76c43a3f\n--- /dev/null\n+++ b/.chang...
[ { "diff_hunk": "@@ -885,11 +888,20 @@ def parse_patch(self, block: TargetBlock[NodeTarget], refs: ParserRef) -> None:\n # Node might be disabled. Following call returns list of matching disabled nodes\n found_nodes = self.manifest.disabled_lookup.find(patch.name, patch.package_name)\n ...
78c58af37e60f97a4e1886ec0e2aeb45c7d0e20a
diff --git a/.changes/unreleased/Fixes-20220916-104854.yaml b/.changes/unreleased/Fixes-20220916-104854.yaml new file mode 100644 index 00000000000..64e76c43a3f --- /dev/null +++ b/.changes/unreleased/Fixes-20220916-104854.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: Account for disabled flags on models in schema files mor...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-5859@166fb1d
dbt-labs/dbt-core
Python
5,859
feature/favor-state-node
resolves #5016 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. --> ### Description <!--- Describe the Pull Request here. Add any references and info to ...
2022-09-16T13:25:09Z
[CT-470] [Feature] Add option for --defer to favor using --state node even if node exists in current target ### Is there an existing feature request for this? - [X] I have searched the existing issues ### Describe the Feature This is the current behaviour of the `--defer` flag: > When the --defer flag is provided...
PR [here](https://github.com/dbt-labs/dbt-core/pull/5017) of the proposed changes Hi @daniel-murray, thanks so much for the contribution! I'll give this PR a review shortly, but in the meantime can you please fill out [our CLA](https://docs.getdbt.com/docs/contributing/contributor-license-agreements) so we can get thi...
[ { "body": "### Is there an existing feature request for this?\n\n- [X] I have searched the existing issues\n\n### Describe the Feature\n\nThis is the current behaviour of the `--defer` flag:\r\n\r\n> When the --defer flag is provided, dbt will resolve ref calls differently depending on two criteria:\r\n> Is the...
fa4f9d3d97dd3207720867cb3b493bea3ca58a42
{ "head_commit": "166fb1d6f538fdb846d71e410e50e646e8d388f7", "head_commit_message": "Update test/integration/062_defer_state_tests/test_defer_state.py\n\nCo-authored-by: Stu Kilgore <stuart.kilgore@gmail.com>", "patch_to_review": "diff --git a/.changes/unreleased/Features-20220408-165459.yaml b/.changes/unrelease...
[ { "diff_hunk": "@@ -169,6 +235,23 @@ def run_defer_iff_not_exists(self):\n assert self.other_schema not in results[0].node.compiled_code\n assert self.unique_schema() in results[0].node.compiled_code\n \n+ def run_defer_iff_not_exists_favor_state(self):\n+ results = self.run_dbt(['seed...
e428cd0ece88930533c193c7ea4a231aec795735
diff --git a/.changes/unreleased/Features-20220408-165459.yaml b/.changes/unreleased/Features-20220408-165459.yaml new file mode 100644 index 00000000000..c29cfc617c7 --- /dev/null +++ b/.changes/unreleased/Features-20220408-165459.yaml @@ -0,0 +1,8 @@ +kind: Features +body: Added favor-state flag to optionally favor s...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-5789@54f198c
dbt-labs/dbt-core
Python
5,789
Complete CLI modeling for Click
resolves #5526 ### Description New Click CLI that models the existing cli ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-licens...
2022-09-08T15:50:07Z
[CT-900] Complete CLI modeling (Top level API) **User story:** As developer of dbt or a developer who would like to use dbt as a library, I would like to have an easily usable interface that models the user interactions at the CLI level (`dbt compile`, `dbt run`, etc). **Acceptance Criteria:** Extending the work d...
[ { "body": "**User story:**\r\nAs developer of dbt or a developer who would like to use dbt as a library, I would like to have an easily usable interface that models the user interactions at the CLI level (`dbt compile`, `dbt run`, etc).\r\n\r\n**Acceptance Criteria:**\r\nExtending the work done in the RAT, `dbt...
e3452b9a8feeb89cc449f1bbc9109f03e7e52bf4
{ "head_commit": "54f198c8aea2ed35291933d6a26d7638e1b15bda", "head_commit_message": "changelog", "patch_to_review": "diff --git a/.changes/unreleased/Features-20220908-104149.yaml b/.changes/unreleased/Features-20220908-104149.yaml\nnew file mode 100644\nindex 00000000000..c975dfb1446\n--- /dev/null\n+++ b/.chang...
[ { "diff_hunk": "@@ -43,9 +43,7 @@\n include_package_data=True,\n test_suite=\"test\",\n entry_points={\n- \"console_scripts\": [\n- \"dbt = dbt.main:main\",\n- ],\n+ \"console_scripts\": [\"dbt = dbt.main:main\", \"dbt-cli = dbt.cli.main:cli\"],", "line": null, ...
87a56acff10fd712f5c8d1e594175a9059260632
diff --git a/.changes/unreleased/Features-20220908-104149.yaml b/.changes/unreleased/Features-20220908-104149.yaml new file mode 100644 index 00000000000..c975dfb1446 --- /dev/null +++ b/.changes/unreleased/Features-20220908-104149.yaml @@ -0,0 +1,7 @@ +kind: Features +body: Adds new cli framework +time: 2022-09-08T10:...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-5292@9f27907
dbt-labs/dbt-core
Python
5,292
Fix postgres handling for unlimited varchars
resolves #5238 ### Description Handles `varchar` the same way as `text` for postgres columns (since unlimited `varchar` on postgres is not implicitely limited to 256 characters as on redshift) ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTI...
2022-05-23T08:38:23Z
[CT-636] [Bug] Postgres unlimited varchar default to varchar(256) ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior When using postgres adapter with some varchar typed columns (like when using dbt_utils.type_string()), if you use incremental materialization...
> Just wondered if this shall be fixed in the PostgresColumn class (that already handles text columns this way), or if we shall just update the dbt_utils.string_type macro to use text instead of varchar for postgres Yes! Very relevant: https://github.com/dbt-labs/dbt-utils/pull/586 Seems really nice ! If i underst...
[ { "body": "### Is there an existing issue for this?\r\n\r\n- [X] I have searched the existing issues\r\n\r\n### Current Behavior\r\n\r\nWhen using postgres adapter with some varchar typed columns (like when using dbt_utils.type_string()), if you use incremental materialization with sync_new_columns or append_ne...
aeee1c23a6826aa1d254a939655cb514f38db649
{ "head_commit": "9f2790798549e0143d542ae2d81cf3623f47e4ee", "head_commit_message": "chore: added changelog entry", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20220523-103843.yaml b/.changes/unreleased/Fixes-20220523-103843.yaml\nnew file mode 100644\nindex 00000000000..1235865763c\n--- /dev/null\...
[ { "diff_hunk": "@@ -0,0 +1,8 @@\n+kind: Fixes\n+body: Remove the default 256 characters limit on postgres character varying type when\n+ no limitation is set\n+time: 2022-05-23T10:38:43.392232+02:00\n+custom:\n+ Author: shrodingers\n+ Issue: \"636\"", "line": null, "original_line": 7, "original_s...
d1b75289595b95f3ac2055b19b7ba5b9e11c9acf
diff --git a/.changes/unreleased/Fixes-20220523-103843.yaml b/.changes/unreleased/Fixes-20220523-103843.yaml new file mode 100644 index 00000000000..15a2342d7d8 --- /dev/null +++ b/.changes/unreleased/Fixes-20220523-103843.yaml @@ -0,0 +1,8 @@ +kind: Fixes +body: Remove the default 256 characters limit on postgres char...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-4587@19ded66
dbt-labs/dbt-core
Python
4,587
Clarify "incompatible package version" error msg
resolves #4586 ### Description Gives an actionable error message when a package isn’t compatible with the current version of dbt core. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [ ] I have run this code in development and it appears to resolve ...
2022-01-19T00:16:15Z
[CT-57] [Feature] Clarify what to do when getting a version incompatibility error ### Is there an existing feature request for this? - [X] I have searched the existing issues ### Describe the Feature When trying to run dbt with a package that's incompatible due to require-dbt-version, the error message says "Check t...
[ { "body": "### Is there an existing feature request for this?\n\n- [X] I have searched the existing issues\n\n### Describe the Feature\n\nWhen trying to run dbt with a package that's incompatible due to require-dbt-version, the error message says \"Check the requirements for the 'dbt_utils' package, or run dbt ...
5aeb088a732d280c7e5211780e2ea44a01a4760d
{ "head_commit": "19ded66eb95025af94efd5d035ac60d24682e83c", "head_commit_message": "Clarify \"incompatible package version\" error msg", "patch_to_review": "diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py\nindex e343d5c860c..8f4a931522c 100644\n--- a/core/dbt/config/project.py\n+++ b/core/db...
[ { "diff_hunk": "@@ -45,7 +45,7 @@\n This version of dbt is not supported with the '{package}' package.\n Installed version of dbt: {installed}\n Required version of dbt for '{package}': {version_spec}\n-Check the requirements for the '{package}' package, or run dbt again with \\\n+Check for an updated versi...
7784ebd4a6482b07882a76fdf672663ed7df84c2
diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py index e343d5c860c..46a09d0338a 100644 --- a/core/dbt/config/project.py +++ b/core/dbt/config/project.py @@ -45,7 +45,7 @@ This version of dbt is not supported with the '{package}' package. Installed version of dbt: {installed} Required version ...
{ "difficulty": "low", "estimated_review_effort": 1, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-4986@7e9cd5b
dbt-labs/dbt-core
Python
4,986
Remove TableComparison and convert existing calls to use dbt.tests.util
resolves #4778 ### Description Remove TableComparison and the dbt.test.tables file. Replace existing calls to TableComparison to functions in dbt.tests.util which were converted from dbt-adapter-tests. Add some comments. I fixed a commented out assert in the dbt_run function, and had to update a bunch of te...
2022-04-01T19:46:15Z
[CT-281] Make obsolete the test compare tables code now in core/dbt/tests/tables.py As part of the conversion to switching from unittest to pytest, the code in test/integration/base.py that implements the five table comparison assertions was pulled into a separate file, core/dbt/tests/tables.py. There are better ways ...
In particular, there's a lot of overlap between what's in [`tables.py`](https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/tests/tables.py), and what's been implemented to power the (relatively newer) suite of basic adapter tests [here](https://github.com/dbt-labs/dbt-core/blob/ea5a9da71ef71cc13414cd8c2f8097448add...
[ { "body": "As part of the conversion to switching from unittest to pytest, the code in test/integration/base.py that implements the five table comparison assertions was pulled into a separate file, core/dbt/tests/tables.py. There are better ways to do this, including using macros and data tests. \n\nImplement ...
7f953a6d48a4db254b17fd3929d267e4b6069228
{ "head_commit": "7e9cd5b1e32838df82628b8ac05b4df3523c9f25", "head_commit_message": "Minor cleanup", "patch_to_review": "diff --git a/.changes/unreleased/Under the Hood-20220401-154729.yaml b/.changes/unreleased/Under the Hood-20220401-154729.yaml\nnew file mode 100644\nindex 00000000000..6556d742b0b\n--- /dev/nu...
[ { "diff_hunk": "@@ -311,17 +375,47 @@ def generate_update_clause(adapter, clause) -> str:\n raise TestProcessingException(\"Invalid update_rows clause: no src_col\")\n add_to = clause[\"src_col\"]\n kwargs = {k: v for k, v in clause.items() if k in (\"interval\", \"number\")}\n- ...
eaf7a2cf99de132940436de521394cc18428a41f
diff --git a/.changes/unreleased/Under the Hood-20220401-154729.yaml b/.changes/unreleased/Under the Hood-20220401-154729.yaml new file mode 100644 index 00000000000..6556d742b0b --- /dev/null +++ b/.changes/unreleased/Under the Hood-20220401-154729.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: Remove TableCompari...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Code Refactoring / Architectural Improvement" }
dbt-labs__dbt-core-3724@c6f05cc
dbt-labs/dbt-core
Python
3,724
Combine integration test workflows
- Combines the integration test workflows from #3669 - splits up unit tests and code linting so it is clear what each workflow is responsible for This PR builds on top of #3669. In #3669 there are two workflows for integration tests, one for PRs and one for pushes to release branches (so after merging PRs). I don't...
2021-08-11T13:18:10Z
Move CI to GitHub Actions see title 😄 - helpful for all of CI to be located in one place - logs and artifacts are easily accessible for the same UI the codebase lives in - noticeable increase in speed - ability to control concurrency if we notice parallel test runs overloading sandbox warehouses - a safer way ...
[ { "body": "see title 😄 \r\n\r\n- helpful for all of CI to be located in one place\r\n- logs and artifacts are easily accessible for the same UI the codebase lives in\r\n- noticeable increase in speed\r\n- ability to control concurrency if we notice parallel test runs overloading sandbox warehouses\r\n- a safer...
b2348a905d526c15110fe459446f6c8f9934a44b
{ "head_commit": "c6f05cc562c8f154213d3fccecc294c30a6e8a0a", "head_commit_message": "split up lint and unit workflows for clear resposibilites", "patch_to_review": "diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml\nindex 46c82e1b195..5707dfc743b 100644\n--- a/.github/workflows/build.yml\n+++...
[ { "diff_hunk": "@@ -17,32 +22,30 @@ on:\n - \"*.latest\"\n - \"releases/*\"\n pull_request:\n+ branches-ignore:", "line": null, "original_line": 25, "original_start_line": null, "path": ".github/workflows/unit.yml", "start_line": null, "text": "@user1:\nDo we have unit t...
25f430215f480fd4c341579139f7502dbb229128
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46c82e1b195..e9862d7de58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,15 @@ -# **what?** - This workflow builds python packages and ensures they can be +# **what?** +# This workflow builds python packa...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Test Suite / CI Enhancements" }
dbt-labs__dbt-core-4017@98de45b
dbt-labs/dbt-core
Python
4,017
Smart Reruns from Failures/Errors
resolves #3891 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. Example: resolves #1234 --> ### Description <!--- Describe the Pull Request here --...
2021-10-06T21:46:30Z
Checkpointing in dbt ### Describe the feature A checkpointing mechanism that can be used to start from a failure point when running a `dbt run` statement. ### Describe alternatives you've considered As I'm running `dbt run` via cli, I'm using some shell/python scripts to create a checkpoint file (a txt file with t...
@fclesio Agree big-time! The way I've been thinking about this: dbt should be able to read the artifact from a prior run (namely `run_results.json`), and select all nodes with a certain [status](https://schemas.getdbt.com/dbt/run-results/v2/index.html#tab-pane_results_items_status_oneOf_i0). That could look like `db...
[ { "body": "### Describe the feature\r\nA checkpointing mechanism that can be used to start from a failure point when running a `dbt run` statement.\r\n\r\n### Describe alternatives you've considered\r\nAs I'm running `dbt run` via cli, I'm using some shell/python scripts to create a checkpoint file (a txt file ...
5f483a6b136231f49b23ab2889463d88f563dd4d
{ "head_commit": "98de45bebc5466a7fadad36d77fe9d4d969d5884", "head_commit_message": "Update changelog", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex bfa5948e5f6..fd562f339ff 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -1,8 +1,15 @@\n ## dbt-core 1.0.0 (Release TBD)\n \n-## dbt-core 1...
[ { "diff_hunk": "@@ -0,0 +1,436 @@\n+from test.integration.base import DBTIntegrationTest, use_profile\n+import os\n+import random\n+import shutil\n+import string\n+\n+import pytest\n+\n+from dbt.exceptions import CompilationException\n+\n+\n+class TestRunResultsState(DBTIntegrationTest):\n+ @property\n+ d...
0250e4f13d1e673b59dcafd54d362dab0eb47538
diff --git a/CHANGELOG.md b/CHANGELOG.md index 385c8771bc8..dd21b3598f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,22 @@ ## dbt-core 1.0.0 (Release TBD) ### Breaking changes + - Enable `on-run-start` and `on-run-end` hooks for `dbt test`. Add `flags.WHICH` to execution context, representing current t...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-5395@a1d75c1
dbt-labs/dbt-core
Python
5,395
Fix/incremental column precision changes
resolves #5351 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. --> ### Description <!--- Describe the Pull Request here. Add any references and info to h...
2022-06-18T02:37:26Z
[CT-736] [CT-735] varchar column reduces in size on an incremental run which leads to "Value too long for character type" error ### Describe the bug I have an incremental model with the following properties: ``` materialized="incremental", sort="date_col", dist="date_col", unique_key="user_id_date", incremen...
@stnguyen Thanks for opening! It sounds like `on_schema_change` logic [here](https://github.com/dbt-labs/dbt-core/blob/72b6a80b07b3acc9aa64ae65c5d82191dbb1aa11/core/dbt/include/global_project/macros/materializations/models/incremental/on_schema_change.sql#L79-L85), or more likely the logic in [`diff_column_data_type...
[ { "body": "### Describe the bug\r\n\r\nI have an incremental model with the following properties:\r\n\r\n```\r\nmaterialized=\"incremental\",\r\nsort=\"date_col\",\r\ndist=\"date_col\",\r\nunique_key=\"user_id_date\",\r\nincremental_strategy=\"merge\",\r\non_schema_change=\"sync_all_columns\"\r\n```\r\n\r\nThe ...
a3b018fd3b0c789c976e0e189788471edef8acb1
{ "head_commit": "a1d75c1adb112281619527e9736e597db7815eb2", "head_commit_message": "Move test from integration to adapter tests", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20220617-193731.yaml b/.changes/unreleased/Fixes-20220617-193731.yaml\nnew file mode 100644\nindex 00000000000..dc52163d3f3\...
[ { "diff_hunk": "@@ -58,5 +60,30 @@ def test_incremental(self, project):\n assert len(catalog.sources) == 1\n \n \n+class BaseIncrementalNotSchemaChange:\n+ @pytest.fixture(scope=\"class\")\n+ def project_config_update(self):\n+ return {\"name\": \"incremental\"}\n+\n+ @pytest.fixture(sco...
74af5b0201fc009cd275071aa270767358e4e91c
diff --git a/.changes/unreleased/Fixes-20220617-193731.yaml b/.changes/unreleased/Fixes-20220617-193731.yaml new file mode 100644 index 00000000000..dc52163d3f3 --- /dev/null +++ b/.changes/unreleased/Fixes-20220617-193731.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: 'Resolves #5351 - Do not consider shorter varchar cols a...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-3729@5c6a5f6
dbt-labs/dbt-core
Python
3,729
Retry GitHub download failures
resolves https://github.com/dbt-labs/dbt/issues/3546 ### Description We are seeing `dbt deps` fail intermittently when trying to reach out to GitHub. We do retry logic for when we reach out to the registry hub so we want to try the same retry logic for GitHub to see if it improves the success rate of `dbt deps`. ...
2021-08-11T15:54:55Z
Detect GitHub network errors and provide a clean error that defines that a bad response came from GitHub ### Describe the feature When running `dbt deps`, we found multiple users coming across different error states: * tarfile.ReadError: file could not be opened successfully * 2021-06-28 17:02:01.465062 (MainThread)...
Thanks for opening @heysweet! This was cropping up in the `install` method of `dbt deps`. We failed to download the tar package, so when it came time to unpack ("untar") it, there was no tar there: https://github.com/dbt-labs/dbt/blob/f460d275baa4df8cf8713f27e198a3577d6ea71c/core/dbt/deps/registry.py#L63-L67 P...
[ { "body": "### Describe the feature\r\nWhen running `dbt deps`, we found multiple users coming across different error states:\r\n* tarfile.ReadError: file could not be opened successfully\r\n* 2021-06-28 17:02:01.465062 (MainThread): STDOUT: \"b''\"\r\n2021-06-28 17:02:01.465389 (MainThread): STDERR: \"b\"fatal...
1a984601ee964fff59e338805ab49a1e8489e342
{ "head_commit": "5c6a5f6cc167aad2708d1db4315a05cbf20a494e", "head_commit_message": "Fixed linting and added comment", "patch_to_review": "diff --git a/core/dbt/clients/registry.py b/core/dbt/clients/registry.py\nindex 30b2c9020e6..78e569a8a3a 100644\n--- a/core/dbt/clients/registry.py\n+++ b/core/dbt/clients/reg...
[ { "diff_hunk": "@@ -0,0 +1,41 @@\n+import requests\n+import unittest\n+\n+from dbt.exceptions import ConnectionException\n+from dbt.utils import _connection_exception_retry as connection_exception_retry\n+\n+\n+class testCoreDbtUtils(unittest.TestCase):\n+ def test_connection_exception_retry_none(self):\n+ ...
efbf59f256e19b2da8a52b11b7aede0b4bca5207
diff --git a/core/dbt/clients/registry.py b/core/dbt/clients/registry.py index 30b2c9020e6..1d6ac5c7675 100644 --- a/core/dbt/clients/registry.py +++ b/core/dbt/clients/registry.py @@ -1,10 +1,8 @@ -from functools import wraps +import functools import requests -from dbt.exceptions import RegistryException -from dbt.ut...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-3834@3762a8b
dbt-labs/dbt-core
Python
3,834
#3694
resolves #3694 ### Description Normally for BigQuery connection profiles, dataset is a synonym for schema to reflect the BigQuery jargon but there was a bug for snapshots with this synonym. Comments with conjunctions (eg. isn't, wasn't, aren't) do not play nicely with linting in vscode and were hard to read t...
2021-08-30T12:05:13Z
dataset not a valid synonym for schema for snapshots when using bigquery ### Describe the bug ``` Running with dbt=0.20.0 Encountered an error: Compilation Error in snapshot orders_snapshot (snapshots/orders.sql) at path []: Snapshots must be configured with a 'strategy', 'unique_key', and 'target_schema'. ``...
@dbrtly Thanks for opening! It's totally reasonable that you'd expect this to work, and I think it will only take a touch of movie magic to make it so. Each data warehouse adapter is able to define custom aliases, when that warehouse uses a different word from the one dbt generally uses. To that end, there's a `tran...
[ { "body": "### Describe the bug\r\n\r\n```\r\nRunning with dbt=0.20.0\r\nEncountered an error:\r\nCompilation Error in snapshot orders_snapshot (snapshots/orders.sql)\r\n at path []: Snapshots must be configured with a 'strategy', 'unique_key', and 'target_schema'.\r\n``` \r\n\r\n\r\n### Steps To Reproduce\r\...
464becacd019b4105c503db4d96a22a6caedcb16
{ "head_commit": "3762a8bd89f7db016a0b067ed729b014dde41ddf", "head_commit_message": "Update CHANGELOG.md\n\nBe more specific about the change to bigquery synonym for schema only.", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 68bb78cb968..2d12b5a930c 100644\n--- a/CHANGELOG.md\n+++ b/CHANGE...
[ { "diff_hunk": "@@ -1,10 +1,10 @@\n {% snapshot snapshot_actual %}\n {# this used to be check_cols=('email',), which ought to be totally valid,\n- but isn't because type systems are hard. #}\n+ but is not because type systems are hard. #}\n {{\n config(\n target_database=var('t...
b3f968f4fbaf1f92558ad985aaee2318b151f56e
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f66d725642..b7450f61e2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - to simplify config (default usage of `copy_materialization='table'` if is is not found in global or local config) - to let copy several source tables into single target table at ...
{ "difficulty": "low", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-5790@9bc6cc1
dbt-labs/dbt-core
Python
5,790
Flags work with Click
resolves #5529 ### Description Adds a new version of the flags module. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md) and understand what's expected of me - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license...
2022-09-08T16:04:49Z
[CT-905] Flags work with Click User Story: As a developer of `dbt-core` I want env vars to be handled in the same consistent manner as cli command parameters. Acceptance Criteria: * All Flags are implemented as click params / default values and as such as available within the context of a click command. * Existin...
[ { "body": "User Story:\r\nAs a developer of `dbt-core` I want env vars to be handled in the same consistent manner as cli command parameters.\r\n\r\nAcceptance Criteria:\r\n* All Flags are implemented as click params / default values and as such as available within the context of a click command.\r\n* Existing ...
e00eb9aa3a173ecf40f0e0190fb496a64d3ca876
{ "head_commit": "9bc6cc1f01f2795e27dc4628239927e7ee8dd4ee", "head_commit_message": "PR feedback", "patch_to_review": "diff --git a/.changes/unreleased/Features-20220908-123650.yaml b/.changes/unreleased/Features-20220908-123650.yaml\nnew file mode 100644\nindex 00000000000..a68f1d55b23\n--- /dev/null\n+++ b/.cha...
[ { "diff_hunk": "@@ -0,0 +1,386 @@\n+from pathlib import Path, PurePath\n+\n+import click\n+from dbt.cli.option_types import YAML\n+\n+# TODO: The name (reflected in flags) is a correction!\n+# The original name was `SEND_ANONYMOUS_USAGE_STATS` and used an env var called \"DBT_SEND_ANONYMOUS_USAGE_STATS\"\n+# B...
3965703fe3f6fa3e6ebabb7f65aa2084688ca57f
diff --git a/.changes/unreleased/Features-20220908-123650.yaml b/.changes/unreleased/Features-20220908-123650.yaml new file mode 100644 index 00000000000..a68f1d55b23 --- /dev/null +++ b/.changes/unreleased/Features-20220908-123650.yaml @@ -0,0 +1,7 @@ +kind: Features +body: Flags work with new Click CLI +time: 2022-09...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-4487@b2354af
dbt-labs/dbt-core
Python
4,487
New Dockerfile
resolves - Partially resolves #4495 ### Description Updated dockerfile. Images created should retain the previous dockerfile's functionality without requiring all the scripting and env var juggling. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x...
2021-12-14T21:47:00Z
[Feature] Update Dockerfile and docker image release process ### Is there an existing feature request for this? - [X] I have searched the existing issues ### Describe the Feature Our Dockerfile/image release process has been at least somewhat broken since we divided the codebase into `dbt-core` + `<dbt-adaptername>`...
Duplicate of CORE-21 in Jira. @iknox-fa Thanks for opening! Here's a proposed build matrix, for when we should actually build/tag/push new images: | image / tag | `latest` | minor latest (e.g. `1.0.latest`) | specific version (...
[ { "body": "### Is there an existing feature request for this?\n\n- [X] I have searched the existing issues\n\n### Describe the Feature\n\nOur Dockerfile/image release process has been at least somewhat broken since we divided the codebase into `dbt-core` + `<dbt-adaptername>`. This ticket encompasses the work ...
8463af35c3e9f09af94f3b334439b6f2358bc023
{ "head_commit": "b2354af7e1e379916a627ec2291816a19bc711a5", "head_commit_message": "Updated refs to be tag-based because bumpversion doesn't understand 'latest'", "patch_to_review": "diff --git a/.bumpversion.cfg b/.bumpversion.cfg\nindex b7f332c4c17..c60dcf84bba 100644\n--- a/.bumpversion.cfg\n+++ b/.bumpversio...
[ { "diff_hunk": "@@ -1,34 +1,127 @@\n-ARG BASE_IMAGE=python:3.8-slim-bullseye\n+##\n+# Generic dockerfile for dbt image building. \n+# See README for operational details\n+##\n \n-FROM $BASE_IMAGE\n-ARG BASE_REQUIREMENTS_SRC_PATH\n-ARG WHEEL_REQUIREMENTS_SRC_PATH\n-ARG DIST_PATH\n+##\n+# base image (abstract)...
5e013e79147c3459e5548f10e1cbd789b226e1fb
diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 2300c00d63a..c5a4e4ee7af 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -36,4 +36,4 @@ first_value = 1 [bumpversion:file:plugins/postgres/dbt/adapters/postgres/__version__.py] -[bumpversion:file:docker/requirements/requirements.txt] +[bumpversion:file...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-3606@acefced
dbt-labs/dbt-core
Python
3,606
BigQuery copy materialization enhancement
resolves #3570 ### Description 1. Add implicit usage of `copy_materialization='table'` if it is not found in config (simplification for end-user) 2. Align `adapter.table_copy` implementation with [BigQuery documentation](https://cloud.google.com/bigquery/docs/managing-tables#copying_multiple_source_tables) (abil...
2021-07-21T14:11:25Z
BigQuery 'copy' materialization doesn't work Trying to check model: ```sql {{ config( materialized='copy' )}} select * from {{ source('int', 'Order_delta') }} ``` and receive following error: ``` Running with dbt=0.20.0 Found 2 models, 0 tests, 0 snapshots, 0 analyses, 166 macros, 0 operations, 0 seed...
@xemuliam You're right, this is an undocumented feature in dbt today, added by https://github.com/dbt-labs/dbt/pull/2709 last year. It's been useful, here or there, to have access to the `adapter.copy_table()` method—playing around with potential approaches to schema migration, or blue/green deployment. Frankly, I have...
[ { "body": "Trying to check model:\r\n```sql\r\n{{ config(\r\n materialized='copy'\r\n)}}\r\n\r\nselect * from {{ source('int', 'Order_delta') }}\r\n```\r\n and receive following error:\r\n ```\r\nRunning with dbt=0.20.0\r\nFound 2 models, 0 tests, 0 snapshots, 0 analyses, 166 macros, 0 operations, 0 seed fil...
9e796671dd55d4781284d36c035d1db19641cd80
{ "head_commit": "acefced3f620833a4cf21d5f483f935e5830cf8e", "head_commit_message": "Split long code ilnes", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 27252b6fcec..3c7400fb462 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -1,5 +1,11 @@\n ## dbt 0.21.0 (Release TBD)\n \n+### Features...
[ { "diff_hunk": "@@ -0,0 +1,6 @@\n+version: 2\n+sources:\n+ - name: test_copy_several_tables\n+ schema: \"{{ target.schema) }}\"", "line": null, "original_line": 4, "original_start_line": null, "path": "test/integration/022_bigquery_test/copy-models/schema.yml", "start_line": null, "t...
4202a6330a6f02e60911caa1bea4ec773e28c418
diff --git a/CHANGELOG.md b/CHANGELOG.md index 27252b6fcec..8eeae1ff963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,19 @@ ## dbt 0.21.0 (Release TBD) +### Features + +- Enhance BigQuery copy materialization ([#3570](https://github.com/dbt-labs/dbt/issues/3570), [#3606](https://github.com/dbt-labs/dbt/pul...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-3385@50906f9
dbt-labs/dbt-core
Python
3,385
Running a snapshot with missing required configurations results in un...
…caught Python exception (#3381) * Running a snapshot with missing required configurations results in uncaught Python exception resolves #3381 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CON...
2021-05-22T01:01:05Z
Running a snapshot with missing required configurations results in uncaught Python exception ### Describe the bug In an attempt to educate myself on how snapshots work, I created a snapshot to test out, but neglected to realize that the configuration object was required. When I ran `dbt snapshot`, it failed with a fai...
@jnatkins Such a good issue, and a great catch, thank you for opening! I think there's a pretty straightforward resolution here, which is adding a check to the `validate` method of `SnapshotConfig`: https://github.com/fishtown-analytics/dbt/blob/e775f2b38e52e8b9f25f8ac98c942d22b2c8c55d/core/dbt/contracts/graph/mo...
[ { "body": "### Describe the bug\r\nIn an attempt to educate myself on how snapshots work, I created a snapshot to test out, but neglected to realize that the configuration object was required. When I ran `dbt snapshot`, it failed with a fairly non-actionable error message:\r\n\r\n```\r\n2021-05-20T22:41:00.2911...
835d805079dbcab590757afbd32b8edc38d43e4e
{ "head_commit": "50906f980864765a116d10693e90751ba107d139", "head_commit_message": "Merge branch 'develop' of github.com:jnatkins/dbt into dbt-3381", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex a961c370613..f1fea0c233b 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -15,6 +15,7 @@\n - ...
[ { "diff_hunk": "@@ -15,6 +15,7 @@\n - Add a better error messages for undefined macros and when there are less packages installed than specified in `packages.yml`. ([#2999](https://github.com/fishtown-analytics/dbt/issues/2999))\n - Separate `compiled_path` from `build_path`, and print the former alongside node...
7508788e7eeba952092cca09b478a621b51feb7b
diff --git a/CHANGELOG.md b/CHANGELOG.md index a961c370613..94572e78aa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Add a better error messages for undefined macros and when there are less packages installed than specified in `packages.yml`. ([#2999](https://github.com/fishtown-analytics/dbt/issue...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-3703@af88017
dbt-labs/dbt-core
Python
3,703
Fix/bigquery job label length
resolves #3612 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. Example: resolves #1234 --> ### Description <!--- Describe the Pull Request here...
2021-08-06T14:54:40Z
Raise a more helpful error if BigQuery job label is too long ### Describe the bug After migrating to v0.20.0 my jobs keep failing with the following error: ``` Database Error in model stg_facebookads__ads (models/staging/facebook_ads/stg_facebookads__ads.sql) ...
@edbizarro I see you switched on `query-comment.job-label`, which is new in v0.20.0. The way that feature works: - Try reading your query comment as a dictionary. If it can, pass each key-value pair as a separate job label. "Sanitize" each value by replacing whitespace and special characters with underscores. - If yo...
[ { "body": "### Describe the bug\r\nAfter migrating to v0.20.0 my jobs keep failing with the following error:\r\n\r\n```\r\nDatabase Error in model stg_facebookads__ads (models/staging/facebook_ads/stg_facebookads__ads.sql) ...
a20d2d93d3adfa71d34916b4236956a13dfc9409
{ "head_commit": "af880177036efa08d735a987e457d7cb602b44bb", "head_commit_message": "Merge branch 'develop' of https://github.com/dbt-labs/dbt into fix/bigquery-job-label-length", "patch_to_review": "diff --git a/plugins/bigquery/dbt/adapters/bigquery/connections.py b/plugins/bigquery/dbt/adapters/bigquery/connec...
[ { "diff_hunk": "@@ -595,9 +595,18 @@ def _is_retryable(error):\n \n _SANITIZE_LABEL_PATTERN = re.compile(r\"[^a-z0-9_-]\")\n \n+_VALIDATE_LABEL_LENGTH_LIMIT = 63\n+\n \n def _sanitize_label(value: str) -> str:\n \"\"\"Return a legal value for a BigQuery label.\"\"\"\n value = value.strip().lower()\n ...
79179363c9f3843f830ccdc1e5588b5217fa7321
diff --git a/CHANGELOG.md b/CHANGELOG.md index 16a21a1696c..c1c07e82ada 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ Contributors: ### Under the hood - Switch to full reparse on partial parsing exceptions. Log and report exception information. ([#3725](https://github.com/dbt-labs/dbt/issues/3725), [...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-4685@ad78d98
dbt-labs/dbt-core
Python
4,685
include directory README
### resolves https://github.com/dbt-labs/dbt-core/issues/4968 ### Description Writing up a README for the include directory giving brief description of each folder or file in top level. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] I have r...
2022-02-04T21:15:58Z
[CT-433] [docs] Add ReadMe to include directory ### Is there an existing feature request for this? - [X] I have searched the existing issues ### Describe the Feature adding ReadMe to directories to deepen knowledge of code base for all ### Describe alternatives you've considered _No response_ ### Who will this be...
[ { "body": "### Is there an existing feature request for this?\n\n- [X] I have searched the existing issues\n\n### Describe the Feature\n\nadding ReadMe to directories to deepen knowledge of code base for all\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Who will this benefit?\n\neveryon...
7f953a6d48a4db254b17fd3929d267e4b6069228
{ "head_commit": "ad78d98c9457be60cff279d001109d2be5a079f1", "head_commit_message": "minor updates", "patch_to_review": "diff --git a/core/dbt/include/README.md b/core/dbt/include/README.md\nindex 59670b67f7d..a6d6c391c1e 100644\n--- a/core/dbt/include/README.md\n+++ b/core/dbt/include/README.md\n@@ -1 +1,10 @@\n...
[ { "diff_hunk": "@@ -1 +1,10 @@\n-# Include README\n+# Include Module\n+\n+contains the a few key default `dbt-core` sub directories inlcuding.\n+\n+- `global_project` which defines the default implementations of jinja2 macros for `dbt-core ` which can be overwritten in each adapter repo to work more in line wit...
5d531c30f922e72b1e8282e8149108a4a67f1734
diff --git a/core/dbt/include/README.md b/core/dbt/include/README.md index 59670b67f7d..4ec228788fb 100644 --- a/core/dbt/include/README.md +++ b/core/dbt/include/README.md @@ -1 +1,15 @@ -# Include README +# Include Module + +The Include module is reponsible for housing default macro definitions, starter project scaff...
{ "difficulty": "low", "estimated_review_effort": 1, "problem_domain": "Documentation Updates" }
dbt-labs__dbt-core-3165@5c50131
dbt-labs/dbt-core
Python
3,165
Raise proper error message if duplicate macros found
resolves #2449 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. Example: resolves #1234 --> ### Description <!--- Describe the Pull Request here...
2021-03-14T19:35:11Z
Raise a better error message if dbt parses the same file twice due to misconfiguration ### Describe the feature If a macro is addressed twice in a dbt project, then dbt will fail to compile with: ``` Compilation Error dbt found two macros named "<macro name>" in the project "projectname". To fix this error, r...
[ { "body": "### Describe the feature\r\nIf a macro is addressed twice in a dbt project, then dbt will fail to compile with:\r\n```\r\nCompilation Error\r\n dbt found two macros named \"<macro name>\" in the project \"projectname\".\r\n To fix this error, rename or remove one of the following macros:\r\n ...
9a6d30f03db0764f0d3178bcab092414a435df17
{ "head_commit": "5c5013191be52146f732e46569e64f4a9d8a853e", "head_commit_message": "Fix failing test", "patch_to_review": "diff --git a/core/dbt/parser/results.py b/core/dbt/parser/results.py\nindex f2fc3b9d5f1..2bc01cfa50d 100644\n--- a/core/dbt/parser/results.py\n+++ b/core/dbt/parser/results.py\n@@ -125,7 +12...
[ { "diff_hunk": "@@ -140,6 +140,21 @@ def add_macro(self, source_file: SourceFile, macro: ParsedMacro):\n ''',\n subtract=2\n )\n+ dup_path_msg = line_wrap_message(\n+ f\"\"\"\\\n+ The file {macro.original_file_path} for macro {...
369b595e8a9cfae20dd62ca12dea0c3d2c59c2b5
diff --git a/CHANGELOG.md b/CHANGELOG.md index c682e43d221..3600952defd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Moving from 'master' to 'HEAD' default branch in git ([#3057](https://github.com/fishtown-analytics/dbt/issues/3057), [#3104](https://github.com/fishtown-analytics/dbt/issues/3104), [#...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-3343@274dea0
dbt-labs/dbt-core
Python
3,343
Add a better error for undefined macros
resolves #2999 <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. Example: resolves #1234 --> ### Description Adds a new `UndefinedMacroException`...
2021-05-11T17:48:58Z
Raise a warning for required, but uninstalled packages ### Describe the feature The error message for an uninstalled package comes straight out of the Jinja library: ``` Compilation Error in analysis scratch (analysis/scratch.sql) 'dbt_utils' is undefined ``` This error message _is_ strictly true, but I thi...
Love it. I'll take a look at some of the code paths involved, and see if this can be a good first issue FYI, I finally stumbled upon this issue when googling this error message, so yes, updated error message would be very much appreciated. The message for this is indeed coming from Jinja. The simplest version could jus...
[ { "body": "### Describe the feature\r\nThe error message for an uninstalled package comes straight out of the Jinja library:\r\n```\r\nCompilation Error in analysis scratch (analysis/scratch.sql)\r\n 'dbt_utils' is undefined\r\n```\r\n\r\nThis error message _is_ strictly true, but I think it might be worth t...
36e0ab9f42b006171e45ea2cc77faae9f5984eab
{ "head_commit": "274dea0fd590a4231aefb2c56bde0eeb23c6667e", "head_commit_message": "Fix issue with null packages", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex f3ebcf1a5c3..6c15c62f1d5 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -6,6 +6,7 @@\n - Fix references to macros with package...
[ { "diff_hunk": "@@ -328,10 +328,19 @@ def load_dependencies(self) -> Mapping[str, 'RuntimeConfig']:\n if self.dependencies is None:\n all_projects = {self.project_name: self}\n internal_packages = get_include_paths(self.credentials.type)\n- project_paths = itertools.ch...
07b83d25fd02489e652d6e31785dfc4804ae4ca6
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5482779bdb4..c332f0732e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Stop clobbering default keyword arguments for jinja test definitions ([#3329](https://github.com/fishtown-analytics/dbt/issues/3329), [#3340](https://github.com/fishtown-analytics/dbt/...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-3182@e0febcb
dbt-labs/dbt-core
Python
3,182
Set application_name for Postgres connections
resolves #885 ### Description The `application_name` parameter can now be specified as part of the properties in a postgres target in `profiles.yml` and it will show in `pg_stat_activity`. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] I h...
2021-03-20T17:28:40Z
Set application_name for Postgres connections When creating a Postgres connection it's possible to set the "application_name" option on the connection, so that the connection is easily identifiable on the server's side. This would make the DB management easier for us. Also, it'd be great if the name was changeable, ...
[ { "body": "When creating a Postgres connection it's possible to set the \"application_name\" option on the connection, so that the connection is easily identifiable on the server's side. This would make the DB management easier for us.\r\n\r\nAlso, it'd be great if the name was changeable, so that we can identi...
440a5e49e274b7c98a726c1acdd202fbf1063df1
{ "head_commit": "e0febcb6c3f1dd80c413a349990e245743845ed7", "head_commit_message": "Set application_name for Postgres connections", "patch_to_review": "diff --git a/plugins/postgres/dbt/adapters/postgres/connections.py b/plugins/postgres/dbt/adapters/postgres/connections.py\nindex 96bb0b0f5d2..225fdb1d0f3 100644...
[ { "diff_hunk": "@@ -23,6 +23,7 @@ class PostgresCredentials(Credentials):\n search_path: Optional[str] = None\n keepalives_idle: int = 0 # 0 means to use the default value\n sslmode: Optional[str] = None\n+ application_name: Optional[str] = None", "line": null, "original_line": 26, "...
91431401ad15788676a01743d36dba7401f06b67
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e9adfbf2c4..c18c7243737 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Fix for EOL SQL comments prevent entire line execution ([#2731](https://github.com/fishtown-analytics/dbt/issues/2731), [#2974](https://github.com/fishtown-analytics/dbt/pull/2974)) ...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-5027@8dcfeb1
dbt-labs/dbt-core
Python
5,027
(#4884) Add support for ratio metrics
resolves #4884 ### Description This PR adds support for ratio metrics in dbt. A ratio metric is defined in terms of an expression, eg: ``` - name: arpc label: Average Revenue per Customer type: expression sql: "{{ metric('revenue') }} / {{ metric('customers') }}" ``` This PR also adds a `...
2022-04-11T14:54:44Z
[CT-376] add ability to calculate metrics based off of other metrics In order to calculate any rate-type metrics there has to be a mechanism supported to calculate metrics based off of other metrics. This could be implemented by expanding the inputs allowed in model. Instead of just referencing a materialized model ...
Thanks Mary! Moving this over to the dbt Core repo - I wasn't clear in Slack, my bad 😅 Absolutely critical that metrics can input to other metrics. If that's achieved by intermediary models initial, okay, but ultimately metrics need to be able to work like models - they can and will chain into each other. Perfectly ...
[ { "body": "In order to calculate any rate-type metrics there has to be a mechanism supported to calculate metrics based off of other metrics.\r\n\r\nThis could be implemented by expanding the inputs allowed in model. Instead of just referencing a materialized model you could allow referencing a metric dynamical...
f49f28c331062c824351fe1babe4e4dd146f8d71
{ "head_commit": "8dcfeb18667b752d31bf089d522395680eb99b5f", "head_commit_message": "More support for ratio metrics", "patch_to_review": "diff --git a/core/dbt/compilation.py b/core/dbt/compilation.py\nindex 052918d42e1..c94348f7190 100644\n--- a/core/dbt/compilation.py\n+++ b/core/dbt/compilation.py\n@@ -397,6 +...
[ { "diff_hunk": "@@ -908,6 +953,31 @@ def resolve_source(\n return Disabled(disabled[0])\n return None\n \n+ def resolve_metric(\n+ self,\n+ target_metric_name: str,\n+ target_metric_package: Optional[str],\n+ current_project: str,\n+ node_package: str,\n...
e808272dea25ae9684b631dd132582cda92d3513
diff --git a/.changes/unreleased/Features-20220705-083026.yaml b/.changes/unreleased/Features-20220705-083026.yaml new file mode 100644 index 00000000000..6fcbf700100 --- /dev/null +++ b/.changes/unreleased/Features-20220705-083026.yaml @@ -0,0 +1,7 @@ +kind: Features +body: Add support for ratio metrics +time: 2022-07...
{ "difficulty": "high", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-3100@4f8c10c
dbt-labs/dbt-core
Python
3,100
Gets columns to update from config for BQ and Snowflake
resolves #1862 ### Description Incremental models currently default to updating all columns. For databases that support `merge` statements, this PR allows the user to pass in an `update_columns` config parameter to selectively update only a subset of columns by replacing the call to `adapter.get_columns_in_rel...
2021-02-13T16:24:06Z
Specify Columns to update on incremental Models ### Describe the feature Allow model developer the ability to choose the set of columns that require updating on incremental loads ### Who will this benefit? This will benefit all users that are performing an incremental update of a wide table with few columns that a...
hey @richmintz! Can you say more about this? I think it's a good idea - I'm curious if you're interested in this feature for performance reasons, or something else. Hi @drewbanin! My primary goal would be performance, minimizing writes and index rebuilds. However I also think it will generate more concise sql for larg...
[ { "body": "### Describe the feature\r\nAllow model developer the ability to choose the set of columns that require updating on incremental loads\r\n\r\n### Who will this benefit?\r\nThis will benefit all users that are performing an incremental update of a wide table with few columns that are mutable\r\n", ...
934c23bf392c4d5db9b129d0f8953c2b7872f5b0
{ "head_commit": "4f8c10c1aab3630f175611e87903b6051afdd8d8", "head_commit_message": "default to get_columns_in_relation if not specified in config\n\nCo-authored-by: Jeremy Cohen <jtcohen6@gmail.com>", "patch_to_review": "diff --git a/plugins/bigquery/dbt/include/bigquery/macros/materializations/incremental.sql b...
[ { "diff_hunk": "@@ -58,7 +58,7 @@\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n- {% set dest_columns = adapter.get_columns_in_relation(target_relation) %}\n+ {% set dest_columns = config.get('update_columns') %}", ...
48e367ce2f116c85556f7ba64f2a0d34a3750314
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5647366ae08..1e9adfbf2c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Features - Add optional configs for `require_partition_filter` and `partition_expiration_days` in BigQuery ([#1843](https://github.com/fishtown-analytics/dbt/issues/1843), [#2928]...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-3000@f13143a
dbt-labs/dbt-core
Python
3,000
Tsql not equal workaround
resolves #3001 @jtcohen6 @mikaelene <!--- Include the number of the issue addressed by this PR above if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. Example: resolves #3001 --> ### Description per this c...
2021-01-08T20:11:58Z
condA != condB not supported in TSQL `snapshot_check_strategy()` is not dispatched, which means it can only be overridden in a custom adapter. Which was working for `dbt-sqlserver` but we can't import that overwritten macro into `dbt-synapse` like we're doing with all the other properly dispatched macros. rather tha...
[ { "body": "`snapshot_check_strategy()` is not dispatched, which means it can only be overridden in a custom adapter. Which was working for `dbt-sqlserver` but we can't import that overwritten macro into `dbt-synapse` like we're doing with all the other properly dispatched macros.\r\n\r\nrather than dispatching ...
30f473a2b1e261e3f4b712564df854f8a95134f3
{ "head_commit": "f13143accba61bd5a514ce7b262e62e86bf66119", "head_commit_message": "for posterity", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 706448c1132..1724cef8f94 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -1,7 +1,11 @@\n ## dbt 0.19.0 (Release TBD)\n \n+### Under the hood\n...
[ { "diff_hunk": "@@ -164,7 +164,14 @@\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n- ({{ snapshotted_rel }}.{{ col }} is null) != ({{ current_rel }}.{{ col }} is null)\n+ {# hack to make CI try again #}\n+ {# below...
6966ede68bba9631fa428b205e48274d0a32163c
diff --git a/CHANGELOG.md b/CHANGELOG.md index 706448c1132..55ccd4a388c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ ## dbt 0.19.0 (Release TBD) +### Under the hood +- Rewrite logic in `snapshot_check_strategy()` to make compatible with other SQL dialects ([#3000](https://github.com/fishtown-analyti...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Code Refactoring / Architectural Improvement" }
dbt-labs__dbt-core-3625@2a29dbd
dbt-labs/dbt-core
Python
3,625
`dbt init` Interactive profile creation
Resolves #3462 Overhaul `dbt init` to interactively create a profile within `profiles.yml` based on: 1. `profile_template.yml` if configured within the project 2. The chosen target's `target_options.yml` and user input 3. The chosen target's `sample_profiles.yml` profile in descending order of preference. Th...
2021-07-25T17:17:27Z
Add command to auto-populate `profiles.yml` ### Describe the feature This may have been suggested already but I couldn't find a duplicate issue from a quick search. Configuring the `profiles.yml` is non-beginner friendly, and creating instructions on how to do so is complicated especially due to the differences bet...
> Introducing a dbt command which would add a profile to `profiles.yml` (and create the file if needed) using the name from the `dbt_project.yml` would be extremely useful Right on—I think this is what `dbt init` should do! In fact, it already does a few of these things: - Create the file `~/.dbt/profiles.yml` (...
[ { "body": "### Describe the feature\r\nThis may have been suggested already but I couldn't find a duplicate issue from a quick search.\r\n\r\nConfiguring the `profiles.yml` is non-beginner friendly, and creating instructions on how to do so is complicated especially due to the differences between Mac and Window...
280e9ad9c9bf914b5bbd1aa14629a6708c921546
{ "head_commit": "2a29dbd1b764996b37899838e4a333300e56a022", "head_commit_message": "Make mypy happy", "patch_to_review": "diff --git a/core/dbt/clients/yaml_helper.py b/core/dbt/clients/yaml_helper.py\nindex df349c1bb38..9ed41d7c6ea 100644\n--- a/core/dbt/clients/yaml_helper.py\n+++ b/core/dbt/clients/yaml_helpe...
[ { "diff_hunk": "@@ -1,17 +1,16 @@\n import dbt.exceptions\n from typing import Any, Dict, Optional\n-import yaml\n-import yaml.scanner\n+import oyaml as yaml", "line": null, "original_line": 3, "original_start_line": null, "path": "core/dbt/clients/yaml_helper.py", "start_line": null, "t...
4f213ba4d549041ede0966e48153137c8b551bc8
diff --git a/CHANGELOG.md b/CHANGELOG.md index dd21b3598f7..4c61b7aabc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,12 @@ - Enable `on-run-start` and `on-run-end` hooks for `dbt test`. Add `flags.WHICH` to execution context, representing current task ([#3463](https://github.com/dbt-labs/dbt-core/issues/346...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2946@b025f20
dbt-labs/dbt-core
Python
2,946
Defer iff unselected reference does not exist in current env
resolves #2909 ### Description Today, `--defer` is a blanket override: build the resources included by my selection criteria, and use the `--state` manifest's namespaces for any references to resources _not_ included by my selection criteria. Instead, this PR would make it a more flexible fallback: If there's ...
2020-12-12T00:29:27Z
Defer refers to outdated seed ### Describe the bug I'm running the following on CI: ```bash aws s3 cp $(MANIFEST_REMOTE_PATH) target/prod/manifest.json dbt seed --select "state:modified+" --full-refresh --state target/prod/ --target dev-master dbt run --models "state:modified+" --defer --state target/prod/ --ta...
Thanks for the writeup @dmateusp. The issue here is that `--defer` simply switches the reference of any resource not included in the selection criteria. As part of node selection, dbt excludes all resources from the selection criteria that are not relevant to the invocation type, e.g. a seed from `dbt run`. So today t...
[ { "body": "### Describe the bug\r\nI'm running the following on CI:\r\n\r\n```bash\r\naws s3 cp $(MANIFEST_REMOTE_PATH) target/prod/manifest.json\r\ndbt seed --select \"state:modified+\" --full-refresh --state target/prod/ --target dev-master\r\ndbt run --models \"state:modified+\" --defer --state target/prod/ ...
cd149b68e83a7d3819bc0e8641f08a43ab4318b2
{ "head_commit": "b025f208a870bb858d93d80fc67f32ccf208ee41", "head_commit_message": "Check if relation exists before deferring", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 9e596be3ba8..3175f028278 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -17,6 +17,7 @@\n - dbt list command alway...
[ { "diff_hunk": "@@ -898,10 +899,14 @@ def merge_from_artifact(\n refables = set(NodeType.refable())\n merged = set()\n for unique_id, node in other.nodes.items():\n+ current = self.nodes[unique_id]", "line": null, "original_line": 902, "original_start_line": null, ...
08e425bcf62b0b4b4cbb728a888435fa1d4b70e6
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e596be3ba8..3175f028278 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - dbt list command always return 0 as exit code ([#2886](https://github.com/fishtown-analytics/dbt/issues/2886), [#2892](https://github.com/fishtown-analytics/dbt/issues/2892)) - Set ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2679@41a9251
dbt-labs/dbt-core
Python
2,679
Create adapter.dispatch
resolves #2302 (the rest of it) ### Description This is a follow-up to #2675. This PR adds the `adapter.dispatch` described in #2302, and marked `adapter_macro` as deprecated. This is a pretty straightforward PR. The dispatch method happens on the "database wrapper" rather than the actual adapter, as adapters ...
2020-08-03T17:24:15Z
Port adapter_macro implementation into Python ### Describe the feature Right now, the `adapter_macro` implementation is written in jinja. It doesn't really do any string templating, so it's a better candidate for Python code. Rewriting this macro in Python would let us add some more comprehensive unit tests, and be mo...
[ { "body": "### Describe the feature\r\nRight now, the `adapter_macro` implementation is written in jinja. It doesn't really do any string templating, so it's a better candidate for Python code. Rewriting this macro in Python would let us add some more comprehensive unit tests, and be more flexible with the impl...
ba828e59ded58a35d37c34abfe9ecd99012b0d8c
{ "head_commit": "41a92519822b7d2ca21b6616c50f0e31fc185fa3", "head_commit_message": "pr feedback: better errors for dotted macro names\n\nadd more tests", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex d18c4c1d245..d96802a94cb 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -2,6 +2,10 @@\n...
[ { "diff_hunk": "@@ -1096,38 +1148,23 @@ def adapter_macro(self, name: str, *args, **kwargs):\n ...\n {%- endmacro %}\n \"\"\"\n- original_name: str = name\n- package_name: Optional[str] = None\n+ deprecations.warn('adapter-macro', macro_name=name)\n+ ...
dd764b93e0e04ee68bfe184b7983b12f6a95b8ee
diff --git a/CHANGELOG.md b/CHANGELOG.md index d18c4c1d245..19e8f80b23a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ### Breaking changes - `adapter_macro` is no longer a macro, instead it is a builtin context method. Any custom macros that intercepted it by going through `context['dbt']` will need...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2627@06a30f0
dbt-labs/dbt-core
Python
2,627
Add more helpful error message for misconfiguration in profiles.yml
resolves [#2569](https://github.com/fishtown-analytics/dbt/issues/2569) ### Description Adds an additional catch for if the supplied target returns no data and returns a more helpful error message. ### Checklist - [X] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [...
2020-07-15T21:50:56Z
Empty target in profiles.yml results in an unhelpful error message ### Steps to reproduce 1. Create a profile like so (note empty `learn:` key) ``` $ cat ~/.dbt/profiles.yml jaffle_shop: target: learn outputs: learn: ``` 2. Run `dbt debug --profile jaffle_shop` ### Expected behavior A useful erro...
just an fyi, im working on this now
[ { "body": "### Steps to reproduce\r\n1. Create a profile like so (note empty `learn:` key)\r\n```\r\n$ cat ~/.dbt/profiles.yml\r\njaffle_shop:\r\n target: learn\r\n\r\n outputs:\r\n learn:\r\n```\r\n2. Run `dbt debug --profile jaffle_shop`\r\n\r\n### Expected behavior\r\nA useful error message\r\n\r\n### A...
4e636aa53abf4e0ac401f9c45d3bf2d648fd4d2f
{ "head_commit": "06a30f0447382224aae42743e48b022d45e8fab1", "head_commit_message": "Add more helpful error message for misconfiguration in profiles.yml", "patch_to_review": "diff --git a/core/dbt/config/profile.py b/core/dbt/config/profile.py\nindex b3c145348ca..3da2936fdea 100644\n--- a/core/dbt/config/profile....
[ { "diff_hunk": "@@ -197,6 +197,11 @@ def _get_profile_data(\n .format(profile_name, target_name, outputs))\n raise DbtProfileError(msg, result_type='invalid_target')\n profile_data = outputs[target_name]\n+\n+ if profile_data is None:", "line": null, "origin...
d08a2b8c02746985a4e83e89ff9cf0a2a986a2b6
diff --git a/CHANGELOG.md b/CHANGELOG.md index 45b98820875..7d65de573a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,14 @@ ### Features - Added support for Snowflake query tags at the connection and model level ([#1030](https://github.com/fishtown-analytics/dbt/issues/1030), [#2555](https://github.com/fis...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2530@272cad7
dbt-labs/dbt-core
Python
2,530
Add data processed info into dbt run logs for all statement types
resolves #2526 ### Description Changing the log output of BigQuery query CREATE_TABLE_AS_SELECT statement to include byte processed. ### Checklist - [X] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] I have run this code in development and it appears to resolv...
2020-06-10T19:00:24Z
Add data processed info into dbt run logs for all statement types ### Describe the feature When using BigQuery `dbt run` logs should show the data scan value for create table statement and not just for script. ### Describe alternatives you've considered No alternative ### Additional context This specific impro...
Very cool idea! The code for printing out bytes billed is fairly straightforward: https://github.com/fishtown-analytics/dbt/blob/c9b34681b756ccd4b5c4f0a3bd8f12f48f23081d/plugins/bigquery/dbt/adapters/bigquery/connections.py#L250-L252 I think it would just be a matter of reporting the `total_bytes_processed` for ...
[ { "body": "### Describe the feature\r\nWhen using BigQuery `dbt run` logs should show the data scan value for create table statement and not just for script.\r\n\r\n### Describe alternatives you've considered\r\nNo alternative\r\n\r\n### Additional context\r\nThis specific improvement is about BigQuery. However...
8f649f5ab43feded93180a7128a90a43ded97041
{ "head_commit": "272cad7b97fa7b5c4890b1c431714f0881fec5e6", "head_commit_message": "core/dbt/utils: remove extra empty line", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex f31a038398e..48393197dcb 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -11,10 +11,12 @@\n - Added support for rena...
[ { "diff_hunk": "@@ -11,17 +11,20 @@\n - Added support for renaming BigQuery relations ([#2520](https://github.com/fishtown-analytics/dbt/issues/2520), [#2521](https://github.com/fishtown-analytics/dbt/pull/2521))\n - Added support for BigQuery authorized views ([#1718](https://github.com/fishtown-analytics/dbt/...
1da4bef068fe441c3001d0fefc20204297bb59c4
diff --git a/CHANGELOG.md b/CHANGELOG.md index f31a038398e..d03131c1ec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,10 +11,12 @@ - Added support for renaming BigQuery relations ([#2520](https://github.com/fishtown-analytics/dbt/issues/2520), [#2521](https://github.com/fishtown-analytics/dbt/pull/2521)) - Adde...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2594@b94d0b6
dbt-labs/dbt-core
Python
2,594
added option --adapter to dbt init, to create sample profiles.yml bas…
resolves [#2533](https://github.com/fishtown-analytics/dbt/issues/2533) ### Description Added option '--adapter' to `dbt init`, to create sample profiles.yml based on chosen adapter. It gets the sample profiles.yml from the adapter 'includes' folder Related PRs: * https://github.com/fishtown-analytics/db...
2020-06-25T22:31:19Z
Write database-specific sample profiles.yml file in `dbt init` ### Describe the feature Let's add a flag to `dbt init` which controls the sample contents of the `~/.dbt/profiles.yml` file. Example usage: ``` dbt init my-project --adapter=bigquery dbt init my-project --adapter=snowflake dbt init my-project --...
I'm happy to take this, if still available @drewbanin I'm trying to set up a try-catch with the possible adapter options, but can't seem to find a 'list' of possible adapters. I found some stuff in `dbt/core/dbt/include/global_project/macros/adapters/common.sql` but not sure this is it. My idea is to create a templ...
[ { "body": "### Describe the feature\r\n\r\nLet's add a flag to `dbt init` which controls the sample contents of the `~/.dbt/profiles.yml` file. \r\n\r\nExample usage:\r\n```\r\ndbt init my-project --adapter=bigquery\r\ndbt init my-project --adapter=snowflake\r\ndbt init my-project --adapter=redshift\r\n```\r\n\...
3af8a22d1319431115e7394f1235294613d36b35
{ "head_commit": "b94d0b66e6b366d84669454dca199e4fe5612870", "head_commit_message": "Apply suggestions from code review\n\nCo-authored-by: Jeremy Cohen <jtcohen6@gmail.com>", "patch_to_review": "diff --git a/.gitignore b/.gitignore\nindex d1025d4ef4c..e3ebed6763f 100644\n--- a/.gitignore\n+++ b/.gitignore\n@@ -9,...
[ { "diff_hunk": "@@ -0,0 +1,25 @@\n+default:\n+ outputs:\n+\n+ dev:\n+ type: redshift\n+ threads: [1 or more]\n+ host: [host]\n+ port: 5439\n+ user: [dev_username]\n+ pass: [dev_password]\n+ dbname: [dbname]\n+ schema: [dev_schema]\n+\n+ prod:\n+ type: redshift...
51f17d33583ee591b831d5ef9d37de4a8f1f4e32
diff --git a/.gitignore b/.gitignore index d1025d4ef4c..e3ebed6763f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ __pycache__/ # Distribution / packaging .Python env/ +dbt_env/ build/ develop-eggs/ dist/ @@ -83,3 +84,11 @@ target/ # pycharm .idea/ + +# AWS credentials +.aws/ + +.DS_Store + +# vscod...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2413@5a319d6
dbt-labs/dbt-core
Python
2,413
Fix error when trying to call list_schemas macro for BigQuery adapter
resolves #2412 ### Description Adds missing `database` parameter to `adapter.list_schemas` macro that is called by `bigquery__list_schemas` ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] I have run this code in development and it appears to r...
2020-05-06T21:21:20Z
Running BigQuery list_schemas macro produces error ### Describe the bug When attempting to run the `list_schemas` macro from a BigQuery dbt project, you get the following error ``` list_schemas() missing 1 required positional argument: 'database' ``` ### Steps To Reproduce Create a test macro in a BigQuery dbt ...
[ { "body": "### Describe the bug\r\nWhen attempting to run the `list_schemas` macro from a BigQuery dbt project, you get the following error\r\n```\r\nlist_schemas() missing 1 required positional argument: 'database'\r\n```\r\n\r\n### Steps To Reproduce\r\nCreate a test macro in a BigQuery dbt project that invok...
9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55
{ "head_commit": "5a319d6ee1278509971f6c92b69c02c877aa3b71", "head_commit_message": "Updated CHANGELOG.md", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 2c0b12568f0..4c69547d6c3 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -3,6 +3,7 @@\n ### Fixes\n - When tracking is disabled due to ...
[ { "diff_hunk": "@@ -3,6 +3,7 @@\n ### Fixes\n - When tracking is disabled due to errors, do not reset the invocation ID ([#2398](https://github.com/fishtown-analytics/dbt/issues/2398), [#2400](https://github.com/fishtown-analytics/dbt/pull/2400))\n - Fix for logic error in compilation errors for duplicate data ...
002244e3b39fc3f7618667ed89d37b73379a1c80
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0b12568f0..e63d85a611b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ### Fixes - When tracking is disabled due to errors, do not reset the invocation ID ([#2398](https://github.com/fishtown-analytics/dbt/issues/2398), [#2400](https://github.com/fishtown...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2411@e392212
dbt-labs/dbt-core
Python
2,411
Preserve the case of schemas and databases when listing relations (#2403)
resolves #2403 ### Description There's hopefully nothing too wild or controversial in here - this is a substantial change, but it should fix some correctness issues in how dbt lists schemas. I think in the long run this will be more pleasant for adapter authors than having to figure out how to render the databas...
2020-05-06T19:41:10Z
dbt seed not working in 0.17.0-b1 ### Describe the bug dbt seed fails to load seed files ### Steps To Reproduce `dbt seed --full-refresh` ### Expected behavior with 0.16 --full-refresh was not required, now it seems to be but is not working (yet?) ### Screenshots and log output ``` Completed with 7 errors...
This has something to do with quoting/casing - it works fine without. Probably caused by this PR: https://github.com/fishtown-analytics/dbt/pull/2322 @swiffer I can't seem to reproduce this locally, please let me know if I'm missing a step: - create a seed file (`data/seedtable.csv`) - in `dbt_project.yml`, set `...
[ { "body": "### Describe the bug\r\ndbt seed fails to load seed files\r\n\r\n### Steps To Reproduce\r\n`dbt seed --full-refresh`\r\n\r\n### Expected behavior\r\nwith 0.16 --full-refresh was not required, now it seems to be but is not working (yet?)\r\n\r\n### Screenshots and log output\r\n```\r\nCompleted with 7...
1eb75d9be7fb0a551cc3e2fb3eac8a50498ad8f1
{ "head_commit": "e392212c0e34ee1fe8759d46b402d13342d874f7", "head_commit_message": "Change list_relations_without_caching macro to take a single argument\n\nThe argument is a Relation object with no identifier field, configured with the appropriate quoting information\n\nUnique quoted/unquoted representations will...
[ { "diff_hunk": "@@ -496,21 +491,23 @@ def create_schema(db: str, schema: str) -> None:\n for ls_future in as_completed(list_futures):\n existing_schemas_lowered.update(ls_future.result())\n \n- for info, schema in required_schemas.search():\n+ for info in requir...
ab8392b856a9a47e62a49d41dd26f5ad63dab9b7
diff --git a/CHANGELOG.md b/CHANGELOG.md index 223f566da52..2522d397169 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,23 @@ ## dbt 0.17.0 (Release TBD) +### Breaking changes +- The `list_relations_without_caching`, `drop_schema`, and `create_schema` macros and methods now accept a single argument of a Rel...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2395@af5af82
dbt-labs/dbt-core
Python
2,395
Add a special as_text filter to the native env (#2384)
resolves #2384 ### Description Add a special as_text filter to the native env that tells dbt to render the value as a string no matter what. Use like `dataset: "{{ 1991 | as_text }}"` -> `dataset: "1991"` Also, I moved the weird special quoting handling logic out and instead avoid calling the renderer on colum...
2020-05-04T19:17:30Z
Regression: dbt does not allow integer dataset names on BigQuery ### Describe the bug BigQuery allows stringy dataset names that contain only digits, but dbt fails at startup if such a dataset name is provided. Is this a function of dbt's new NativeEnvironment rendering for jinja? ### Steps To Reproduce Use a prof...
>Is this a function of dbt's new NativeEnvironment rendering for jinja? Yes, almost certainly. I can think of two ways to approach this: - figure out how to tell the renderer that "this value should come out as a string". I'm not sure if that's hard or not, but I bet it isn't simple. This probably involves somethi...
[ { "body": "### Describe the bug\r\nBigQuery allows stringy dataset names that contain only digits, but dbt fails at startup if such a dataset name is provided. Is this a function of dbt's new NativeEnvironment rendering for jinja?\r\n\r\n### Steps To Reproduce\r\nUse a profile like:\r\n```\r\n dev:\r\n ...
b5f99881fedf403d7939de2e3f261666e446ccd3
{ "head_commit": "af5af829cf2cfe6c5d186028546a7a22e5aa3bd3", "head_commit_message": "add missing as_text to sources tests", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 6d5fb85c847..5c02b5dce67 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -23,6 +23,7 @@\n - schema.yml files are now fu...
[ { "diff_hunk": "@@ -428,7 +434,11 @@ def get_environment(\n else:\n env_cls = MacroFuzzEnvironment\n \n- return env_cls(**args)\n+ env = env_cls(**args)\n+ if native:\n+ env.filters['as_text'] = TextMarker", "line": null, "original_line": 439, "original_start_line": null,...
229d3986c2bf5f45c7bd12a9df5d00757d0c15f3
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d5fb85c847..5c02b5dce67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - schema.yml files are now fully rendered in a context that is aware of vars declared in from dbt_project.yml files ([#2269](https://github.com/fishtown-analytics/dbt/issues/2269), [#2...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2749@b71b7e2
dbt-labs/dbt-core
Python
2,749
Include hard-deletes when making snapshot
Continues the work of the closed PR #2355, which resolves #249. ### Description The idea is to select ids from the snapshotted table which no longer exist in the source table, and update these to set `dbt_valid_to` to the current timestamp. Marking them as hard deleted. As of now, I didn't write any integrat...
2020-09-11T08:12:59Z
snapshots should handle hard deletes Currently, `dbt archive` stores a series of state changes for records in covered tables, but it does not store a state change for deleted records. Hard deletes in an OLTP database will likely be one of the primary use cases for archival, and we therefore want to make sure that we're...
this might need to be a completely separate run through the table, which would eat up additional resources. if that turns out to be true, we should allow people to opt out of this in configuration if they know the source data never performs deletes. let me have a think about this. definitely a good idea Just a note tha...
[ { "body": "Currently, `dbt archive` stores a series of state changes for records in covered tables, but it does not store a state change for deleted records. Hard deletes in an OLTP database will likely be one of the primary use cases for archival, and we therefore want to make sure that we're capturing record ...
4994cc07a01b562e9687dcba132d2b1432421a08
{ "head_commit": "b71b7e209ea6500490b841242ede1e9088b2b96c", "head_commit_message": "Update changelog", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 2303cfefa2f..8b988ed1b4e 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -3,6 +3,10 @@\n ### Features\n - dbt will compare configurations u...
[ { "diff_hunk": "@@ -66,6 +66,7 @@\n {% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n+ {% set invalidate_hard_deletes = config['invalidate_hard_deletes'] %}"...
a4b80cc2e4146c8fc76d02eaa797af1894f40245
diff --git a/CHANGELOG.md b/CHANGELOG.md index 59a2ef92d4a..6c3a864f51d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - dbt will compare configurations using the un-rendered form of the config block in dbt_project.yml ([#2713](https://github.com/fishtown-analytics/dbt/issues/2713), [#2735](https://gith...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2348@4bea303
dbt-labs/dbt-core
Python
2,348
Fix for non-json-serializable values in BigQuery nested columns
resolves #2336 ### Description Use the Decimal-aware json encoder when constructing an agate table from a nested BigQuery response ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] I have run this code in development and it appears to resolve t...
2020-04-21T18:22:50Z
run_sql command via dbt rpc returns Object of type Decimal is not JSON serializable ### Describe the bug Executing a `run_sql` command via `dbt rbc` against a BigQuery profile returns `Object of type Decimal is not JSON serializable`. The equivalent command against Redshift, Snowflake, and PostgreSQL connections works...
Thanks for the report @brettgriffin - this error occurs if a `numeric` column is found inside of a struct or array column in BigQuery
[ { "body": "### Describe the bug\r\nExecuting a `run_sql` command via `dbt rbc` against a BigQuery profile returns `Object of type Decimal is not JSON serializable`. The equivalent command against Redshift, Snowflake, and PostgreSQL connections works correctly.\r\n\r\n### Steps To Reproduce\r\nA model exists wit...
c05b45b241b6394222675e63b98dfb19d4633023
{ "head_commit": "4bea303c5f846678390a131dadb79180202e5de2", "head_commit_message": "(#2336) Fix for non-json-serializable values in BigQuery nested columns", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 758f59aee8a..6d8390465d5 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -23,6 +23,7...
[ { "diff_hunk": "@@ -23,6 +23,7 @@\n - Fix skipped node count in stdout at the end of a run ([#2095](https://github.com/fishtown-analytics/dbt/issues/2095), [#2310](https://github.com/fishtown-analytics/dbt/pull/2310))\n - Fix an issue where BigQuery incorrectly used a relation's quote policy as the basis for th...
044f8fce4eebdae5751352de53dc17478c9435a6
diff --git a/CHANGELOG.md b/CHANGELOG.md index 758f59aee8a..e60e6000fa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - Fix skipped node count in stdout at the end of a run ([#2095](https://github.com/fishtown-analytics/dbt/issues/2095), [#2310](https://github.com/fishtown-analytics/dbt/pull/2310)) -...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2343@385f7f2
dbt-labs/dbt-core
Python
2,343
Added warning to nodes selector if nothing was matched
resolves #2115 ### Description Added warning (or error when `--warn-error` provided) when resource selector fails due to lack of resources for example when the incorrect model name was provided. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] ...
2020-04-19T13:17:42Z
Warning should be surfaced if any part of the `--models` specification doesn't exist ### Describe the bug A clear and concise description of what the bug is. What command did you run? What happened? Assume `model_a` exists and `model_b` does not exist in a given dbt project. If you run `dbt run --models model_b`...
Thanks for the report @kingfink - this is a good idea! We should make this a highly visible warning that can be raised to an error using the `--warn-error` flag @drewbanin seems like this is somewhat related to https://github.com/fishtown-analytics/dbt/issues/1765? ha! Thanks @jeremyyeo - I was looking for that one! J...
[ { "body": "### Describe the bug\r\nA clear and concise description of what the bug is. What command did you run? What happened?\r\n\r\nAssume `model_a` exists and `model_b` does not exist in a given dbt project.\r\n\r\nIf you run `dbt run --models model_b` you get an error: `WARNING: Nothing to do...`.\r\n\r\nI...
784ab79eec72f776b7f57699fab101be35cac81b
{ "head_commit": "385f7f2c2419a4b9d45a9e3f5bb58bc4f84ef268", "head_commit_message": "Merge branch 'dev/octavius-catto' into warn-nothing-selected", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 3d1dec6671f..e4f723a04bd 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -1,12 +1,16 @@\n ## db...
[ { "diff_hunk": "@@ -380,18 +388,47 @@ def get_nodes_from_spec(self, graph, spec):\n \n return collected\n \n- def select_nodes(self, graph, raw_include_specs, raw_exclude_specs):\n- selected_nodes: Set[str] = set()\n+ def get_nodes_from_multiple_specs(\n+ self,\n+ grap...
cfeffe40f6474436fec5eab10c0577a1ca2c5702
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d1dec6671f..e4f723a04bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,16 @@ ## dbt 0.17.0 (Release TBD) ### Features +- Added warning to nodes selector if nothing was matched ([#2115](https://github.com/fishtown-analytics/dbt/issues/2115), [#2343](https://g...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2104@bf3f5e1
dbt-labs/dbt-core
Python
2,104
Attach cli vars to configs when they come in via the RPC server (#2092)
Fixes #2092 This fixes #2092 by attaching the parsed CLI `vars` to the config when running the "cli_args" RPC command. This has the downside of clobbering any arguments provided via `dbt rpc --vars "{...}"`. Hopefully that's a sacrifice we're willing to make!
2020-02-07T19:41:54Z
[BUG] Command line variable ignored when supplied to command in server ### Describe the bug When I run this command against the `cli` method in the server: ``` dbt run --vars '{period_start_date: '2019-04-01', period: 'day'}' -m buildings ``` the command line variables are ignored. Instead I would expect the comma...
Hi, this also happens when we run a job and pass to it variables options as part of the dbt run command.
[ { "body": "### Describe the bug\r\nWhen I run this command against the `cli` method in the server:\r\n```\r\ndbt run --vars '{period_start_date: '2019-04-01', period: 'day'}' -m buildings\r\n```\r\nthe command line variables are ignored. Instead I would expect the command line variables to be present in the con...
9df123a1808e2bd7547ba00aaae7935e12c5edb8
{ "head_commit": "bf3f5e1b920333de7103f3ac17cc9c2231cb4509", "head_commit_message": "Attach cli vars to configs when they come in via the RPC server", "patch_to_review": "diff --git a/core/dbt/task/rpc/cli.py b/core/dbt/task/rpc/cli.py\nindex e3bb477c454..b0fc3e0da6f 100644\n--- a/core/dbt/task/rpc/cli.py\n+++ b/...
[ { "diff_hunk": "@@ -36,6 +37,11 @@ def __init__(self, args, config, manifest):\n \n def set_config(self, config):\n super().set_config(config)\n+\n+ # patch up config with args/cli_vars\n+ self.config.args = self.args\n+ self.config.cli_vars = parse_cli_vars(getattr(self.args, '...
61adfe42ff4dd4d120348a232a4fb5c194a6170d
diff --git a/core/dbt/task/rpc/cli.py b/core/dbt/task/rpc/cli.py index e3bb477c454..d5bb61b6d96 100644 --- a/core/dbt/task/rpc/cli.py +++ b/core/dbt/task/rpc/cli.py @@ -1,5 +1,6 @@ import abc import shlex +import yaml from typing import Type, Optional @@ -12,6 +13,7 @@ Result, ) from dbt.exceptions import...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2078@9eaf243
dbt-labs/dbt-core
Python
2,078
making error msg for malformed packages.yml better
I messed up the [previous](https://github.com/fishtown-analytics/dbt/pull/2077) PR during rebase and it was automatically closed. Here's new and clean one. Fixes #2017
2020-01-30T10:00:03Z
Unhelpful error message with malformed packages.yml ### Describe the bug ``` MacBook-Pro:analytics tristan$ cat packages.yml packages: - package: fishtown-analytics/stripe revision: 0.3.1 ``` I had recently switched from a git reference to this package to a hub reference, and forgot that I needed to chan...
well `local` is actually also valid error, since it could be the case if package is stored locally. I can suggest error msg like `packages.yml is malformed, please make sure that it matches https://docs.getdbt.com/docs/package-management#section-how-do-i-add-a-package-to-my-project` good idea @sonac - are you interest...
[ { "body": "### Describe the bug\r\n```\r\nMacBook-Pro:analytics tristan$ cat packages.yml\r\npackages:\r\n - package: fishtown-analytics/stripe\r\n revision: 0.3.1\r\n```\r\n\r\nI had recently switched from a git reference to this package to a hub reference, and forgot that I needed to change from `revision...
e570d22f402cd09abe6d0b6770a4d5a1ac8bfa22
{ "head_commit": "9eaf2438dde7fb26e8638f280eeea4a49be254b8", "head_commit_message": "making error msg for malformed packages.yml better", "patch_to_review": "diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py\nindex 620aa0773bc..3fb5fc73f66 100644\n--- a/core/dbt/config/project.py\n+++ b/core/db...
[ { "diff_hunk": "@@ -59,6 +59,11 @@\n --no-version-check\n \"\"\"\n \n+MALFORMED_PACKAGE_ERROR = \"\"\"\\\n+packages.yml is malformed, please make sure that it matches ", "line": null, "original_line": 63, "original_start_line": null, "path": "core/dbt/config/project.py", "start_line": null, ...
d354aa6f093e3533adfbf907cd720e45619bb0e3
diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py index 620aa0773bc..3ba025fa7cc 100644 --- a/core/dbt/config/project.py +++ b/core/dbt/config/project.py @@ -59,6 +59,17 @@ --no-version-check """ +MALFORMED_PACKAGE_ERROR = """\ +The packages.yml file in this project is malformed. Please double ch...
{ "difficulty": "low", "estimated_review_effort": 1, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2164@1f49150
dbt-labs/dbt-core
Python
2,164
removing the requirement to have a passphrase on a Snowflake key
resolves #1805 ### Description This PR removes the requirement to have a passphrase when authenticating with a Snowflake key pair. Snowflake key pairs without passphrases are supported by Snowflake, but are not currently supported by dbt. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.c...
2020-02-27T15:36:30Z
Allow no-passphrase private keys ### Describe the bug The Snowflake connector (at least) requires a passphrase in the profile file to open a private key connection. ### Steps To Reproduce Create a dbt target like the following: ``` qa: type: snowflake account: my_account user: my_user ...
I know how to just make it work within the Snowflake connection, but don't know how to do more involved things like requiring a flag in the project or profile file. Thanks for the suggestion @kmbenitez! The operative code for private key Snowflake connections is around here: https://github.com/fishtown-analytics/dbt/...
[ { "body": "### Describe the bug\r\nThe Snowflake connector (at least) requires a passphrase in the profile file to open a private key connection.\r\n\r\n### Steps To Reproduce\r\nCreate a dbt target like the following:\r\n```\r\n qa:\r\n type: snowflake\r\n account: my_account\r\n user: my_use...
735ffb3c920c41a41b571b61a2eac8db9b29f5e4
{ "head_commit": "1f49150d3054b50e348305f65bfbf1da957e86c8", "head_commit_message": "updating changelog", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex ef7ba64c17b..2577891fead 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -9,6 +9,7 @@\n - Add a dbt-{dbt_version} user agent field to the...
[ { "diff_hunk": "@@ -9,6 +9,7 @@\n - Add a dbt-{dbt_version} user agent field to the bigquery connector ([#2121](https://github.com/fishtown-analytics/dbt/issues/2121), [#2146](https://github.com/fishtown-analytics/dbt/pull/2146))\n - Add support for `generate_database_name` macro ([#1695](https://github.com/fis...
1edffac2bc88cf558be1de606921f7f066a3a78f
diff --git a/CHANGELOG.md b/CHANGELOG.md index 098fd809bb9..e1d7c731bc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Adding optional "sslmode" parameter for postgres ([#2152](https://github.com/fishtown-analytics/dbt/issues/2152), [#2154](https://github.com/fishtown-analytics/dbt/pull/2154)) - Add...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2224@c961301
dbt-labs/dbt-core
Python
2,224
Add --fail-fast argument for dbt run and dbt test
resolves #1649 ### Description Optional flag `-x` or `--fail-fast` which enforce a `dbt run` to end up on first error (or test failure during `dbt test`). It's really beneficial during long-time runs and development (Continuous Integration pipelines will be grateful). **I'm currently looking for suggestions ho...
2020-03-20T14:36:50Z
Feature Request: --fail-fast argument for dbt run and dbt test ## Feature `--fail-fast` argument for `dbt run` and `dbt test` ### Feature description An optional argument, `--fail-fast`, for dbt run and dbt test which will stop model builds or test runs upon a single failure. It may also be worth adding a paramete...
Thanks @JasonGluck! I think we might have built this at a hackathon once, but I don't think the code ever made it into prod :/ I think the operative line of code is [right here](https://github.com/fishtown-analytics/dbt/blob/7177a6543b56d5d90446710e7295aaebeb415092/core/dbt/task/runnable.py#L113). I imagine we could...
[ { "body": "## Feature\r\n`--fail-fast` argument for `dbt run` and `dbt test`\r\n\r\n### Feature description\r\nAn optional argument, `--fail-fast`, for dbt run and dbt test which will stop model builds or test runs upon a single failure. It may also be worth adding a parameter which will define the amount of fa...
ca232dbdf4b7fd68c1e57b835167c24027aeda65
{ "head_commit": "c9613016e2bc4e14c0cbff76a42f7c1786f8e535", "head_commit_message": "Added --fail-fast argument for dbt run and dbt test", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 9e1d53bda28..e8317f9dc1e 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -1,8 +1,13 @@\n ## dbt next (re...
[ { "diff_hunk": "@@ -281,6 +281,17 @@ def __init__(self, message, project=None, result_type='invalid_project'):\n self.result_type = result_type\n \n \n+class FailFastException(Exception):", "line": null, "original_line": 284, "original_start_line": null, "path": "core/dbt/exceptions.py",...
0a0e71a9ff4bb967030503333cf9721e6414a5a0
diff --git a/CHANGELOG.md b/CHANGELOG.md index ef933506b09..782bf79bee8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## dbt next (release TBD) +### Features +- Added --fail-fast argument for dbt run and dbt test to fail on first test failure or runtime error. ([#1649](https://github.com/fishtown-analyt...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2067@ba3e14c
dbt-labs/dbt-core
Python
2,067
fix an RPC hang when enddocs tags were missing (#2066)
Fix #2066 Fix an issue with rendering the output of a failed jinja block parsing pass where dbt would raise an exception while raising an exception, due to `str(exc)` failing by implementing a TODO I wrote a long time ago... Added tests so we don't experience this again, hopefully.
2020-01-24T15:26:28Z
dbt server fails to reload on HUP if docs block is missing enddocs tag ### Describe the bug When running the dbt server, invalid jinja code can cause the server to get stuck in a "compiling" state. This does _not_ require partial parsing to be enabled. ### Steps To Reproduce 1. Create a file, `models/docs.md` with...
[ { "body": "### Describe the bug\r\nWhen running the dbt server, invalid jinja code can cause the server to get stuck in a \"compiling\" state. This does _not_ require partial parsing to be enabled.\r\n\r\n### Steps To Reproduce\r\n1. Create a file, `models/docs.md` with the following contents:\r\n```\r\n{% docs...
66a4f76c74b8b19ff1d438f76f3a9936b4468f0b
{ "head_commit": "ba3e14cefddd5ffbc0dc52d2d18d84a0a004abcd", "head_commit_message": "fix an RPC hang when enddocs tags were missing, add tests", "patch_to_review": "diff --git a/core/dbt/clients/_jinja_blocks.py b/core/dbt/clients/_jinja_blocks.py\nindex 8d9ce891bdc..34778b9f28b 100644\n--- a/core/dbt/clients/_ji...
[ { "diff_hunk": "@@ -357,8 +357,8 @@ def find_blocks(self, allowed_blocks=None, collect_raw_data=True):\n \n if self.current:\n dbt.exceptions.raise_compiler_error((\n- 'Reached EOF without finding a close block for '\n- '{0.block_type_name} (from {0.end})'\n+ ...
de5ff68943c10ce3078d38cc7af106696ca25ea2
diff --git a/core/dbt/clients/_jinja_blocks.py b/core/dbt/clients/_jinja_blocks.py index 8d9ce891bdc..436e8ccda22 100644 --- a/core/dbt/clients/_jinja_blocks.py +++ b/core/dbt/clients/_jinja_blocks.py @@ -356,10 +356,11 @@ def find_blocks(self, allowed_blocks=None, collect_raw_data=True): self.current ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2060@80c9e62
dbt-labs/dbt-core
Python
2,060
Add logging for a file path that can't be cleaned
Closes https://github.com/fishtown-analytics/dbt/issues/2059 In a case where your `dbt_project.yml` file has: ``` source-paths: ["models"] clean-targets: - "models" - "dbt_modules" ``` when you run `dbt clean` you'll see a message that looks like: ``` Checking models/* Checking dbt_modules/* Cl...
2020-01-18T20:44:26Z
If you have a protected path in your clean targets, log that the file can't be cleaned. ### Describe the feature If I run `dbt clean` the output indicates that a file is checked and then that a file is cleaned. If it cannot clean the file, it doesn't indicate that way. I propose adding a simple message that says `[...
[ { "body": "### Describe the feature\r\nIf I run `dbt clean` the output indicates that a file is checked and then that a file is cleaned. If it cannot clean the file, it doesn't indicate that way. \r\nI propose adding a simple message that says `[file] can't be cleaned`\r\n\r\n### Describe alternatives you've co...
66a4f76c74b8b19ff1d438f76f3a9936b4468f0b
{ "head_commit": "80c9e623ef4cdb1f608c83bd8c7400968e328400", "head_commit_message": "add logging for a file path that can't be cleaned", "patch_to_review": "diff --git a/core/dbt/task/clean.py b/core/dbt/task/clean.py\nindex ad4c3d1edaf..ee4a690a071 100644\n--- a/core/dbt/task/clean.py\n+++ b/core/dbt/task/clean...
[ { "diff_hunk": "@@ -35,4 +35,6 @@ def run(self):\n if not self.__is_protected_path(path):\n shutil.rmtree(path, True)\n logger.info(\" Cleaned {}/*\".format(path))\n+ else:\n+ logger.info(\"{}/* cannot be cleaned\".format(path))", "line":...
199b1ed1dc16fbac8b6d5cfa96f53d38ed00d9c6
diff --git a/core/dbt/task/clean.py b/core/dbt/task/clean.py index ad4c3d1edaf..513b949ee89 100644 --- a/core/dbt/task/clean.py +++ b/core/dbt/task/clean.py @@ -21,7 +21,7 @@ def __is_protected_path(self, path): abs_path = os.path.abspath(path) protected_paths = self.config.source_paths + \ ...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-2200@367eff7
dbt-labs/dbt-core
Python
2,200
Fix missing sql_header for incremental models
resolves #2136 ### Description This PR adds support for injecting a `sql_header` above `merge` statements generated for incremental models. ### Checklist - [x] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) - [x] I have run this code in development and it appears to re...
2020-03-12T19:57:57Z
set_sql_header works well with 'table', but not 'incremental' ### Describe the bug This test fails when you change 'table' for 'incremental': test/integration/022_bigquery_test/models/sql_header_model.sql ### Steps To Reproduce 1. Change 'table' to 'incremental' in sql_header_model.sql 2. `dbt run` works wel...
Thanks for the report @fhoffa - we'll check it out!
[ { "body": "### Describe the bug\r\nThis test fails when you change 'table' for 'incremental':\r\n\r\ntest/integration/022_bigquery_test/models/sql_header_model.sql\r\n\r\n### Steps To Reproduce\r\n\r\n1. Change 'table' to 'incremental' in sql_header_model.sql\r\n2. `dbt run` works well the first time (creates t...
6e1665d1fba48246afc5f6353cf9e5f5eb2cea1c
{ "head_commit": "367eff77fcfd0c4facb213cfabdc416de2d3e90b", "head_commit_message": "(#2136) Fix missing sql_header for incremental models", "patch_to_review": "diff --git a/core/dbt/include/global_project/macros/materializations/common/merge.sql b/core/dbt/include/global_project/macros/materializations/common/me...
[ { "diff_hunk": "@@ -87,6 +90,9 @@\n {% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n+ {%- set s...
f3d4377fddfe8ec3be73440f050e3ad5ef5a0e8e
diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e18e2242b..869464ac31c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ - On `run_cli` API calls that are passed `--vars` differing from the server's `--vars`, the RPC server rebuilds the manifest for that call. ([#2265](https://github.com/fishtown-analyti...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-2037@c1af3ab
dbt-labs/dbt-core
Python
2,037
Feature: faster snowflake catalogs (#2009)
(Tentatively) fix #2009 - Thread catalog queries across information schemas - the `get_catalog` macro now takes an information schema and a list of schemas in that information schema - filtering happens in the database instead of in python To be honest, I'm not totally sure about the bigquery impact of these c...
2020-01-09T21:11:06Z
Reduce memory consumption in docs generation ### Describe the feature The `dbt docs generate` command fetches all of the columns in all of the source and target schemas touched by dbt. As such, even moderately sized dbt projects can have catalogs containing hundreds of thousands of columns. In practice, we see that th...
[ { "body": "### Describe the feature\r\nThe `dbt docs generate` command fetches all of the columns in all of the source and target schemas touched by dbt. As such, even moderately sized dbt projects can have catalogs containing hundreds of thousands of columns. In practice, we see that the `dbt docs generate` co...
ccab27a1e2dbafb220d98b858123a897417751b7
{ "head_commit": "c1af3abbdcd05f3ceac86e5b162e2c594302d817", "head_commit_message": "PR feedback w/ improved catalog results behavior", "patch_to_review": "diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py\nindex 297713e2c7b..5129d60d646 100644\n--- a/core/dbt/adapters/base/impl.py\n+++...
[ { "diff_hunk": "@@ -1009,29 +1012,56 @@ def _catalog_filter_table(\n \"\"\"\n return table.where(_catalog_filter_schemas(manifest))\n \n- def _get_catalog_information_schemas(\n- self, manifest: Manifest\n- ) -> List[InformationSchema]:\n- return list(self._get_cache_schemas(...
04bc2a800ad5aea519d7965308cc1510d0c73770
diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py index 297713e2c7b..41c29c53853 100644 --- a/core/dbt/adapters/base/impl.py +++ b/core/dbt/adapters/base/impl.py @@ -1,4 +1,6 @@ import abc +from concurrent.futures import ThreadPoolExecutor, as_completed +from concurrent.futures import Future...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Performance Optimizations" }
dbt-labs__dbt-core-1934@905f634
dbt-labs/dbt-core
Python
1,934
Fix for broken catalog generation on pg/redshift
Fixes #1926 Some recent updates to how the BigQuery information schema is handled changed the corresponding logic for Postgres & Redshift. dbt previously generated multiple `information schema` objects, _one for each pair of schema and database_, then used them to generate a catalog. Since pg/redshift do not allow ...
2019-11-18T21:44:04Z
[LMA Regression] redshift get_catalog requires exactly one database ### Describe the bug Users are seeing the `redshift get_catalog requires exactly one database` error on dbt v0.15.0-rc1 even though they only have a single database specified in their project. ### Steps To Reproduce Exact reproduction case tbd
[ { "body": "### Describe the bug\r\nUsers are seeing the `redshift get_catalog requires exactly one database` error on dbt v0.15.0-rc1 even though they only have a single database specified in their project.\r\n\r\n### Steps To Reproduce\r\nExact reproduction case tbd", "number": 1926, "title": "[LMA Reg...
2d6fc280fe2d88882367a35b9c8922d141a3f0cb
{ "head_commit": "905f6347814313ec9730bc77b3099c834ba5511d", "head_commit_message": "(#1926) Fix for broken catalog generation on pg/redshift", "patch_to_review": "diff --git a/core/dbt/adapters/base/relation.py b/core/dbt/adapters/base/relation.py\nindex d429fb7f30b..957ac380274 100644\n--- a/core/dbt/adapters/b...
[ { "diff_hunk": "@@ -1,6 +1,7 @@\n \n {% macro redshift__get_base_catalog(information_schemas) -%}\n {%- call statement('base_catalog', fetch_result=True) -%}\n+ {{ log(information_schemas, info=true) }}", "line": null, "original_line": 4, "original_start_line": null, "path": "plugins/redshi...
5c723bf92df34bc9b723dcd265523900bf741106
diff --git a/core/dbt/adapters/base/relation.py b/core/dbt/adapters/base/relation.py index d429fb7f30b..957ac380274 100644 --- a/core/dbt/adapters/base/relation.py +++ b/core/dbt/adapters/base/relation.py @@ -246,7 +246,10 @@ def information_schema(self, view_name=None) -> 'InformationSchema': if not isinstanc...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-1900@f1f14d2
dbt-labs/dbt-core
Python
1,900
log hook info in json logs (#1890)
Fixes #1890 ```json { "json_only": true, "node_started_at": "2019-11-07T18:30:21.727439", "node_name": "minimal-on-run-start-1", "resource_type": "operation", "node_index": 2, "unique_id": "operation.minimal.minimal-on-run-start-1", "run_state": "internal" } ``` completion: ```json { ...
2019-11-07T18:38:50Z
Include node_ information for on-run-start/end hooks in structured logging ### Describe the feature The dbt server should included structured logging information to help treat on-run-start and on-run-end hooks more like "nodes" in a given run. In or around the hook `START` line, the following fields should be rendered...
[ { "body": "### Describe the feature\r\nThe dbt server should included structured logging information to help treat on-run-start and on-run-end hooks more like \"nodes\" in a given run. In or around the hook `START` line, the following fields should be rendered into the structured log messages:\r\n```\r\n - \"no...
6198584f7de7ba042b78dff7ef18be01d8880494
{ "head_commit": "f1f14d237ef6dcf0adaeeaf579ddedd05cdde45c", "head_commit_message": "log hook info in json logs", "patch_to_review": "diff --git a/core/dbt/logger.py b/core/dbt/logger.py\nindex 10d972373de..abab3e5df02 100644\n--- a/core/dbt/logger.py\n+++ b/core/dbt/logger.py\n@@ -265,31 +265,55 @@ def process(s...
[ { "diff_hunk": "@@ -265,31 +265,55 @@ def process(self, record):\n record.extra['node_count'] = self.node_count\n \n \n-class NodeMetadata(logbook.Processor):\n- def __init__(self, node, node_index):\n- self.node = node\n- self.node_index = node_index\n+class ModelMetadata(logbook.Proce...
b9b4ce30e8a960056e11e81d97d582541b2acf05
diff --git a/core/dbt/logger.py b/core/dbt/logger.py index 10d972373de..9343a0c631e 100644 --- a/core/dbt/logger.py +++ b/core/dbt/logger.py @@ -266,30 +266,54 @@ def process(self, record): class NodeMetadata(logbook.Processor): - def __init__(self, node, node_index): + def __init__(self, node, index): ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1795@15c2619
dbt-labs/dbt-core
Python
1,795
(#1576) use the information schema on BigQuery
Fixes #1576 Work in progress. Use the BigQuery `INFORMATION_SCHEMA` to fetch the catalog. I actually cheat here and use `__TABLES__` (not `INFORMATION_SCHEMA.TABLES`) because the information in `__TABLES__` is a superset of the data in `TABLES` (ie. `row_count` and `size_bytes`). Couple of things to verify here:...
2019-09-29T17:49:37Z
Generating docs take and long time When running `dbt docs generate` is take over 10 mins to complete and uses lots of CPU resources producing the catalog. When running with debug turned on the following gets written out: ``` 2019-06-20 16:57:55,546 (MainThread): On "<None>": cache miss for schema "my_project.my_...
Thanks for the report @whittid4 - we'll check it out! My initial thinking: - high cpu usage sounds like an `agate` problem? I recall this being an issue with seeds, but not sure if that's exactly what's happening here - we're probably iterating over the individual date shards, which is probably undersirable I have ru...
[ { "body": "When running `dbt docs generate` is take over 10 mins to complete and uses lots of CPU resources producing the catalog.\r\n\r\nWhen running with debug turned on the following gets written out:\r\n\r\n```\r\n2019-06-20 16:57:55,546 (MainThread): On \"<None>\": cache miss for schema \"my_project.my_dat...
6287d6d30b0295be5625645c0bedf8e4c9c32ecd
{ "head_commit": "15c26192e853ac89605159552460330383405195", "head_commit_message": "Include Location field in catalog from the SCHEMATA table", "patch_to_review": "diff --git a/plugins/bigquery/dbt/adapters/bigquery/impl.py b/plugins/bigquery/dbt/adapters/bigquery/impl.py\nindex 596aff2a66c..5ca6c2e570f 100644\n...
[ { "diff_hunk": "@@ -387,127 +388,31 @@ def load_dataframe(self, database, schema, table_name, agate_table,\n with self.connections.exception_handler(\"LOAD TABLE\"):\n self.poll_until_job_completes(job, timeout)\n \n- ###\n- # The get_catalog implementation for bigquery\n- ###\n- ...
f757a08a992df379822f16093428cb8c31aeef53
diff --git a/plugins/bigquery/dbt/adapters/bigquery/impl.py b/plugins/bigquery/dbt/adapters/bigquery/impl.py index 596aff2a66c..ae34b2a7c65 100644 --- a/plugins/bigquery/dbt/adapters/bigquery/impl.py +++ b/plugins/bigquery/dbt/adapters/bigquery/impl.py @@ -1,5 +1,3 @@ -import copy - import dbt.deprecations import dbt...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Performance Optimizations" }
dbt-labs__dbt-core-1878@1b4c763
dbt-labs/dbt-core
Python
1,878
add run-operation + snapshot to the RPC server (#1875)
Fixes #1875 `snapshot` + `run-operation` support. `run-operation`: In addition to the defaults of 'task_tags' and 'timeout' there are 2 parameters: - macro: str (required) - args: Dict[str, Any] (optional) As in the CLI version, run operations return a `success` boolean that indicates whether th...
2019-10-30T20:31:20Z
Support run-operation and snapshot methods in rpc server ### Describe the feature The rpc server should support the `run_operation` and `snapshot` methods. Additionally, the `cli_args` method should support running operations and snapshots using the CLI syntax. ### Methods *run-operation*: - args *snapshot*:...
[ { "body": "### Describe the feature\r\nThe rpc server should support the `run_operation` and `snapshot` methods. Additionally, the `cli_args` method should support running operations and snapshots using the CLI syntax.\r\n\r\n### Methods\r\n\r\n*run-operation*:\r\n- args\r\n\r\n*snapshot*:\r\n - select\r\n - ex...
8239f9c4e30641aee669a51ee325b0a384b54f9e
{ "head_commit": "1b4c76365c15b73ac054e269f21a78843173c44a", "head_commit_message": "add run_operation + snapshot to the RPC server", "patch_to_review": "diff --git a/core/dbt/contracts/rpc.py b/core/dbt/contracts/rpc.py\nindex 226d8982aad..8c5aed779a9 100644\n--- a/core/dbt/contracts/rpc.py\n+++ b/core/dbt/contr...
[ { "diff_hunk": "@@ -97,3 +101,40 @@ def get_catalog_results(\n _compile_results=compile_results,\n logs=[],\n )\n+\n+\n+class RemoteRunOperationTask(\n+ RPCTask[RPCRunOperationParameters],\n+ HasCLI[RPCRunOperationParameters, RemoteRunOperationResult],\n+ RunOperationTas...
658be46831e15c41925f3c0bb52b6f44f99e2dbe
diff --git a/core/dbt/contracts/rpc.py b/core/dbt/contracts/rpc.py index 226d8982aad..39566fe0d93 100644 --- a/core/dbt/contracts/rpc.py +++ b/core/dbt/contracts/rpc.py @@ -45,6 +45,12 @@ class RPCCompileParameters(RPCParameters): exclude: Union[None, str, List[str]] = None +@dataclass +class RPCSnapshotParame...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1788@a227b31
dbt-labs/dbt-core
Python
1,788
Add runtime per-model warehouse config on snowflake models (#1358)
Fixes #1358 - Add warehouse config to snowflake - Add concept of adapter-level pre/post model hooks - Use those hooks to optionally set a warehouse on a per-model basis in snowflake - Added some silly integration tests - one tests that the warehouse is applied by setting a bad one and failing - one that te...
2019-09-27T15:13:25Z
Snowflake: Enable choosing a warehouse at runtime ### Feature description There are cases where you want a set of models in your project to run on a different Snowflake warehouse so that it completes more quickly. Right now you can do that with hacks involving multiple profiles or environment variables across multip...
@cmcarthur, another approach to do this would be to use a pre-hook with a USE WAREHOUSE query_wh;
[ { "body": "### Feature description\r\n\r\nThere are cases where you want a set of models in your project to run on a different Snowflake warehouse so that it completes more quickly. Right now you can do that with hacks involving multiple profiles or environment variables across multiple runs, but it would be ea...
78a199f94643a47e4ca28696ad1ec7a616a4abbe
{ "head_commit": "a227b311623c2475f0ad4ae918120461fa307e1f", "head_commit_message": "Add runtime per-model warehouse config on snowflake models\n\nAdd warehouse config to snowflake\nAdd concept of adapter-level pre/post model hooks\nUse those hooks to optionally set a warehouse on a per-model basis\nAdded some inte...
[ { "diff_hunk": "@@ -40,3 +43,40 @@ def _make_match_kwargs(self, database, schema, identifier):\n return filter_null_values(\n {\"identifier\": identifier, \"schema\": schema, \"database\": database}\n )\n+\n+ def _get_warehouse(self) -> str:\n+ _, table = self.execute(\n+ ...
52f62430f4a407eb7371b523efa41ca59cbe447e
diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py index 93208be858b..3971a75b145 100644 --- a/core/dbt/adapters/base/impl.py +++ b/core/dbt/adapters/base/impl.py @@ -2,7 +2,8 @@ from contextlib import contextmanager from datetime import datetime from typing import ( - Optional, Tuple, C...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1851@bcd9534
dbt-labs/dbt-core
Python
1,851
Add a configuration option `kms_key_name` to dbt_project.yml for BigQ…
…uery projects where a Cloud KMS key can be specified and used to encrypt models. The key is specified to bigquery in the ddl OPTIONS. ex. ``` models: fishtown_analytics: kms_key_name: 'projects/PROJECT_ID/locations/global/keyRings/test/cryptoKeys/quickstart' my_model: kms_key_name: none ...
2019-10-22T20:38:43Z
Support KMS encryption for BigQuery ### Describe the feature Allow for KMS encryption to be specified in project configuration. Ideally this would be done in dbt_projects.yml like: ```name: fishtown_analytics models: fishtown_analytics: kms_key_name: 'some_kms_key' events: kms_key_name: 'some...
Really neat idea @kconvey! It looks to me like a `kms_key_name` option can be provided to a `create table as` statement in BigQuery. That would be a good mechanism for dbt to use here I think. It appears to me that the `kms_key_name` will also need to be supplied when _querying_ this data too. I think that might ...
[ { "body": "### Describe the feature\r\nAllow for KMS encryption to be specified in project configuration. Ideally this would be done in dbt_projects.yml like:\r\n```name: fishtown_analytics\r\n\r\nmodels:\r\n fishtown_analytics:\r\n kms_key_name: 'some_kms_key'\r\n \r\n events:\r\n kms_key_name: 'som...
1f1d10033f63744c849123fb00fab36080b36070
{ "head_commit": "bcd953490d0c83f92da0e6b0b88a4d6130972262", "head_commit_message": "Add a configuration option `kms_key_name` to dbt_project.yml for BigQuery\nprojects where a Cloud KMS key can be specified and used to encrypt\nmodels. The key is specified to bigquery in the ddl OPTIONS.", "patch_to_review": "di...
[ { "diff_hunk": "@@ -36,24 +36,25 @@\n {% if temporary %}\n {% do opts.update({'expiration_timestamp': 'TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 12 hour)'}) %}\n {% endif %}\n+ {% if kms_key_name %}\n+ {% do opts.update({'kms_key_name': \"'\" ~ kms_key_name ~ \"'\"}) %}\n+ {% endif %}\n \n- {% s...
83de6b16177082260a425ad78d6ad6a4116f11b5
diff --git a/plugins/bigquery/dbt/adapters/bigquery/impl.py b/plugins/bigquery/dbt/adapters/bigquery/impl.py index 648cf2a87e0..5f8027cd86f 100644 --- a/plugins/bigquery/dbt/adapters/bigquery/impl.py +++ b/plugins/bigquery/dbt/adapters/bigquery/impl.py @@ -48,7 +48,8 @@ class BigQueryAdapter(BaseAdapter): Column =...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1615@1a4daab
dbt-labs/dbt-core
Python
1,615
Make node selection O(n)
Fixes #1611 The culprit was `get_ancestor_ephemeral_nodes`, which looked at the set of all selected models and then asked for all ancestors of each... if you select all your models, that means for each model we will go through all models. Oops! This fix is kind of a hack, but it just adds all ephemeral nodes to ...
2019-07-17T16:47:02Z
Node selection is quadratic in running time ## Issue The node selection algorithm is pretty obviously quadratic in running time and probably shouldn't be. ### Issue description In particular, we make N^2+N calls to `is_selected_node`, where N is the number of nodes in the graph. At smallish numbers of nodes (~100-...
[ { "body": "## Issue\r\nThe node selection algorithm is pretty obviously quadratic in running time and probably shouldn't be.\r\n\r\n### Issue description\r\nIn particular, we make N^2+N calls to `is_selected_node`, where N is the number of nodes in the graph. At smallish numbers of nodes (~100-200) that's no bi...
5a1f0bdda574022ef0ed3e93b5f94257b928d653
{ "head_commit": "1a4daaba106f4b49daa43c93a8ae8eb4a7b8313a", "head_commit_message": "That was the last reference to to_flat_graph, so goodbye to all that", "patch_to_review": "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 08dcbe0e13d..72596c838c0 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -1,3 +1,8 @@\n...
[ { "diff_hunk": "@@ -398,8 +398,6 @@ def generate_base(model, model_dict, config, manifest, source_config,\n \"exceptions\": dbt.exceptions.wrapped_exports(model),\n \"execute\": provider.execute,\n \"flags\": dbt.flags,\n- # TODO: Do we have to leave this in?", "line": 401, ...
0648737fc1b8493dc86ce64feae8fd8747853b70
diff --git a/CHANGELOG.md b/CHANGELOG.md index 08dcbe0e13d..dea5d399d50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## dbt 0.14.1 + +### Breaking changes + - the undocumented "graph" variable's "macros" field was removed from the parsing context ([#1615](https://github.com/fishtown-analytics/dbt/pull/...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Performance Optimizations" }
dbt-labs__dbt-core-1550@92ef783
dbt-labs/dbt-core
Python
1,550
clean up block parsing to make it dumber and more effective (#1547)
Fixes #1547 The block parser is now two-tiered: one part extracts tags `{% x %}` and is pretty purely linear, and one part tries to make sense out of begin/end sequencing and maintains a stack. I think this version is much more maintainable and readable, and I feel way more confident releasing this. The diff is pre...
2019-06-18T16:44:52Z
Tell the block parser to ignore tags/nesting by default ## Feature Replace recursive block parsing with extracting a flat list of tags and some metadata (position, block type/name) ### Feature description The block parser currently has a list of special tags that don't/might not have a matching `{% endtag %}`, and...
[ { "body": "## Feature\r\nReplace recursive block parsing with extracting a flat list of tags and some metadata (position, block type/name)\r\n\r\n### Feature description\r\nThe block parser currently has a list of special tags that don't/might not have a matching `{% endtag %}`, and recursively descends into bl...
85164b616e3682a7bd476dd401344c1834aa5fee
{ "head_commit": "92ef7839481f091f1d91c93131cd48134c52b036", "head_commit_message": "clean up block parsing to make it dumber and more effective", "patch_to_review": "diff --git a/core/dbt/clients/_jinja_blocks.py b/core/dbt/clients/_jinja_blocks.py\nindex a0e567e0ca2..766b451a57d 100644\n--- a/core/dbt/clients/_...
[ { "diff_hunk": "@@ -354,5 +354,7 @@ def undefined_error(msg):\n raise jinja2.exceptions.UndefinedError(msg)\n \n \n-def extract_toplevel_blocks(data):\n- return BlockIterator(data).lex_for_blocks()\n+def extract_toplevel_blocks(data, allowed=None, collect_raw_data=True):\n+ bi = BlockIterator(data)\n+...
18953536f1db8bdd1846f43fcc47e967bf49ae44
diff --git a/core/dbt/clients/_jinja_blocks.py b/core/dbt/clients/_jinja_blocks.py index a0e567e0ca2..d5f4f33ab7f 100644 --- a/core/dbt/clients/_jinja_blocks.py +++ b/core/dbt/clients/_jinja_blocks.py @@ -1,4 +1,5 @@ import re +from collections import namedtuple import dbt.exceptions @@ -45,6 +46,9 @@ def end_pat...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1453@70206b1
dbt-labs/dbt-core
Python
1,453
Warn on unpinned git packages (#1446)
Fixes #1446 This fails the run in strict mode and logs a warning otherwise. With no repository set and no value for `warn-unpinned`: ``` $ cat packages.yml packages: - git: "https://github.com/fishtown-analytics/dbt-utils" $ dbt deps Running with dbt=0.13.0 WARNING: Version for https://github.com/fishtow...
2019-05-10T02:34:44Z
Warn for packages that are not pinned to a specific version ## Feature ### Feature description When we make breaking changes to repos like `dbt-utils`, we invariably break _someone's_ project. This happens when people 1) don't specify a version/revision for their package or 2) specify something overly broad, like `...
[ { "body": "## Feature\r\n\r\n### Feature description\r\nWhen we make breaking changes to repos like `dbt-utils`, we invariably break _someone's_ project. This happens when people 1) don't specify a version/revision for their package or 2) specify something overly broad, like `master`.\r\n\r\nWhile this is prett...
cc8ef4774798059b4a0ee4364b6944a487b2fa6b
{ "head_commit": "70206b16355fa786b880ceef88d31cbb6d14e5fc", "head_commit_message": "warn on unpinned dependencies, unless warn-unpinned: False is set in packages.yml", "patch_to_review": "diff --git a/core/dbt/contracts/project.py b/core/dbt/contracts/project.py\nindex 9e79101f52a..3bda33e2500 100644\n--- a/core...
[ { "diff_hunk": "@@ -252,8 +255,12 @@ def nice_version_name(self):\n return \"revision {}\".format(self.version_name())\n \n def incorporate(self, other):\n+ # if one is True, make both be True.\n+ warn_unpinned = self.warn_unpinned and other.warn_unpinned", "line": 260, "origin...
ea8825996d56f89a644a201fc2436e6de83ce6b6
diff --git a/core/dbt/contracts/project.py b/core/dbt/contracts/project.py index 9e79101f52a..3bda33e2500 100644 --- a/core/dbt/contracts/project.py +++ b/core/dbt/contracts/project.py @@ -188,6 +188,9 @@ class Project(APIObject): 'items': {'type': 'string'}, 'description': 'The git revision t...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1452@d74e37d
dbt-labs/dbt-core
Python
1,452
Handle seeds with utf-8 BOM (#1177)
Fixes #1177 Instead of passing agate a filepath, open the file at that path, look at the first byte, and seek back if it's not a BOM. Regardless, pass the file handle to agate instead. That way when agate gets the file handle, if there is a BOM, it won't see it.
2019-05-10T00:01:58Z
Strip BOM from Excel-generated UTF-8 CSV files ## Issue UTF-8 CSV files generated by Excel have a byte order mark (BOM) which is included in the column title when using `dbt seed`. ### Issue description Save Excel file as UTF-8 CSV on Microsoft Excel for Mac. Run `dbt seed` on the resulting file. ### Result...
I (fortunately) don't have an excel-generated csv lying around to test this on, but had written down some notes about this before. I *think* the following enables you to read excel-generated csv files as expected, for what it's worth: ``` >>> import codecs >>> import csv >>> with codecs.open('excel_output.csv'...
[ { "body": "## Issue\r\n\r\nUTF-8 CSV files generated by Excel have a byte order mark (BOM) which is included in the column title when using `dbt seed`.\r\n\r\n### Issue description\r\n\r\nSave Excel file as UTF-8 CSV on Microsoft Excel for Mac. Run `dbt seed` on the resulting file.\r\n\r\n### Results\r\n\r\nThe...
cc8ef4774798059b4a0ee4364b6944a487b2fa6b
{ "head_commit": "d74e37d4ea6f5cc588fa102f7003f0978ed4cf8f", "head_commit_message": "Always specify encodings to open()\n\nFixes some neat windows behavior where the default code page can be cp1252\nAdd BOM unit test", "patch_to_review": "diff --git a/core/dbt/clients/agate_helper.py b/core/dbt/clients/agate_help...
[ { "diff_hunk": "@@ -41,4 +42,7 @@ def as_matrix(table):\n \n \n def from_csv(abspath):\n- return agate.Table.from_csv(abspath, column_types=DEFAULT_TYPE_TESTER)\n+ with dbt.compat.open_file(abspath) as fp:\n+ if fp.read(1) != u'\\ufeff':", "line": null, "original_line": 46, "original_st...
26427d2af025f51cab52086a85666fb24ba86744
diff --git a/core/dbt/clients/agate_helper.py b/core/dbt/clients/agate_helper.py index e08c500f485..446056a5e8f 100644 --- a/core/dbt/clients/agate_helper.py +++ b/core/dbt/clients/agate_helper.py @@ -1,6 +1,11 @@ +from codecs import BOM_UTF8 + +import dbt.compat import agate +BOM = BOM_UTF8.decode('utf-8') # '\u...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-1406@4730789
dbt-labs/dbt-core
Python
1,406
Fix run operation return codes (#1377)
Fixes #1377 When we run an operation, set the return code on error. Also, since wilt-chamberlain totally broke the run-operation command in multiple ways, I fixed all that. And added tests so I don't do that again. I also added a commit call that happens after successfully executing the macro. Maybe that woul...
2019-04-17T17:30:00Z
Fail with nonzero exit code if run-operation task encounters an unhandled exception ## Issue ### Issue description If a run-operation macro fails with an exception (ie. unable to connect to database, invalid SQL, etc), dbt should exit with a nonzero exit code. Moreover, run-operations should generally go through a ...
[ { "body": "## Issue\r\n\r\n### Issue description\r\nIf a run-operation macro fails with an exception (ie. unable to connect to database, invalid SQL, etc), dbt should exit with a nonzero exit code. Moreover, run-operations should generally go through a similar code-path to models, seeds, etc, such that this hap...
4dd80567e15580079b6b72cf6ea9eed46c9b5953
{ "head_commit": "473078986ca7905190bbf20ec3422e24e3d56c20", "head_commit_message": "PR feedback: run_unsafe -> _run_unsafe", "patch_to_review": "diff --git a/core/dbt/task/run_operation.py b/core/dbt/task/run_operation.py\nindex 6ea5d91bd98..10fe0b1e04a 100644\n--- a/core/dbt/task/run_operation.py\n+++ b/core/db...
[ { "diff_hunk": "@@ -22,19 +21,44 @@ def _get_macro_parts(self):\n def _get_kwargs(self):\n return dbt.utils.parse_cli_vars(self.args.args)\n \n- def run(self):\n+ def _run_unsafe(self):\n manifest = GraphLoader.load_all(self.config)\n adapter = get_adapter(self.config)\n \n ...
ca02a5851918bf0325b9b3688b4abadf5e1cf5df
diff --git a/core/dbt/task/run_operation.py b/core/dbt/task/run_operation.py index 6ea5d91bd98..fe90649d1e0 100644 --- a/core/dbt/task/run_operation.py +++ b/core/dbt/task/run_operation.py @@ -1,6 +1,5 @@ from dbt.logger import GLOBAL_LOGGER as logger - -from dbt.task.base import BaseTask +from dbt.task.base import Co...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-1436@e043643
dbt-labs/dbt-core
Python
1,436
dbt ls command (#467)
Fixes #467 One change I had to make: the `original_file_path` now points at the actual original file path, rather than a weird combination of the compiled path + the root of the search that sometimes doesn't exist. Models and such retained their original correct paths.
2019-05-01T20:59:02Z
new command: dbt ls List models selected by CLI args. Eg. ``` $ dbt ls --models salesforce.* --exclude salesforce_accounts models/salesforce/salesforce_users.sql models/salesforce/salesforce_contacts.sql models/salesforce/salesforce_leads.sql .... ``` This will be especially valuable when dbt supports selec...
I think I'd prefer the command to be `list` as opposed to `ls`, and for it to just return the model names. ``` $ dbt list --models salesforce.* --exclude salesforce_accounts salesforce_users salesforce_contacts salesforce_leads .... ``` Maybe it could have a flag like `--verbose` that shows the fqn versions: ...
[ { "body": "List models selected by CLI args. Eg.\r\n\r\n```\r\n$ dbt ls --models salesforce.* --exclude salesforce_accounts\r\nmodels/salesforce/salesforce_users.sql\r\nmodels/salesforce/salesforce_contacts.sql\r\nmodels/salesforce/salesforce_leads.sql\r\n....\r\n```\r\n\r\nThis will be especially valuable when...
3c8bbddb5f03f4009722ce83568b936652926bd2
{ "head_commit": "e043643a54b5912cfaf06b9e1a272571454b7327", "head_commit_message": "Add a new ListTask, and 'dbt list'/'dbt ls'\n\nAll tasks now have a 'pre_init_hook' classmethod, called by main\n - runs after args are parsed, before anything else", "patch_to_review": "diff --git a/core/dbt/logger.py b/core/dbt...
[ { "diff_hunk": "@@ -569,6 +571,42 @@ def _build_rpc_subparser(subparsers, base_subparser):\n return sub\n \n \n+def _build_list_subparser(subparsers, base_subparser):\n+ sub = subparsers.add_parser(\n+ 'list',\n+ parents=[base_subparser],\n+ help='list models'\n+ )\n+ sub.set_d...
8e426e60c9b6d40425b805ebe2d10ce9d522a285
diff --git a/core/dbt/logger.py b/core/dbt/logger.py index f658769172f..7ec7426c619 100644 --- a/core/dbt/logger.py +++ b/core/dbt/logger.py @@ -50,6 +50,11 @@ def notice(self, msg, *args, **kwargs): stdout_handler.setFormatter(logging.Formatter('%(message)s')) stdout_handler.setLevel(NOTICE) +stderr_handler = logg...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-1440@ec8277b
dbt-labs/dbt-core
Python
1,440
Output run hooks (#696)
Fixes #696 Output information about the on-run-start and on-run-end hooks before and after running dbt. One wrinkle, the output isn't exactly as described in the issue - it's a bit tricky to move that `Concurrency` line before hooks run. Instead you get this order. ``` Running with dbt=0.13.0 Found 163 macr...
2019-05-03T15:08:33Z
show on-run-start/end + hooks in dbt output ### Feature dbt doesn't output any info about the start/end hooks that it runs, so it can be hard to understand why the stdout seems to stall. Instead, dbt should log the start/end hooks that it is running to the console. Example: ``` $ dbt run Found 3 models, 2 te...
I'd like to take a stab at this. Cool @vijaykiran! Let me know if there's anything I can do to help out when you give it a shot :) This looks good
[ { "body": "### Feature\r\n\r\ndbt doesn't output any info about the start/end hooks that it runs, so it can be hard to understand why the stdout seems to stall. Instead, dbt should log the start/end hooks that it is running to the console.\r\n\r\nExample:\r\n```\r\n$ dbt run\r\n\r\nFound 3 models, 2 tests, 0 ar...
3c8bbddb5f03f4009722ce83568b936652926bd2
{ "head_commit": "ec8277b0e46654d6db18f99e26157af1440ac1e9", "head_commit_message": "add color to hooks, give hooks names", "patch_to_review": "diff --git a/core/dbt/logger.py b/core/dbt/logger.py\nindex f658769172f..9840d8c8fc8 100644\n--- a/core/dbt/logger.py\n+++ b/core/dbt/logger.py\n@@ -67,6 +67,10 @@ def no...
[ { "diff_hunk": "@@ -33,22 +73,35 @@ def run_hooks(self, adapter, hook_type, extra_context):\n # b/c psycopg2 automatically begins a transaction when a connection\n # is created.\n adapter.clear_transaction()\n+ if not ordered_hooks:\n+ return\n+ num_hooks = len(o...
f6bf8d912a2d8fecf596bbf0f2310cb7c1450b27
diff --git a/core/dbt/logger.py b/core/dbt/logger.py index f658769172f..9840d8c8fc8 100644 --- a/core/dbt/logger.py +++ b/core/dbt/logger.py @@ -67,6 +67,10 @@ def notice(self, msg, *args, **kwargs): # provide this for the cache. CACHE_LOGGER = logging.getLogger('dbt.cache') +# add a dummy handler to avoid `No hand...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
ccxt__ccxt-20802@980d87f
ccxt/ccxt
Python
20,802
fetchOHLCV: switch between current and history candles
Edited how fetchOHLCV switches between history and current candles in the since handling fixes: #20756 ### Test 1 (history candles): ``` const hourInMs = 3600 * 1000; since = this.milliseconds() - 1439 * hourInMs; ``` ``` okx.fetchOHLCV (BTC/USDT, 1h, 1699862134346, 300) okx GET https://www.okx.com/api/v5/ma...
2024-01-12T08:06:34Z
Okx fetch_ohlcv candles/history candles automatic switch issue ### Operating System Windows 10 ### Programming Languages _No response_ ### CCXT Version 4.2.9 ### Description Okx states that limit is 300 for live candles, and 100 for history candles And api may return 1440 live candles If i quer...
Hey @Alfavisioner I think your question might be answered by the comment in the code snippet you posted: `# if the since timestamp is more than limit candles back in the past` then the history candles with a limit of 100 are used, based on that I don't think it makes sense to remove limit from calc because then I'm no...
[ { "body": "### Operating System\r\n\r\nWindows 10\r\n\r\n### Programming Languages\r\n\r\n_No response_\r\n\r\n### CCXT Version\r\n\r\n4.2.9\r\n\r\n### Description\r\n\r\nOkx states that limit is 300 for live candles, and 100 for history candles\r\nAnd api may return 1440 live candles\r\n\r\nIf i query live can...
e34212db9dd6aeff7d652f38f5ce34ddc916f59f
{ "head_commit": "980d87f0e2a78e7d609623b8d4940672163a3697", "head_commit_message": "fix(fetchOHLCV): switch between current and history candles\n\n```\nconst hourInMs = 3600 * 1000;\nsince = this.milliseconds() - 1440 * hourInMs;\n```\n```\nokx.fetchOHLCV (BTC/USDT, 1h,1699862134346 , 300)\n\nokx GET https://www.o...
[ { "diff_hunk": "@@ -2146,17 +2146,14 @@ export default class okx extends Exchange {\n let defaultType = 'Candles';\n if (since !== undefined) {\n const now = this.milliseconds ();\n- const difference = now - since;\n const durationInMilliseconds = duration * 10...
2801dcd43937d6a4afa1f277a4aaa0a8d8be3bda
diff --git a/ts/src/okx.ts b/ts/src/okx.ts index d66a18cceae37..ae22ef1b9f8b2 100644 --- a/ts/src/okx.ts +++ b/ts/src/okx.ts @@ -2146,17 +2146,14 @@ export default class okx extends Exchange { let defaultType = 'Candles'; if (since !== undefined) { const now = this.milliseconds (); - ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
cookiecutter__cookiecutter-django-4971@bac46de
cookiecutter/cookiecutter-django
Python
4,971
Fix `runserver_plus` hot-reload when under Windows + Docker
## Description Supporting django auto reload in windows docker. ## Rationale Now it doesn't reload when django code is changed in windows docker env. The problem is related to wsl2 and Werkzeug's built-in reloading system. So it can be fixed with stat polling options. FIX #4970
2024-04-06T02:54:37Z
Why doesn't add RunServerPlus options for reload in windows when using docker? ## Description What are you proposing? How should it be implemented? Add this code when window = y when generating project, for reloading django code in window. ``` end of base.py # RunServerPlus # -------------------------------...
This would definitely help, can you submit a PR? > This would definitely help, can you submit a PR? Yeah. It is honor to me. I will make a pr soon. I hope you review my code. 😀
[ { "body": "## Description\r\n\r\nWhat are you proposing? How should it be implemented?\r\n\r\nAdd this code when window = y when generating project, for reloading django code in window.\r\n\r\n```\r\nend of base.py\r\n# RunServerPlus\r\n# -------------------------------------------------------------------------...
83ceb39b50355d92f0f164b30f2c6fbca5ed36f2
{ "head_commit": "bac46de67f3a829dc51921660af9a426f483a225", "head_commit_message": "Add options to reload django when file changes in windows docker", "patch_to_review": "diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py\nindex f1edb514ba...
[ { "diff_hunk": "@@ -83,6 +83,15 @@\n # The node container isn't started (yet?)\n pass\n {%- endif %}\n+{% if cookiecutter.windows == 'y' %}\n+# RunServerPlus\n+# ------------------------------------------------------------------------------\n+# After how many seconds auto-reload should scan ...
f4421a81eeeba758f2fd6a0352d2fa04be7aafcb
diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py index f1edb514ba..ab526f968c 100644 --- a/{{cookiecutter.project_slug}}/config/settings/local.py +++ b/{{cookiecutter.project_slug}}/config/settings/local.py @@ -83,6 +83,15 @@ # The nod...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "New Feature Additions" }
dmlc__dgl-6409@2f57756
dmlc/dgl
Python
6,409
[Sparse]Fix device check
## Description Add the device check for sparse operator. When user call the function and the device of input matrix is not the same as input tensor, raise an error. Resolve #6393. ## Checklist Please feel free to remove inapplicable items for your PR. - [ ] The PR title starts with [$CATEGORY] (such as [NN], [...
2023-10-09T02:21:11Z
[Bug]DGL sparse run error message is incomplete ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> DGL sparse run error message is incomplete, make it hard to debug for user. ## To Reproduce In DGL sparse, the op like bsddmm needs all inputs are on the same device, howerver, if inputs are ...
[ { "body": "## 🐛 Bug\r\n\r\n<!-- A clear and concise description of what the bug is. -->\r\nDGL sparse run error message is incomplete, make it hard to debug for user.\r\n\r\n## To Reproduce\r\n\r\nIn DGL sparse, the op like bsddmm needs all inputs are on the same device, howerver, if inputs are not on the same...
fdb4737c3517380a8ffd01e743edea231c7570c5
{ "head_commit": "2f57756c70e70a1b1a7ac69bd58b75a61934a4f7", "head_commit_message": "add device check in c", "patch_to_review": "diff --git a/dgl_sparse/src/sddmm.cc b/dgl_sparse/src/sddmm.cc\nindex b32f1640de45..810583e01a99 100644\n--- a/dgl_sparse/src/sddmm.cc\n+++ b/dgl_sparse/src/sddmm.cc\n@@ -61,8 +61,9 @@ ...
[ { "diff_hunk": "@@ -123,7 +123,6 @@ def spspmm(A: SparseMatrix, B: SparseMatrix) -> SparseMatrix:\n assert isinstance(\n B, SparseMatrix\n ), f\"Expect A2 to be a SparseMatrix object, got {type(B)}.\"\n-", "line": null, "original_line": 126, "original_start_line": null, "path": "...
b9fd04848c7dbf4e89095f079435d727186455fe
diff --git a/dgl_sparse/src/sddmm.cc b/dgl_sparse/src/sddmm.cc index b32f1640de45..810583e01a99 100644 --- a/dgl_sparse/src/sddmm.cc +++ b/dgl_sparse/src/sddmm.cc @@ -61,8 +61,9 @@ void _SDDMMSanityCheck( mat1.dtype() == mat2.dtype(), "SDDMM: the two dense matrices should have the same dtype."); TORCH_...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }
dbt-labs__dbt-core-11020@2cb2c96
dbt-labs/dbt-core
Python
11,020
make microbatch models skippable
Resolves https://github.com/dbt-labs/dbt-core/issues/11021 <!--- Include the number of the issue addressed by this PR above, if applicable. PRs for code changes without an associated issue *will not be merged*. See CONTRIBUTING.md for more information. Add the `user docs` label to this PR if it will ne...
2024-11-21T16:22:02Z
[Bug] Skipping microbatch model fails with `typeError: object of type 'Field' has no len()` An upstream failing leads to a microbatch model skipping (but still executing?) with the failure 'Field' has no len(): ``` 15:47:30 Found 23 models, 6 seeds, 21 data tests, 6 sources, 2 exposures, 13 metrics, 769 macros, 6 ...
[ { "body": "An upstream failing leads to a microbatch model skipping (but still executing?) with the failure 'Field' has no len():\r\n\r\n```\r\n15:47:30 Found 23 models, 6 seeds, 21 data tests, 6 sources, 2 exposures, 13 metrics, 769 macros, 6 semantic models, 5 unit tests\r\n15:47:30 \r\n15:47:30 Concurrenc...
fd6ec71dabae91f4f243362acbcda6dc1beccec6
{ "head_commit": "2cb2c96a18735f66e0fbf70d7472fc19c8b14586", "head_commit_message": "make microbatch models skippable", "patch_to_review": "diff --git a/core/dbt/task/run.py b/core/dbt/task/run.py\nindex 1b4be463e78..0b991fc9f29 100644\n--- a/core/dbt/task/run.py\n+++ b/core/dbt/task/run.py\n@@ -2,7 +2,7 @@\n imp...
[ { "diff_hunk": "@@ -335,7 +335,7 @@ def execute(self, model, manifest):\n \n class MicrobatchModelRunner(ModelRunner):\n batch_idx: Optional[int] = None\n- batches: Dict[int, BatchType] = field(default_factory=dict)", "line": 338, "original_line": 338, "original_start_line": null, "path":...
052d699ff31651f833a434a352f8247662cc4ac7
diff --git a/.changes/unreleased/Fixes-20241121-112638.yaml b/.changes/unreleased/Fixes-20241121-112638.yaml new file mode 100644 index 00000000000..15a23ae8995 --- /dev/null +++ b/.changes/unreleased/Fixes-20241121-112638.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Make microbatch models skippable +time: 2024-11-21T11:26...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dask__dask-7473@4b154b0
dask/dask
Python
7,473
Add ignore_order parameter in dd.concat (#7398)
- Closes #7398 - Tests added / passed - Passes `black dask` / `flake8 dask`
2021-03-26T21:09:50Z
add "ignore_order" parameter for categoricals in dd.concat it would be handy to have a passthrough parameter to dd.concat - currently the union_categoricals call is parameter-free: ``` dtype = "category" if left is not None and right is not None: dtype = union_categoricals( ...
That sounds like a nice addition, thanks for writing it up! If you have time to work on a pull request, that is the best and quickest way to get this feature :) Can i work on this ? I see two options - ``` @concat_dispatch.register((pd.DataFrame, pd.Series, pd.Index)) ...
[ { "body": "it would be handy to have a passthrough parameter to dd.concat - currently the union_categoricals call is parameter-free:\r\n\r\n```\r\n dtype = \"category\"\r\n if left is not None and right is not None:\r\n dtype = union_categoricals(\r\n [left.astyp...
fba94e65e6053163fd1b1ed3c1803ab4f4aa541f
{ "head_commit": "4b154b0740b11e40d4a44f8727798189761fd924", "head_commit_message": "Add ignore_order parameter in dd.concat (#7398)", "patch_to_review": "diff --git a/dask/dataframe/methods.py b/dask/dataframe/methods.py\nindex 7c47d443c9a..2798c099c61 100644\n--- a/dask/dataframe/methods.py\n+++ b/dask/datafram...
[ { "diff_hunk": "@@ -1103,6 +1129,8 @@ def concat(\n ignore_unknown_divisions : bool, default False\n By default a warning is raised if any input has unknown divisions.\n Set to True to disable this warning.\n+ ignore_order : bool, default False\n+ Wether to ignore order when doing ...
d2db289eea9d605e6e5f758ceb80f7ef4bb61303
diff --git a/dask/dataframe/methods.py b/dask/dataframe/methods.py index 7c47d443c9a..2798c099c61 100644 --- a/dask/dataframe/methods.py +++ b/dask/dataframe/methods.py @@ -398,6 +398,7 @@ def concat( join="outer", uniform=False, filter_warning=True, + ignore_order=False, ignore_index=False, ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-10989@bd08705
dbt-labs/dbt-core
Python
10,989
fix deprecation firing for microbatch model w custom strategy
Resolves #10994 ### Problem The deprecation about custom microbatch macros was being fired in the wrong instances. It was being fired a custom marcro _wasn't_ present instead of when it _was_ 🫠 ### Solution Negate the conditional check of `self.manifest._microbatch_macro_is_core` ### Checklist - [X]...
2024-11-12T20:07:03Z
[Bug] Deprecation warning for custom `microbatch` macros is being fired incorrectly ### Is this a new bug in dbt-core? - [X] I believe this is a new bug in dbt-core - [X] I have searched the existing issues, and I could not find an existing issue for this bug ### Current Behavior A deprecation warning about custom m...
[ { "body": "### Is this a new bug in dbt-core?\n\n- [X] I believe this is a new bug in dbt-core\n- [X] I have searched the existing issues, and I could not find an existing issue for this bug\n\n### Current Behavior\n\nA deprecation warning about custom microbatch marcos is issued IFF all the following are true\...
89caa33fb42a74087a5ff9cb3ed56d37bfd63f5a
{ "head_commit": "bd087056c3f43e9ea1af1dfffd913eef91c355dc", "head_commit_message": "Add changie doc", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20241112-210839.yaml b/.changes/unreleased/Fixes-20241112-210839.yaml\nnew file mode 100644\nindex 00000000000..031e160f092\n--- /dev/null\n+++ b/.chang...
[ { "diff_hunk": "@@ -1,4 +1,4 @@\n-git+https://github.com/dbt-labs/dbt-adapters.git@main\n+git+https://github.com/dbt-labs/dbt-adapters.git@fix-microbatch-behavior-flag-conditional", "line": null, "original_line": 1, "original_start_line": null, "path": "dev-requirements.txt", "start_line": n...
82a093a2a4cd8d1bed265cf451b08b90a0a7e136
diff --git a/.changes/unreleased/Fixes-20241112-210839.yaml b/.changes/unreleased/Fixes-20241112-210839.yaml new file mode 100644 index 00000000000..031e160f092 --- /dev/null +++ b/.changes/unreleased/Fixes-20241112-210839.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Correct when custom microbatch macro deprecation warning...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }
cupy__cupy-3936@493d069
cupy/cupy
Python
3,936
Support cublasXgetrsBatched and add cupy.cublas.batched_gesv
Closes https://github.com/cupy/cupy/issues/3931
2020-09-03T13:47:31Z
Performance issue : cupy is 800 times slower than numpy in linalg.solve() Dear cupy team, I found that the cupy.linalg.solve routine is much slower than the corresponding numpy routine (about 800 times, which makes is unusable), in a very simple and massively parallel instance. Here I solve 10000 linear systems of s...
It is not surprising to see such slow performance when solving multiple small linear matrix equations, because the current `cupy.linalg.solve` implementation solves the multiple linear matrix equations one by one. https://github.com/cupy/cupy/blob/e2b5a3c19f8aec1c4acfda239265ba4e54e5bd60/cupy/linalg/solve.py#L65-L68 ...
[ { "body": "Dear cupy team,\r\n\r\nI found that the cupy.linalg.solve routine is much slower than the corresponding numpy routine (about 800 times, which makes is unusable), in a very simple and massively parallel instance. Here I solve 10000 linear systems of size 2x2 in parallel.\r\n\r\n```console\r\nimport nu...
07fef67fc8a493252f21c393eb007ca0a7d04c10
{ "head_commit": "493d0698de7d98dff2b93df9e4ec8cc63625636c", "head_commit_message": "Add error checks", "patch_to_review": "diff --git a/cupy/cublas.py b/cupy/cublas.py\nnew file mode 100644\nindex 00000000000..04b5cc58ad2\n--- /dev/null\n+++ b/cupy/cublas.py\n@@ -0,0 +1,78 @@\n+import numpy\n+\n+import cupy\n+fr...
[ { "diff_hunk": "@@ -54,6 +55,9 @@ def solve(a, b):\n if a.ndim == 2:\n return cupy.cusolver.gesv(a, b)\n \n+ if a.shape[-1] <= 256:", "line": null, "original_line": 58, "original_start_line": null, "path": "cupy/linalg/solve.py", "start_line": null, "text": "@user1:\nIs th...
427a0a7a4901721841e40135068e072cc9b6c760
diff --git a/cupy/cublas.py b/cupy/cublas.py new file mode 100644 index 00000000000..63043a82df6 --- /dev/null +++ b/cupy/cublas.py @@ -0,0 +1,104 @@ +import numpy +from numpy import linalg + +import warnings + +import cupy +from cupy_backends.cuda.libs import cublas +from cupy.cuda import device +from cupy.linalg impo...
{ "difficulty": "high", "estimated_review_effort": 4, "problem_domain": "Performance Optimizations" }
deepset-ai__haystack-4159@aa5341d
deepset-ai/haystack
Python
4,159
feat: add `top_k` to `PromptNode`
### Related Issues - fixes https://github.com/deepset-ai/haystack/issues/4158 ### Proposed Changes: - add `top_k` parameter to `PromptNode` - push down `top_k` to invocation layers and map them to their invocation interface ### How did you test it? - added tests ### Notes for the reviewer - I don't know w...
2023-02-14T17:56:39Z
Add `top_k` to `PromptNode` **Is your feature request related to a problem? Please describe.** Setting top_k on `PromptNode` is quite cumbersome. Depending on which invocation context you use, you have to set different params on `PromptModel`: ***For hf models:*** ```yaml .... - name: my_prompt_model type: ...
[ { "body": "**Is your feature request related to a problem? Please describe.**\r\nSetting top_k on `PromptNode` is quite cumbersome. Depending on which invocation context you use, you have to set different params on `PromptModel`:\r\n***For hf models:***\r\n```yaml\r\n....\r\n - name: my_prompt_model\r\n typ...
d129598203c551ed705c94307f5d9d4b09d1964f
{ "head_commit": "aa5341d0ad637bd3da242bba70b9000fc7bf3a62", "head_commit_message": "add top_k to PromptNode", "patch_to_review": "diff --git a/haystack/nodes/prompt/prompt_node.py b/haystack/nodes/prompt/prompt_node.py\nindex 520c755912..a346e73467 100644\n--- a/haystack/nodes/prompt/prompt_node.py\n+++ b/haysta...
[ { "diff_hunk": "@@ -459,6 +463,8 @@ def invoke(self, *args, **kwargs):\n # we use keyword stop_words but OpenAI uses stop\n if \"stop_words\" in kwargs:\n kwargs[\"stop\"] = kwargs.pop(\"stop_words\")\n+ if \"top_k\" in kwargs:\n+ kwargs[\"n\"] =...
79f8f13f29471b69355cd3d4b799876c5013ba7d
diff --git a/haystack/nodes/prompt/prompt_node.py b/haystack/nodes/prompt/prompt_node.py index 39f94b5d2a..01e2d2d111 100644 --- a/haystack/nodes/prompt/prompt_node.py +++ b/haystack/nodes/prompt/prompt_node.py @@ -337,6 +337,7 @@ def invoke(self, *args, **kwargs): """ output: List[Dict[str, str]] = [...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
crewAIInc__crewAI-2604@d079e36
crewAIInc/crewAI
Python
2,604
Fix Mem0 OSS
Closes https://github.com/crewAIInc/crewAI/issues/2599
2025-04-14T16:48:41Z
[BUG] Mem0 (local config) - Memory.search() got an unexpected keyword argument 'metadata' ### Description I am currently using local mem0 with the following config ``` local_mem0_config = { "vector_store": { "provider": "qdrant", "config": { "collection_name": "user_memo...
Hi @Jainish-S, I think there is one bug associated with the use of local_mem0_config, This is the issue, #2587. the local config parameter is not being passed currently to the `Mem0` class. @Vidit-Ostwal Yes I had found it earlier and have fixed it locally. > [@Vidit-Ostwal](https://github.com/Vidit-Ostwal) Yes I ...
[ { "body": "### Description\n\nI am currently using local mem0 with the following config\n```\nlocal_mem0_config = {\n \"vector_store\": {\n \"provider\": \"qdrant\",\n \"config\": {\n \"collection_name\": \"user_memory\",\n \"host\": \"192.168.0.222\",\...
566935fb945477f301ad090cfb00b1e47cbf211e
{ "head_commit": "d079e3652a662b855ae94541345ce60bea22d5ff", "head_commit_message": "fix lint and tests", "patch_to_review": "diff --git a/pyproject.toml b/pyproject.toml\nindex d85c43c932..fc393f003c 100644\n--- a/pyproject.toml\n+++ b/pyproject.toml\n@@ -60,7 +60,7 @@ pandas = [\n openpyxl = [\n \"openpyxl>...
[ { "diff_hunk": "@@ -116,8 +118,10 @@ def search(\n \n # Discard the filters for now since we create the filters\n # automatically when the crew is created.\n+ if hasattr(self, \"llm\"):", "line": null, "original_line": 121, "original_start_line": null, "path": "src/crewai/...
69653aaab7c223b4faf0ffbd66182d2edc602a6f
diff --git a/pyproject.toml b/pyproject.toml index 7f5a5b007f..085a6e2425 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ pandas = [ openpyxl = [ "openpyxl>=3.1.5", ] -mem0 = ["mem0ai>=0.1.29"] +mem0 = ["mem0ai>=0.1.94"] docling = [ "docling>=2.12.0", ] diff --git a/src/crewai/memory/st...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
dask__dask-7455@e4ec2f2
dask/dask
Python
7,455
Handle Blockwise HLG pack/unpack for concatenate=True
One possible solution to the `Blockwise` serialization challenge discussed in [this comment](https://github.com/dask/dask/issues/7449#issuecomment-805073471). Note that I would certainly prefer a general solution to nested-task serialization. - [x] Closes #7449 - [x] Tests added / passed - [x] Passes `black dask`...
2021-03-23T19:01:45Z
Blockwise with `concatenate=True` broken with LocalCluster + `optimize_graph=False` **What happened**: When using a LocalCluster (and probably the distributed scheduler in general), setting `optimize_graph=False` causes strange (and incorrect) behaviour in Blockwise with `concatentate=True`. **What you expected t...
cc @rjzamora On Tue, Mar 23, 2021 at 3:29 AM JSKenyon ***@***.***> wrote: > *What happened*: > When using a LocalCluster (and probably the distributed scheduler in > general), setting optimize_graph=False causes strange (and incorrect) > behaviour in Blockwise with concatentate=True. > > *What you expected to happen*...
[ { "body": "**What happened**:\r\nWhen using a LocalCluster (and probably the distributed scheduler in general), setting `optimize_graph=False` causes strange (and incorrect) behaviour in Blockwise with `concatentate=True`. \r\n\r\n**What you expected to happen**:\r\nBlockwise with `concatenate=True` should func...
4bc3979333a3f3efff7ef38486107e60df7b5b56
{ "head_commit": "e4ec2f2be16147c68919287752e1f76bea67b3a2", "head_commit_message": "use simpler SerializedFunction wrapper", "patch_to_review": "diff --git a/dask/blockwise.py b/dask/blockwise.py\nindex e116d26c04b..c1bf3588dab 100644\n--- a/dask/blockwise.py\n+++ b/dask/blockwise.py\n@@ -417,6 +417,8 @@ def __d...
[ { "diff_hunk": "@@ -917,21 +919,12 @@ def make_blockwise_graph(\n if deserializing:\n deps.update(func_future_args)\n args += list(func_future_args)\n- if kwargs:\n- val = {\n- \"function\": dumps_function(apply),\n- ...
dcac77245dee623906abb61e3c315d20b2ccd23f
diff --git a/continuous_integration/environment-mindeps-distributed.yaml b/continuous_integration/environment-mindeps-distributed.yaml index c41e78995e0..8742c65f649 100644 --- a/continuous_integration/environment-mindeps-distributed.yaml +++ b/continuous_integration/environment-mindeps-distributed.yaml @@ -10,7 +10,10...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Bug Fixes" }
dask__dask-4525@8f33dcc
dask/dask
Python
4,525
Fixed mean() and moment() on sparse arrays
For proper creation of sparse auxiliary arrays, a dispatcher for ones_like has been added. However, sparse arrays created from ones_like cause sparse reductions to fail, as it would result in a dense array. To fix that, the arrays have first to be converted to dense before, which ends up requiring a new dispatcher ...
2019-02-25T13:53:40Z
Some functions fail on Dask arrays from sparse Short sample for reproduction and traceback follow. ```python import numpy as np import sparse import dask.array as da from numpy.testing import assert_array_equal x = da.random.random((2, 3, 4), chunks=(1, 2, 2)) x[x < 0.8] = 0 y = x.map_blocks(sparse.COO.fr...
[ { "body": "Short sample for reproduction and traceback follow.\r\n\r\n```python\r\nimport numpy as np\r\nimport sparse\r\nimport dask.array as da\r\nfrom numpy.testing import assert_array_equal\r\n\r\nx = da.random.random((2, 3, 4), chunks=(1, 2, 2))\r\nx[x < 0.8] = 0\r\n\r\ny = x.map_blocks(sparse.COO.from_num...
0780ca545a05935f9105bd0fd70dbb04b55986fd
{ "head_commit": "8f33dccd3d95c5e1e7040f174790f0c1eef1262e", "head_commit_message": "Workaround for mkl.fft failures in test_array_function.py", "patch_to_review": "diff --git a/.travis.yml b/.travis.yml\nindex 7f864c96f36..893598788e3 100644\n--- a/.travis.yml\n+++ b/.travis.yml\n@@ -47,10 +47,12 @@ jobs:\n ...
[ { "diff_hunk": "@@ -320,7 +320,30 @@ def nanmax(a, axis=None, keepdims=False, split_every=None, out=None):\n \n def numel(x, **kwargs):\n \"\"\" A reduction to count the number of elements \"\"\"\n- return chunk.sum(np.ones_like(x), **kwargs)\n+\n+ if hasattr(x, 'mask'):\n+ return chunk.sum(np....
b700ddc65ebef6528b45d477e98dda0519656f1b
diff --git a/.travis.yml b/.travis.yml index 7de0412b195..1dd41c963ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,10 +47,12 @@ jobs: - PYTHON=3.7 - NUMPY=1.16.2 - PANDAS>=0.24.1 + - UPSTREAM_SPARSE=1 - *test_and_lint - *no_coverage - *no_optimize - *imports + ...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "Bug Fixes" }
dask__dask-7413@ec7bddd
dask/dask
Python
7,413
Add config for handling obj normalization with missing __dask_tokenize__
- [x] Closes #6555 - [x] Added `tokenize.allow-random` config, accepting `True` or `False`. - [x] Tests added / passed - [x] Added `test_normalize_object` to `dask/tests/test_base.py`. - [x] Passes `black dask` / `flake8 dask`
2021-03-17T14:05:12Z
Flag for raising an error when `normalize_object` doesn't find `__dask_tokenize__` I ran into a bit of a nasty surprised when I realized some of my Delayed objects resulted in a different token when I called `tokenize()`. This is because in my data I had some objects which didn't have `__dask_tokenize__`. I fixed those...
Thanks for raising an issue @STOpandthink! I can imagine this was tedious to track down. Adding a config option to raise an error or warn when falling back to a random token (which is `False` by default) seems like a nice addition for certain use cases. Is this something you're interested in working on? (no obligation ...
[ { "body": "I ran into a bit of a nasty surprised when I realized some of my Delayed objects resulted in a different token when I called `tokenize()`. This is because in my data I had some objects which didn't have `__dask_tokenize__`. I fixed those errors, but I'm afraid they might come up again silently. It wo...
b888af46dd340f7573faef1dd9c2c8905820405d
{ "head_commit": "ec7bddd3be307364d5771c36768f5bd54eb81461", "head_commit_message": "Add config for handling obj normalization with missing __dask_tokenize__ (#6555)", "patch_to_review": "diff --git a/dask/base.py b/dask/base.py\nindex 1d5ad89b8bd..4ea837f451d 100644\n--- a/dask/base.py\n+++ b/dask/base.py\n@@ -8...
[ { "diff_hunk": "@@ -839,7 +839,42 @@ def normalize_object(o):\n method = getattr(o, \"__dask_tokenize__\", None)\n if method is not None:\n return method()\n- return normalize_function(o) if callable(o) else uuid.uuid4().hex\n+\n+ if callable(o):\n+ return normalize_function(o)\n+\n...
cb9d9d1b46414668792ec27e9ca46735214d5ee1
diff --git a/dask/base.py b/dask/base.py index a9368bfe8ea..8a9c100552a 100644 --- a/dask/base.py +++ b/dask/base.py @@ -839,7 +839,14 @@ def func(seq): try: return list(map(normalize_token, seq)) except RecursionError: - return str(uuid.uuid4()) + if not config.get(...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
encode__httpx-351@8ae0126
encode/httpx
Python
351
Add `.elapsed` onto Response objects tracking how long a request took.
This should fix https://github.com/encode/httpx/issues/338 Example: ```python import asyncio import httpx async def await_url(c): r = await c.get('http://httpbin.org/get') await r.read() print(r.elapsed) async def httpx_test(): client = httpx.AsyncClient() await asyncio.gather(*...
2019-09-17T00:49:06Z
Missing requests' elapsed property on Response object. The requests Response object has an elapsed property which returns a datetime.timedelta instance. This appears to be missing from the httpx Response. A nice to have feature would be to break elapsed into more fine-grained timings similar to Firefox's web inspec...
Yup, I remember I had identified this discrepency in https://github.com/encode/httpx/pull/298 already. I think it's a nice thing to have & one step further towards Requests compatibility. :) > A nice to have feature would be to break elapsed into more fine-grained timings similar to Firefox's web inspector It's a...
[ { "body": "The requests Response object has an elapsed property which returns a datetime.timedelta instance. This appears to be missing from the httpx Response.\r\n\r\nA nice to have feature would be to break elapsed into more fine-grained timings similar to Firefox's web inspector (Blocked, DNS resolution, Con...
8155352d2028b7f74ccd53acdf5a8d74b84e6d15
{ "head_commit": "8ae01264892a3413c32d7321095a8d15d03c1349", "head_commit_message": "Address feedback", "patch_to_review": "diff --git a/docs/api.md b/docs/api.md\nindex 14cc4be9b5..83fe1e81cb 100644\n--- a/docs/api.md\n+++ b/docs/api.md\n@@ -59,6 +59,11 @@\n * `.request` - **Request**\n * `.cookies` - **Cookies*...
[ { "diff_hunk": "@@ -12,7 +12,7 @@ def test_get(server):\n \n \n def test_post(server):\n- response = httpx.post(server.url, data=b\"Hello, world!\")\n+ response = httpx.post(server.url, data=b\" Hello, world!\")", "line": null, "original_line": 15, "original_start_line": null, "path": "t...
50177eae6c67acd50455659b486e58c919c03b54
diff --git a/docs/api.md b/docs/api.md index 14cc4be9b5..83fe1e81cb 100644 --- a/docs/api.md +++ b/docs/api.md @@ -59,6 +59,11 @@ * `.request` - **Request** * `.cookies` - **Cookies** * `.history` - **List[Response]** +* `.elapsed` - **[timedelta](https://docs.python.org/3/library/datetime.html)** + * The amount of...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
certbot__certbot-7837@2b55229
certbot/certbot
Python
7,837
Exposes environment variable to let hooks scripts know when the last challenge is handled
Fixes #5484 This PRs makes Certbot expose two new environment variables in the auth and cleanup hooks of the `manual` plugin: * `CERTBOT_REMAINING_CHALLENGES` contains the number of challenges that remain after the current one (so it equals to 0 when the script is called for the last challenge) * `CERTBOT_ALL_DOM...
2020-03-04T23:52:44Z
Feature request: Add option to know what is the last domain passed to dns hook script Hi, certbot doesn't provide an official hook to work with the API of my DNS provider so I'm using my own script. Well, we know every time we create/modify a record on our DNS provider it needs to propagate to all the authoritative ...
Sounds like a question for @bmw We're currently rethinking a bit about how our plugins work, but if we don't end up making major changes there, I think can and should do something like this. That sounds good, we'll appreciate it. Thank you very much. -----Original Message----- From: Brad Warren <notifications@github...
[ { "body": "Hi,\r\n\r\ncertbot doesn't provide an official hook to work with the API of my DNS provider so I'm using my own script. Well, we know every time we create/modify a record on our DNS provider it needs to propagate to all the authoritative DNS servers, in my case it takes 1 minute and 30 seconds approx...
7f63141e410ae7ce200c7c7408d05c87eae0c5f5
{ "head_commit": "2b5522978597776e3970f367c1a0eaa0b13e1c94", "head_commit_message": "Less variables and less lines", "patch_to_review": "diff --git a/certbot/certbot/_internal/plugins/manual.py b/certbot/certbot/_internal/plugins/manual.py\nindex 3204fe1dab2..1804e7d7e49 100644\n--- a/certbot/certbot/_internal/pl...
[ { "diff_hunk": "@@ -134,9 +133,11 @@ def _verify_ip_logging_ok(self):\n else:\n raise errors.PluginError('Must agree to IP logging to proceed')\n \n- def _perform_achall_with_script(self, achall):\n+ def _perform_achall_with_script(self, achall, achalls):\n env = dict(C...
5fee153f755ca2f968cbf5572ddf7a597b000332
diff --git a/certbot/CHANGELOG.md b/certbot/CHANGELOG.md index 868f3c8be78..903af0610ba 100644 --- a/certbot/CHANGELOG.md +++ b/certbot/CHANGELOG.md @@ -6,7 +6,10 @@ Certbot adheres to [Semantic Versioning](https://semver.org/). ### Added -* +* Expose two new environment variables in the authenticator and cleanup ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "New Feature Additions" }
dbt-labs__dbt-core-7577@86d6d98
dbt-labs/dbt-core
Python
7,577
CT 2510 Throw error for duplicate versioned and non versioned model names
resolves #7487 ### Description The _check_resource_uniqueness method in core/dbt/parser/manifest.py has been modified to check for non-versioned models with the same "name" as versioned models. ### Checklist - [x] I have read [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTI...
2023-05-09T21:09:58Z
[CT-2510] [Bug] Raise an error if non-versioned model is defined with same name as existing versioned model Set up: ```sql -- models/my_model_v1.sql select 1 as id ``` ```yml # models/whatever.yml models: - name: my_model versions: - v: 1 ``` ``` $ dbt parse 12:48:12 Running with dbt=1.5.0 ...
This is not a partial parsing bug per se. I've created a test case which does not fail appropriately even with full parsing. I haven't been able to recreate the compilation error. Whether I create the non-versioned model first or second, it never complains. I tried the same set of steps as outlined and was **not** able...
[ { "body": "Set up:\r\n```sql\r\n-- models/my_model_v1.sql\r\nselect 1 as id\r\n```\r\n```yml\r\n# models/whatever.yml\r\nmodels:\r\n - name: my_model\r\n versions:\r\n - v: 1\r\n```\r\n\r\n```\r\n$ dbt parse\r\n12:48:12 Running with dbt=1.5.0\r\n12:48:14 Performance info: target/perf_info.json\r\n```...
43d949c5cc46da2e7c893f51fe4a35dc1486e3ac
{ "head_commit": "86d6d98c590041084527aab6243207b48020eb9f", "head_commit_message": "Changie", "patch_to_review": "diff --git a/.changes/unreleased/Fixes-20230509-165007.yaml b/.changes/unreleased/Fixes-20230509-165007.yaml\nnew file mode 100644\nindex 00000000000..0c0f06b0525\n--- /dev/null\n+++ b/.changes/unrel...
[ { "diff_hunk": "@@ -1280,6 +1287,17 @@ def _check_resource_uniqueness(\n \n alias_resources[full_node_name] = node\n \n+ intersection_versioned = set(versioned_resources.keys()).intersection(\n+ set(unversioned_resources.keys())\n+ )\n+ if intersection_versioned:", "line": null, ...
4377af79d34b3272136477ef02dc18b3e37a00e0
diff --git a/.changes/unreleased/Fixes-20230509-165007.yaml b/.changes/unreleased/Fixes-20230509-165007.yaml new file mode 100644 index 00000000000..0c0f06b0525 --- /dev/null +++ b/.changes/unreleased/Fixes-20230509-165007.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Throw error for duplicated versioned and unversioned mod...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
getredash__redash-5088@311ec78
getredash/redash
Python
5,088
Add default limit (1000) to SQL queries
## What type of PR is this? (check all applicable) - [x] Feature ## Description Add a default limit 1000 for query execution, now it contains both the frontend changes(add a checkbox) and backend changes. ## Related Tickets & Documents REDASH-112, Closes #976. ## Mobile & Desktop Screenshots/Recordings ...
2020-08-04T16:24:44Z
Limit number of records returned by a query I typically run `SELECT * FROM ...` just to get a peak on the data and in many cases forget to add limit (yeah I know I know....) . It would be nice if REDASH would have tunable default limit e.g. 10,000 rows (same way most of the desktop tools like TOAD or Navicat have). No...
Sounds like a good feature, but need some research on how it will work with the different data source types. Also need to make sure not to apply it to non SELECT queries. Please find below an example: `SELECT * FROM table LIMIT 5;` any development yet for this feature ? We get very high celery CPU load occasionally,...
[ { "body": "I typically run `SELECT * FROM ...` just to get a peak on the data and in many cases forget to add limit (yeah I know I know....) .\n\nIt would be nice if REDASH would have tunable default limit e.g. 10,000 rows (same way most of the desktop tools like TOAD or Navicat have). Not sure if this is easy ...
31ddd0fb7999d427bcc8707e016038b90b63e032
{ "head_commit": "311ec780902dcc018f692ea4170557d9ea406b98", "head_commit_message": "Add frontend changes and connect to backend", "patch_to_review": "diff --git a/client/app/components/queries/QueryEditor/AutoLimitCheckbox.jsx b/client/app/components/queries/QueryEditor/AutoLimitCheckbox.jsx\nnew file mode 10064...
[ { "diff_hunk": "@@ -865,10 +867,14 @@ def dashboard_api_keys(self):\n return [api_key[0] for api_key in api_keys]\n \n \n-@listens_for(Query.query_text, \"set\")\n-def gen_query_hash(target, val, oldval, initiator):\n- target.query_hash = utils.gen_query_hash(val)\n- target.schedule_failures = 0\n...
361308cb10d33d45f11e02925643f84247c896dc
diff --git a/client/app/components/queries/QueryEditor/AutoLimitCheckbox.jsx b/client/app/components/queries/QueryEditor/AutoLimitCheckbox.jsx new file mode 100644 index 0000000000..4ac0330299 --- /dev/null +++ b/client/app/components/queries/QueryEditor/AutoLimitCheckbox.jsx @@ -0,0 +1,37 @@ +import React, { useCallba...
{ "difficulty": "medium", "estimated_review_effort": 4, "problem_domain": "New Feature Additions" }
getredash__redash-4638@333ee8e
getredash/redash
Python
4,638
Fix comparison error when scale is None
## What type of PR is this? (check all applicable) - [x] Bug Fix ## Description Prevents `'>' not supported between instances of 'NoneType' and 'int'` error when scale is `None` ## Related Tickets & Documents Closes #4786.
2020-02-11T21:51:40Z
error running query : ** '>' is not supported between instance of NoneType and 'int' Issue Summary: Database = Oracle 12c `select count(*) from table ` throwing the following error `error running query : ** '>' is not supported between instance of NoneType and 'int'` Redash v9.0.0-alpha(dev)
[ { "body": "Issue Summary:\r\nDatabase = Oracle 12c\r\n\r\n`select count(*) from table `\r\n\r\nthrowing the following error\r\n\r\n`error running query : ** '>' is not supported between instance of NoneType and 'int'`\r\n\r\nRedash v9.0.0-alpha(dev)\r\n\r\n\r\n", "number": 4786, "title": "error running ...
ddb0ef15c1340e7de627e928f80486dfd3d6e1d5
{ "head_commit": "333ee8ed2b9d0f4039f7ddfd7e0bac4ad7010b6d", "head_commit_message": "Update oracle.py", "patch_to_review": "diff --git a/redash/query_runner/oracle.py b/redash/query_runner/oracle.py\nindex 4a675836e4..9aaf3d488b 100644\n--- a/redash/query_runner/oracle.py\n+++ b/redash/query_runner/oracle.py\n@@ ...
[ { "diff_hunk": "@@ -35,7 +35,7 @@ class Oracle(BaseSQLQueryRunner):\n @classmethod\n def get_col_type(cls, col_type, scale):\n if col_type == cx_Oracle.NUMBER:\n- return TYPE_FLOAT if scale > 0 else TYPE_INTEGER\n+ return TYPE_INTEGER if scale is False else TYPE_FLOAT", ...
e6550c236ca85ad004e1860766223ce9a9c6cf6f
diff --git a/redash/query_runner/oracle.py b/redash/query_runner/oracle.py index 4a675836e4..e079c297a7 100644 --- a/redash/query_runner/oracle.py +++ b/redash/query_runner/oracle.py @@ -35,7 +35,11 @@ class Oracle(BaseSQLQueryRunner): @classmethod def get_col_type(cls, col_type, scale): if col_type ...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }
getredash__redash-4186@ac02337
getredash/redash
Python
4,186
Fix query based dropdown not adding quote marks correctly
## What type of PR is this? (check all applicable) <!-- Please leave only what's applicable --> - [x] Bug Fix ## Description This is not perfect yet, I still wanna explore a few more options without having the Dropdown Options in the Parameter structure context (that's the only difference from the regular Dropd...
2019-09-25T23:06:40Z
Query with a drop down list based on query (Allow multiple values with quotation mark) not adding quotation mark correctly ### Issue Summary Query with a drop down list based on query (Allow multiple values with quotation mark) not adding quotation mark correctly. ### Steps to Reproduce 1. Create a query with ...
@gabrieldutra is this expected or a bug? @ranbena it should have the quote mark in any case when you set them. @myonlylonely I tried it in our [netlify preview](https://redash-preview.netlify.com/queries/123/source?p_test=%5B%22MrCirca%22%5D#219) and it seems to be adding the quotes as expected: <img src="https:/...
[ { "body": "### Issue Summary\r\n\r\nQuery with a drop down list based on query (Allow multiple values with quotation mark) not adding quotation mark correctly.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a query with a parameter with query based dropdown list.\r\n2. Select allow multiple values, double quota...
cb144598816e40ddb133e046772da01ce53a41e8
{ "head_commit": "ac023371080942cd27d800842463f0e31b68f9f2", "head_commit_message": "Normalize array in parameter structure", "patch_to_review": "diff --git a/client/app/components/QueryBasedParameterInput.jsx b/client/app/components/QueryBasedParameterInput.jsx\nindex d55f5aa2b6..6b69559c31 100644\n--- a/client/...
[ { "diff_hunk": "@@ -253,6 +253,12 @@ export class Parameter {\n }\n }\n \n+ if (this.type === 'query' && !isEmptyValue(value)) {\n+ if (this.multiValuesOptions && !isArray(value) && value !== null) {", "line": null, "original_line": 257, "original_start_line": null, "path": "cl...
18e2ed87557b5453b743be06541426e3ef9a107a
diff --git a/client/app/components/QueryBasedParameterInput.jsx b/client/app/components/QueryBasedParameterInput.jsx index d55f5aa2b6..6b69559c31 100644 --- a/client/app/components/QueryBasedParameterInput.jsx +++ b/client/app/components/QueryBasedParameterInput.jsx @@ -1,4 +1,4 @@ -import { find, isFunction, isArray, ...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
home-assistant__core-147576@37735ee
home-assistant/core
Python
147,576
Do not factory reset old Z-Wave controller during migration
## Proposed change <!-- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue in the additional information section. --> Also removed the confirmation before th...
2025-06-26T09:04:36Z
Do not factory reset old controller during NVM migration We decided that the risk of resetting a working controller before the replacement is up and running is more relevant than the potential issue of a user leaving the old controller plugged in and messing with communication.
[ { "body": "We decided that the risk of resetting a working controller before the replacement is up and running is more relevant than the potential issue of a user leaving the old controller plugged in and messing with communication.", "number": 102, "title": "Do not factory reset old controller during N...
6f4615f012c3339542a9cc1e4dc24b4a0a99a744
{ "head_commit": "37735eefed03971f1713bf4276388ddbb437e0de", "head_commit_message": "Do not factory reset old Z-Wave controller during migration", "patch_to_review": "diff --git a/homeassistant/components/zwave_js/config_flow.py b/homeassistant/components/zwave_js/config_flow.py\nindex 5e8e702283976f..8fe05f91f01...
[ { "diff_hunk": "@@ -3399,25 +3370,6 @@ async def test_reconfigure_migrate_low_sdk_version(\n \n \n @pytest.mark.usefixtures(\"supervisor\", \"addon_running\")\n-@pytest.mark.parametrize(", "line": 3402, "original_line": 3402, "original_start_line": null, "path": "tests/components/zwave_js/test_c...
ec4cc9885faba1d972aadb6947a7a7baaaab554c
diff --git a/homeassistant/components/zwave_js/config_flow.py b/homeassistant/components/zwave_js/config_flow.py index 2c37ee4b554301..a109719965cbf1 100644 --- a/homeassistant/components/zwave_js/config_flow.py +++ b/homeassistant/components/zwave_js/config_flow.py @@ -845,11 +845,8 @@ async def async_step_intent_migr...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
home-assistant__core-146453@71eab0c
home-assistant/core
Python
146,453
Split deprecated system issue in 2 places
<!-- You are amazing! Thanks for contributing to our project! Please, DO NOT DELETE ANY TEXT from this template! (unless instructed). --> ## Proposed change <!-- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or...
2025-06-10T13:01:25Z
No repair for supervisor deprecation ### The problem A repair is not generated for a supervised system. ## System Information version | core-2025.6.0b0 -- | -- installation_type | Home Assistant Supervised dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.13.3 os_name | Linux ...
supervisor logs ``` 2025-05-27 07:09:51.284 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token 2025-05-27 07:09:51.302 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2025.6.0b0 2025-05-27 07:09:51.302 INFO (MainThread) [supervi...
[ { "body": "### The problem\n\nA repair is not generated for a supervised system.\n\n## System Information\n\nversion | core-2025.6.0b0\n-- | --\ninstallation_type | Home Assistant Supervised\ndev | false\nhassio | true\ndocker | true\nuser | root\nvirtualenv | false\npython_version | 3.13.3\nos_name | Linux\nos...
d015dff855995760a2695584bac6637dab17b410
{ "head_commit": "71eab0c5901862f659ae3f92be43b6458fec6500", "head_commit_message": "Split deprecated system issue in 2 places", "patch_to_review": "diff --git a/homeassistant/components/hassio/__init__.py b/homeassistant/components/hassio/__init__.py\nindex eeeedff00bbd29..ae07aa48a52e3b 100644\n--- a/homeassist...
[ { "diff_hunk": "@@ -546,6 +554,63 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:\n await coordinator.async_config_entry_first_refresh()\n hass.data[ADDONS_COORDINATOR] = coordinator\n \n+ system_info = await async_get_system_info(hass)\n+\n+ def deprecated_setup_i...
ca08d75cec1a09f0c640e6f2f2802f3f7722e75e
diff --git a/homeassistant/components/hassio/__init__.py b/homeassistant/components/hassio/__init__.py index eeeedff00bbd2..041877e394423 100644 --- a/homeassistant/components/hassio/__init__.py +++ b/homeassistant/components/hassio/__init__.py @@ -37,6 +37,7 @@ config_validation as cv, device_registry as dr,...
{ "difficulty": "medium", "estimated_review_effort": 3, "problem_domain": "Bug Fixes" }
getredash__redash-3008@b887f50
getredash/redash
Python
3,008
Google analytics fix fixes #2965
resolves #2965
2018-10-27T22:43:06Z
GA Data Source throws an error when no rows returned ### Issue Summary Google Analytics Data Source throws `Error running query: 'rows'` when the query result is empty. I have a pretty simple query with dimensions and filters, like: ```json { "ids": "ga:177xxxxxx", "start_date": "2018-10-08", "end_date...
[ { "body": "### Issue Summary\r\n\r\nGoogle Analytics Data Source throws `Error running query: 'rows'` when the query result is empty.\r\nI have a pretty simple query with dimensions and filters, like:\r\n\r\n```json\r\n{\r\n \"ids\": \"ga:177xxxxxx\",\r\n \"start_date\": \"2018-10-08\",\r\n \"end_date\": \"2...
ab6ed7da34dd2797914382c435981450b7bf9d7a
{ "head_commit": "b887f502c56ed83c3c8ff68bc9d65311be3c00f8", "head_commit_message": "resolves #2965", "patch_to_review": "diff --git a/redash/query_runner/google_analytics.py b/redash/query_runner/google_analytics.py\nindex e8b70eb01f..19def81243 100644\n--- a/redash/query_runner/google_analytics.py\n+++ b/redash...
[ { "diff_hunk": "@@ -43,36 +43,37 @@ def parse_ga_response(response):\n })\n \n rows = []\n- for r in response['rows']:\n- d = {}\n- for c, value in enumerate(r):\n- column_name = response['columnHeaders'][c]['name']\n- column_type = filter(lambda col: col['name...
e153823e9bb6371221704fd7fe9e98180b317822
diff --git a/redash/query_runner/google_analytics.py b/redash/query_runner/google_analytics.py index e8b70eb01f..71be522015 100644 --- a/redash/query_runner/google_analytics.py +++ b/redash/query_runner/google_analytics.py @@ -43,7 +43,7 @@ def parse_ga_response(response): }) rows = [] - for r in res...
{ "difficulty": "low", "estimated_review_effort": 2, "problem_domain": "Bug Fixes" }