Skip to content

Commit

Permalink
Merge pull request #406 from datacoves/DCV-1933-dbt-coves-make-env-va…
Browse files Browse the repository at this point in the history
…r-dbt-consistent-allow-not-flattening-of-json-fields

feat:DCV-1933 changes to env_var and json flattening
  • Loading branch information
ssassi authored Nov 7, 2023
2 parents 1b18c52 + fa74011 commit 6b6e5ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ dbt-coves generate sources -h

```console
--flatten-json-fields
# Flag: flatten model JSON fields
# Action to perform when JSON fields exist: 'yes', 'no', 'ask' (per file)
```

```console
Expand Down Expand Up @@ -608,6 +608,7 @@ generate:
update_strategy: ask # Action to perform when a property file already exists. Options: update, recreate, fail, ask (per file)
templates_folder: ".dbt_coves/templates" # Folder where source generation jinja templates are located. Override default templates creating source_props.yml, source_model_props.yml, and source_model.sql under this folder
metadata: "metadata.csv" # Path to csv file containing metadata
flatten_json_fields: ask
properties:
destination: "{{model_folder_path}}/{{model_file_name}}.yml" # Where models yml files will be generated
Expand Down
3 changes: 1 addition & 2 deletions dbt_coves/tasks/generate/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def register_parser(cls, sub_parsers, base_subparser):
"--flatten-json-fields",
type=str,
choices=["yes", "no", "ask"],
help="Action to perform when Flatten JSON fields exist:"
"'yes', 'no', 'ask' (per file)",
help="Action to perform when JSON fields exist:" "'yes', 'no', 'ask' (per file)",
)
subparser.add_argument(
"--overwrite-staging-models",
Expand Down

0 comments on commit 6b6e5ff

Please sign in to comment.