gooddata-dbt 1.65.0__tar.gz → 1.65.1.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/PKG-INFO +2 -2
  2. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/pyproject.toml +2 -2
  3. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/metrics.py +7 -3
  4. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt_plugin.py +1 -1
  5. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/utils.py +1 -1
  6. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/.env.custom.dev +0 -0
  7. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/.env.dev +0 -0
  8. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/.gitignore +0 -0
  9. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/LICENSE.txt +0 -0
  10. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/Makefile +0 -0
  11. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/README.md +0 -0
  12. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/bin/gooddata-dbt +0 -0
  13. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/gooddata_example.yml +0 -0
  14. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/__init__.py +0 -0
  15. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/_version.py +0 -0
  16. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/args.py +0 -0
  17. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/__init__.py +0 -0
  18. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/base.py +0 -0
  19. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/cloud.py +0 -0
  20. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/environment.py +0 -0
  21. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/profiles.py +0 -0
  22. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/dbt/tables.py +0 -0
  23. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/gooddata/__init__.py +0 -0
  24. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/gooddata/api_wrapper.py +0 -0
  25. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/gooddata/config.py +0 -0
  26. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/logger.py +0 -0
  27. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/main.py +0 -0
  28. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/src/gooddata_dbt/sdk_wrapper.py +0 -0
  29. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/conftest.py +0 -0
  30. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/gooddata_example.yml +0 -0
  31. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/dbt_profiles/profiles.yml +0 -0
  32. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/dbt_target/manifest.json +0 -0
  33. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/aircraft.yaml +0 -0
  34. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/aircraft_models.yaml +0 -0
  35. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/airports.yaml +0 -0
  36. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/ambient_temperature.yaml +0 -0
  37. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/carriers.yaml +0 -0
  38. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/census.yaml +0 -0
  39. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/census_by_country.yaml +0 -0
  40. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/commits.yaml +0 -0
  41. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/customer.yaml +0 -0
  42. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/eshop_customers.yaml +0 -0
  43. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/flights.yaml +0 -0
  44. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/home_rentals.yaml +0 -0
  45. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/house_property_sales_time_series.yaml +0 -0
  46. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/mall_customers.yaml +0 -0
  47. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/monthlyinventory.yaml +0 -0
  48. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/order_lines.yaml +0 -0
  49. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/orders.yaml +0 -0
  50. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/product.yaml +0 -0
  51. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/pull_requests.yaml +0 -0
  52. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/repos.yaml +0 -0
  53. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/returns.yaml +0 -0
  54. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/telco_customer_churn.yaml +0 -0
  55. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/users.yaml +0 -0
  56. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/resources/gooddata_layouts/pdm/workflow_runs.yaml +0 -0
  57. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/test_profiles.py +0 -0
  58. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tests/test_tables.py +0 -0
  59. {gooddata_dbt-1.65.0 → gooddata_dbt-1.65.1.dev2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gooddata-dbt
3
- Version: 1.65.0
3
+ Version: 1.65.1.dev2
4
4
  Summary: dbt plugin for GoodData
5
5
  Author-email: GoodData <support@gooddata.com>
6
6
  License-Expression: MIT
@@ -19,7 +19,7 @@ Classifier: Typing :: Typed
19
19
  Requires-Python: >=3.10
20
20
  Requires-Dist: attrs<=24.2.0,>=21.4.0
21
21
  Requires-Dist: cattrs<=24.1.1,>=22.1.0
22
- Requires-Dist: gooddata-sdk~=1.65.0
22
+ Requires-Dist: gooddata-sdk~=1.65.1.dev2
23
23
  Requires-Dist: pyyaml>=6.0
24
24
  Requires-Dist: requests~=2.32.0
25
25
  Requires-Dist: tabulate~=0.8.10
@@ -1,7 +1,7 @@
1
1
  # (C) 2025 GoodData Corporation
2
2
  [project]
3
3
  name = "gooddata-dbt"
4
- version = "1.65.0"
4
+ version = "1.65.1.dev2"
5
5
  description = "dbt plugin for GoodData"
6
6
  readme = "README.md"
7
7
  license = "MIT"
@@ -10,7 +10,7 @@ authors = [
10
10
  ]
11
11
  requires-python = ">=3.10"
12
12
  dependencies = [
13
- "gooddata-sdk~=1.65.0",
13
+ "gooddata-sdk~=1.65.1.dev2",
14
14
  "pyyaml>=6.0",
15
15
  "attrs>=21.4.0,<=24.2.0",
16
16
  "cattrs>=22.1.0,<=24.1.1",
@@ -86,14 +86,18 @@ class DbtModelMetrics:
86
86
  if table_id is not None and table_id.id.lower() == table_name.lower():
87
87
  attributes = dataset.attributes if dataset.attributes else []
88
88
  facts = dataset.facts if dataset.facts else []
89
+ # `source_column` is optional on the SDK side — AUXILIARY
90
+ # datasets carry synthetic attributes/labels/facts with no
91
+ # physical column. Skip those entries here, since they have
92
+ # no source column to match against.
89
93
  for attribute in attributes:
90
- if attribute.source_column.lower() == expression_entity_cmp:
94
+ if attribute.source_column and attribute.source_column.lower() == expression_entity_cmp:
91
95
  result = "label"
92
96
  for label in attribute.labels:
93
- if label.source_column.lower() == expression_entity_cmp:
97
+ if label.source_column and label.source_column.lower() == expression_entity_cmp:
94
98
  result = "label"
95
99
  for fact in facts:
96
- if fact.source_column.lower() == expression_entity_cmp:
100
+ if fact.source_column and fact.source_column.lower() == expression_entity_cmp:
97
101
  result = "fact"
98
102
  for date_dataset in self.ldm.ldm.date_instances:
99
103
  if date_dataset.id.lower() == expression_entity_cmp:
@@ -216,7 +216,7 @@ def create_localized_workspaces(
216
216
  if data_product.localization is None:
217
217
  return
218
218
  try:
219
- from deep_translator import GoogleTranslator
219
+ from deep_translator import GoogleTranslator # noqa: PLC0415
220
220
  except ImportError:
221
221
  logger.warning(
222
222
  "create_localized_workspaces: deep_translator module not found, will not be able to localize workspaces"
@@ -28,7 +28,7 @@ def report_message_to_merge_request(token: str, merge_request_id: str, text: str
28
28
 
29
29
  def report_message_to_pull_request(logger: Logger, token: str, pull_request_id: int, text: str) -> None:
30
30
  try:
31
- from github import Auth, Github
31
+ from github import Auth, Github # noqa: PLC0415
32
32
 
33
33
  auth = Auth.Token(token)
34
34
  g = Github(auth=auth)