dbt-common 1.9.0__py3-none-any.whl → 1.10.0__py3-none-any.whl

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.
dbt_common/__about__.py CHANGED
@@ -1 +1 @@
1
- version = "1.9.0"
1
+ version = "1.10.0"
@@ -46,6 +46,8 @@ class BehaviorFlagRendered:
46
46
  user_overrides: a set of user settings, one of which may be an override on this behavior flag
47
47
  """
48
48
 
49
+ fired: bool = False
50
+
49
51
  def __init__(self, flag: BehaviorFlag, user_overrides: Dict[str, Any]) -> None:
50
52
  self._validate(flag)
51
53
 
@@ -72,8 +74,9 @@ class BehaviorFlagRendered:
72
74
 
73
75
  @property
74
76
  def setting(self) -> bool:
75
- if self._setting is False:
77
+ if self._setting is False and not self.fired:
76
78
  fire_event(self._behavior_change_event)
79
+ self.fired = True
77
80
  return self._setting
78
81
 
79
82
  @setting.setter
@@ -10,13 +10,13 @@ def env_secrets() -> List[str]:
10
10
  return [v for k, v in os.environ.items() if k.startswith(SECRET_ENV_PREFIX) and v.strip()]
11
11
 
12
12
 
13
- def scrub_secrets(msg: str, secrets: List[str]) -> str:
13
+ def scrub_secrets(msg: Any, secrets: List[str]) -> Any:
14
14
  scrubbed = str(msg)
15
15
 
16
16
  for secret in secrets:
17
17
  scrubbed = scrubbed.replace(secret, "*****")
18
18
 
19
- return scrubbed
19
+ return msg if str(msg) == scrubbed else scrubbed
20
20
 
21
21
 
22
22
  class DbtBaseException(Exception):
@@ -240,7 +240,7 @@ class DbtDatabaseError(DbtRuntimeError):
240
240
  lines = []
241
241
 
242
242
  if hasattr(self.node, "build_path") and self.node.build_path:
243
- lines.append(f"compiled Code at {self.node.build_path}")
243
+ lines.append(f"compiled code at {self.node.build_path}")
244
244
 
245
245
  return lines + DbtRuntimeError.process_stack(self)
246
246
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dbt-common
3
- Version: 1.9.0
3
+ Version: 1.10.0
4
4
  Summary: The shared common utilities that dbt-core and adapter implementations use
5
5
  Project-URL: Homepage, https://github.com/dbt-labs/dbt-common
6
6
  Project-URL: Repository, https://github.com/dbt-labs/dbt-common.git
@@ -1,6 +1,6 @@
1
- dbt_common/__about__.py,sha256=cXjavBUobbggOyp9SOIeDA3iCRdu2Hzw1qBttGe-RYs,18
1
+ dbt_common/__about__.py,sha256=TYlk0Tf1qPZKLC0jdqErUbXT7WMC6rSmxnveyAPBB4Y,19
2
2
  dbt_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- dbt_common/behavior_flags.py,sha256=GkrXvJ-Q7P73O0XcsIxyYeyiUAOe5E5DdNKIh6x3unE,4809
3
+ dbt_common/behavior_flags.py,sha256=tflh5PubIgEuogslprvnOEA2tM7e7opK6i8GOTnwrgw,4883
4
4
  dbt_common/constants.py,sha256=-Y5DIL1SDPQWtlCNizXRYxFgbx1D7LaLs1ysamvGMRk,278
5
5
  dbt_common/context.py,sha256=rk4EYBU4SpDXRhqbSvDTJwojilxPSoaiEdOxkXow_BU,2549
6
6
  dbt_common/dataclass_schema.py,sha256=u2S0dxwxIghv8RMqC91HlWZJVxmsC_844yZQaGyOwdY,5563
@@ -41,7 +41,7 @@ dbt_common/events/types.proto,sha256=Ujl0O-X-pat8vlo2C0TMH1LZqa8EP_9f8k2TjbFuCV8
41
41
  dbt_common/events/types.py,sha256=MXCmG7qaj7hLbDZjjazjWftPTfoLjhNPATPMirO0DvU,4475
42
42
  dbt_common/events/types_pb2.py,sha256=oFjR6pFqz3_Nk8wWIrVB9y6inNTxnj-CSGr2g8dnFz4,7167
43
43
  dbt_common/exceptions/__init__.py,sha256=X_Uw7BxOzXev_9JMYfs5Cm-_i_Qf2PJim8_-dDJI7Y8,361
44
- dbt_common/exceptions/base.py,sha256=d6lsA8sLqR6_BERowm91Mrs1ZwrEOeT8WQKWg4nPSPA,7750
44
+ dbt_common/exceptions/base.py,sha256=23ijq-AtQgUSvZ9JbrCIZ87Pbyn8iEYezX95IXAZ4FY,7783
45
45
  dbt_common/exceptions/cache.py,sha256=0z4fBcdNZMAR41YbPRo2GN0__xAMaYs8Uc-t3hjmVio,2532
46
46
  dbt_common/exceptions/connection.py,sha256=rXLJXUdLhyXP3CUUyiqWN2DDO5-0Pn1ChX3OIR7pxKk,176
47
47
  dbt_common/exceptions/contracts.py,sha256=i2PKRqda1Pq_Sro9FA22W7FTGklhBAGl6__nimR5_qI,527
@@ -57,7 +57,7 @@ dbt_common/utils/encoding.py,sha256=6_kSY2FvGNYMg7oX7PrbvVioieydih3Kl7Ii802LaHI,
57
57
  dbt_common/utils/executor.py,sha256=pNY0UbPlwQmTE69Vt_Rj91YGCIOEaqeYU3CjAds0T70,2454
58
58
  dbt_common/utils/formatting.py,sha256=JUn5rzJ-uajs9wPCN0-f2iRFY1pOJF5YjTD9dERuLoc,165
59
59
  dbt_common/utils/jinja.py,sha256=JXgNmJArGGy0h7qkbNLA3zaEQmoF1CxsNBYTlIwFXDw,1101
60
- dbt_common-1.9.0.dist-info/METADATA,sha256=gJ4sX5mtKWkJP66WbImh-5UrFsb5Mo3KQkoGkzbbsAQ,5298
61
- dbt_common-1.9.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
62
- dbt_common-1.9.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
- dbt_common-1.9.0.dist-info/RECORD,,
60
+ dbt_common-1.10.0.dist-info/METADATA,sha256=6Syhedl_DalAK-ulziTBfmy-VA-uQ4jVKo3s5hLkZPc,5299
61
+ dbt_common-1.10.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
62
+ dbt_common-1.10.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
+ dbt_common-1.10.0.dist-info/RECORD,,