dbt-common 1.24.0__py3-none-any.whl → 2.0.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.24.0"
1
+ version = "2.0.0"
@@ -8,14 +8,7 @@ The event module provides types that represent what is happening in dbt in `even
8
8
  When events are processed via `fire_event`, nearly everything is logged. Whether or not the user has enabled the debug flag, all debug messages are still logged to the file. However, some events are particularly time consuming to construct because they return a huge amount of data. Today, the only messages in this category are cache events and are only logged if the `--log-cache-events` flag is on. This is important because these messages should not be created unless they are going to be logged, because they cause a noticable performance degredation. These events use a "fire_event_if" functions.
9
9
 
10
10
  # Adding a New Event
11
- * Add a new message in types.proto, and a second message with the same name + "Msg". The "Msg" message should have two fields, an "info" field of EventInfo, and a "data" field referring to the message name without "Msg"
12
- * run the protoc compiler to update types_pb2.py: make proto_types
13
- * Add a wrapping class in dbt_common/event/types.py with a Level superclass plus code and message methods
14
- * Add the class to tests/unit/test_events.py
15
-
16
- We have switched from using betterproto to using google protobuf, because of a lack of support for Struct fields in betterproto.
17
-
18
- The google protobuf interface is janky and very much non-Pythonic. The "generated" classes in types_pb2.py do not resemble regular Python classes. They do not have normal constructors; they can only be constructed empty. They can be "filled" by setting fields individually or using a json_format method like ParseDict. We have wrapped the logging events with a class (in types.py) which allows using a constructor -- keywords only, no positional parameters.
11
+ All protos have been moved into the central protos repository. To edit an event proto, edit https://github.com/dbt-labs/proto-python-public or open an issue on that repository.
19
12
 
20
13
  ## Required for Every Event
21
14
 
@@ -1,17 +1,15 @@
1
- from enum import Enum
2
1
  import os
3
2
  import threading
3
+ from enum import Enum
4
+ from typing import Callable, Optional, Protocol
5
+
4
6
  from dbt_common.events import types_pb2
5
- from google.protobuf.json_format import ParseDict, MessageToDict, MessageToJson
7
+ from google.protobuf.json_format import MessageToDict, MessageToJson, ParseDict
6
8
  from google.protobuf.message import Message
7
- from dbt_common.events.helpers import get_json_string_utcnow
8
- from typing import Callable, Optional
9
9
 
10
+ from dbt_common.events.helpers import get_json_string_utcnow
10
11
  from dbt_common.invocation import get_invocation_id
11
12
 
12
- from typing import Protocol
13
-
14
-
15
13
  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
16
14
  # These base types define the _required structure_ for the concrete event #
17
15
  # types defined in types.py #
@@ -66,8 +64,8 @@ class BaseEvent:
66
64
  self.pb_msg = ParseDict(kwargs, msg_cls())
67
65
  except Exception as exc:
68
66
  # Imports need to be here to avoid circular imports
69
- from dbt_common.events.types import Note
70
67
  from dbt_common.events.functions import fire_event
68
+ from dbt_common.events.types import Note
71
69
 
72
70
  error_msg = f"[{class_name}]: Unable to parse logging event dictionary. {exc}. Dictionary: {kwargs}"
73
71
  # If we're testing throw an error so that we notice failures
@@ -30,12 +30,15 @@ class EventManager:
30
30
 
31
31
  @property
32
32
  def warn_error_options(self) -> Union[WarnErrorOptions, WarnErrorOptionsV2]:
33
+ # Technically this always returns a WarnErrorOptionsV2, but to remain backwards compatible
34
+ # with the protocol, we need to type the function as being able to return either.
35
+
33
36
  if self._warn_error_options is None:
34
37
  from dbt_common.events.functions import WARN_ERROR_OPTIONS
35
38
 
36
39
  return WARN_ERROR_OPTIONS._warn_error_options_v2
37
40
 
38
- return self._warn_error_options
41
+ return self._warn_error_options._warn_error_options_v2
39
42
 
40
43
  @warn_error_options.setter
41
44
  def warn_error_options(
@@ -1,7 +1,7 @@
1
1
  from pathlib import Path
2
2
 
3
3
  from dbt_common.events.event_manager_client import get_event_manager
4
- from dbt_common.helper_types import WarnErrorOptions
4
+ from dbt_common.helper_types import WarnErrorOptions, WarnErrorOptionsV2
5
5
  from dbt_common.invocation import get_invocation_id
6
6
  from dbt_common.utils.encoding import ForgivingJSONEncoder
7
7
  from dbt_common.events.base_types import BaseEvent, EventLevel, EventMsg
@@ -18,7 +18,9 @@ from google.protobuf.json_format import MessageToDict
18
18
  LOG_VERSION = 3
19
19
  metadata_vars: Optional[Dict[str, str]] = None
20
20
  _METADATA_ENV_PREFIX = "DBT_ENV_CUSTOM_ENV_"
21
- WARN_ERROR_OPTIONS = WarnErrorOptions(include=[], exclude=[])
21
+ WARN_ERROR_OPTIONS: Union[WarnErrorOptions, WarnErrorOptionsV2] = WarnErrorOptions(
22
+ include=[], exclude=[]
23
+ )
22
24
  WARN_ERROR = False
23
25
 
24
26
  # This global, and the following two functions for capturing stdout logs are
@@ -1,91 +1,2 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: types.proto
5
- # Protobuf Python Version: 5.28.3
6
- """Generated protocol buffer code."""
7
- from google.protobuf import descriptor as _descriptor
8
- from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
- from google.protobuf import symbol_database as _symbol_database
11
- from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 28,
16
- 3,
17
- '',
18
- 'types.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
- from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
-
27
-
28
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btypes.proto\x12\x0bproto_types\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x02\n\tEventInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\x0b\n\x03msg\x18\x03 \x01(\t\x12\r\n\x05level\x18\x04 \x01(\t\x12\x15\n\rinvocation_id\x18\x05 \x01(\t\x12\x0b\n\x03pid\x18\x06 \x01(\x05\x12\x0e\n\x06thread\x18\x07 \x01(\t\x12&\n\x02ts\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x05\x65xtra\x18\t \x03(\x0b\x32!.proto_types.EventInfo.ExtraEntry\x12\x10\n\x08\x63\x61tegory\x18\n \x01(\t\x1a,\n\nExtraEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"6\n\x0eGenericMessage\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\"d\n\x13\x42\x65haviorChangeEvent\x12\x11\n\tflag_name\x18\x01 \x01(\t\x12\x13\n\x0b\x66lag_source\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x64ocs_url\x18\x04 \x01(\t\"n\n\x16\x42\x65haviorChangeEventMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.BehaviorChangeEvent\"1\n\x11RetryExternalCall\x12\x0f\n\x07\x61ttempt\x18\x01 \x01(\x05\x12\x0b\n\x03max\x18\x02 \x01(\x05\"j\n\x14RetryExternalCallMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.RetryExternalCall\"#\n\x14RecordRetryException\x12\x0b\n\x03\x65xc\x18\x01 \x01(\t\"p\n\x17RecordRetryExceptionMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12/\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32!.proto_types.RecordRetryException\"@\n\x13SystemCouldNotWrite\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0b\n\x03\x65xc\x18\x03 \x01(\t\"n\n\x16SystemCouldNotWriteMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.SystemCouldNotWrite\"!\n\x12SystemExecutingCmd\x12\x0b\n\x03\x63md\x18\x01 \x03(\t\"l\n\x15SystemExecutingCmdMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.SystemExecutingCmd\"\x1c\n\x0cSystemStdOut\x12\x0c\n\x04\x62msg\x18\x01 \x01(\t\"`\n\x0fSystemStdOutMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.proto_types.SystemStdOut\"\x1c\n\x0cSystemStdErr\x12\x0c\n\x04\x62msg\x18\x01 \x01(\t\"`\n\x0fSystemStdErrMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.proto_types.SystemStdErr\",\n\x16SystemReportReturnCode\x12\x12\n\nreturncode\x18\x01 \x01(\x05\"t\n\x19SystemReportReturnCodeMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\x31\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.proto_types.SystemReportReturnCode\"\x19\n\nFormatting\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\\\n\rFormattingMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.proto_types.Formatting\"\x13\n\x04Note\x12\x0b\n\x03msg\x18\x01 \x01(\t\"P\n\x07NoteMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\x1f\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x11.proto_types.Note\"\x19\n\nPrintEvent\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\\\n\rPrintEventMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.proto_types.PrintEvent\" \n\x11RecordReplayIssue\x12\x0b\n\x03msg\x18\x01 \x01(\t\"j\n\x14RecordReplayIssueMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.RecordReplayIssueb\x06proto3')
29
-
30
- _globals = globals()
31
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'types_pb2', _globals)
33
- if not _descriptor._USE_C_DESCRIPTORS:
34
- DESCRIPTOR._loaded_options = None
35
- _globals['_EVENTINFO_EXTRAENTRY']._loaded_options = None
36
- _globals['_EVENTINFO_EXTRAENTRY']._serialized_options = b'8\001'
37
- _globals['_EVENTINFO']._serialized_start=62
38
- _globals['_EVENTINFO']._serialized_end=335
39
- _globals['_EVENTINFO_EXTRAENTRY']._serialized_start=291
40
- _globals['_EVENTINFO_EXTRAENTRY']._serialized_end=335
41
- _globals['_GENERICMESSAGE']._serialized_start=337
42
- _globals['_GENERICMESSAGE']._serialized_end=391
43
- _globals['_BEHAVIORCHANGEEVENT']._serialized_start=393
44
- _globals['_BEHAVIORCHANGEEVENT']._serialized_end=493
45
- _globals['_BEHAVIORCHANGEEVENTMSG']._serialized_start=495
46
- _globals['_BEHAVIORCHANGEEVENTMSG']._serialized_end=605
47
- _globals['_RETRYEXTERNALCALL']._serialized_start=607
48
- _globals['_RETRYEXTERNALCALL']._serialized_end=656
49
- _globals['_RETRYEXTERNALCALLMSG']._serialized_start=658
50
- _globals['_RETRYEXTERNALCALLMSG']._serialized_end=764
51
- _globals['_RECORDRETRYEXCEPTION']._serialized_start=766
52
- _globals['_RECORDRETRYEXCEPTION']._serialized_end=801
53
- _globals['_RECORDRETRYEXCEPTIONMSG']._serialized_start=803
54
- _globals['_RECORDRETRYEXCEPTIONMSG']._serialized_end=915
55
- _globals['_SYSTEMCOULDNOTWRITE']._serialized_start=917
56
- _globals['_SYSTEMCOULDNOTWRITE']._serialized_end=981
57
- _globals['_SYSTEMCOULDNOTWRITEMSG']._serialized_start=983
58
- _globals['_SYSTEMCOULDNOTWRITEMSG']._serialized_end=1093
59
- _globals['_SYSTEMEXECUTINGCMD']._serialized_start=1095
60
- _globals['_SYSTEMEXECUTINGCMD']._serialized_end=1128
61
- _globals['_SYSTEMEXECUTINGCMDMSG']._serialized_start=1130
62
- _globals['_SYSTEMEXECUTINGCMDMSG']._serialized_end=1238
63
- _globals['_SYSTEMSTDOUT']._serialized_start=1240
64
- _globals['_SYSTEMSTDOUT']._serialized_end=1268
65
- _globals['_SYSTEMSTDOUTMSG']._serialized_start=1270
66
- _globals['_SYSTEMSTDOUTMSG']._serialized_end=1366
67
- _globals['_SYSTEMSTDERR']._serialized_start=1368
68
- _globals['_SYSTEMSTDERR']._serialized_end=1396
69
- _globals['_SYSTEMSTDERRMSG']._serialized_start=1398
70
- _globals['_SYSTEMSTDERRMSG']._serialized_end=1494
71
- _globals['_SYSTEMREPORTRETURNCODE']._serialized_start=1496
72
- _globals['_SYSTEMREPORTRETURNCODE']._serialized_end=1540
73
- _globals['_SYSTEMREPORTRETURNCODEMSG']._serialized_start=1542
74
- _globals['_SYSTEMREPORTRETURNCODEMSG']._serialized_end=1658
75
- _globals['_FORMATTING']._serialized_start=1660
76
- _globals['_FORMATTING']._serialized_end=1685
77
- _globals['_FORMATTINGMSG']._serialized_start=1687
78
- _globals['_FORMATTINGMSG']._serialized_end=1779
79
- _globals['_NOTE']._serialized_start=1781
80
- _globals['_NOTE']._serialized_end=1800
81
- _globals['_NOTEMSG']._serialized_start=1802
82
- _globals['_NOTEMSG']._serialized_end=1882
83
- _globals['_PRINTEVENT']._serialized_start=1884
84
- _globals['_PRINTEVENT']._serialized_end=1909
85
- _globals['_PRINTEVENTMSG']._serialized_start=1911
86
- _globals['_PRINTEVENTMSG']._serialized_end=2003
87
- _globals['_RECORDREPLAYISSUE']._serialized_start=2005
88
- _globals['_RECORDREPLAYISSUE']._serialized_end=2037
89
- _globals['_RECORDREPLAYISSUEMSG']._serialized_start=2039
90
- _globals['_RECORDREPLAYISSUEMSG']._serialized_end=2145
91
- # @@protoc_insertion_point(module_scope)
1
+ # preserving import path during dbtlabs.proto refactor
2
+ from dbtlabs.proto.public.v1.fields.common_types_pb2 import * # noqa
@@ -177,6 +177,13 @@ class WarnErrorOptionsV2(dbtClassMixin):
177
177
  if item not in self._valid_error_names:
178
178
  raise ValidationError(f"{item} is not a valid dbt error name.")
179
179
 
180
+ @property
181
+ def _warn_error_options_v2(self) -> WarnErrorOptionsV2:
182
+ # This is necessary because in core we directly set the WARN_ERROR_OPTIONS global variable
183
+ # without this we'd need to do isinstance checks in `EventManager.warn_error_options`, which
184
+ # would be costly as it gets called every time an event is fired.
185
+ return self
186
+
180
187
  def _error_all(self) -> bool:
181
188
  """Is `*` or `all` set as error?"""
182
189
  return self.error in self.ERROR_ALL
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbt-common
3
- Version: 1.24.0
3
+ Version: 2.0.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
@@ -26,6 +26,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
26
26
  Requires-Python: >=3.9
27
27
  Requires-Dist: agate<1.10,>=1.7.0
28
28
  Requires-Dist: colorama<0.5,>=0.3.9
29
+ Requires-Dist: dbt-protos<2.0.0,>=1.0.291
29
30
  Requires-Dist: deepdiff<8.0,>=7.0
30
31
  Requires-Dist: isodate<0.7,>=0.6
31
32
  Requires-Dist: jinja2<4,>=3.1.3
@@ -1,10 +1,10 @@
1
- dbt_common/__about__.py,sha256=E8iFJObH8LUoUScRPYZad7ih455nH0reOnZSmEuNdh4,19
1
+ dbt_common/__about__.py,sha256=5ZOF-5IV4pxLAC7yWK2kh4cvLYgnT2AwvRq2FGzBL94,18
2
2
  dbt_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  dbt_common/behavior_flags.py,sha256=hQzxCqQSweJbRp_xoQqNnlUF77PBuOdCdLOSdcBlkxk,4885
4
4
  dbt_common/constants.py,sha256=-Y5DIL1SDPQWtlCNizXRYxFgbx1D7LaLs1ysamvGMRk,278
5
5
  dbt_common/context.py,sha256=-ErtKG4xfOh1-Y569fwu6u2O381nRan18HhATrYDoZE,2950
6
6
  dbt_common/dataclass_schema.py,sha256=u2S0dxwxIghv8RMqC91HlWZJVxmsC_844yZQaGyOwdY,5563
7
- dbt_common/helper_types.py,sha256=LuUILGUG_q35iULjtW-bb_UchLV2y7iQdSqpUKiLtAA,11200
7
+ dbt_common/helper_types.py,sha256=wxbbjfsvHVraWexK88PEY3q_dAYqlPl6yOIXnpxCcyY,11569
8
8
  dbt_common/invocation.py,sha256=xw0NBIE-6LHd135cx4non-MkGGsia0mYN0lMkmNEucE,435
9
9
  dbt_common/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  dbt_common/record.py,sha256=QLrKppBHYuV7ZTckOMi4Gnz7jLQJcOa5kp4PwK0JmwY,21889
@@ -25,21 +25,20 @@ dbt_common/contracts/config/base.py,sha256=vLkmnwWUGazIpUuUYqdnTrpBmFLJQ9hantsIv
25
25
  dbt_common/contracts/config/materialization.py,sha256=rahC72qZ0-jB8oPwxyPooZXc5NJ-smg74g2HnGOMj34,256
26
26
  dbt_common/contracts/config/metadata.py,sha256=X47-tEA8q2ZfSMcYv0godUwTSVjt8NI77tD4NqdgM0c,1877
27
27
  dbt_common/contracts/config/properties.py,sha256=gWt6xsP4rVOqRKhmagiUhWnDynzD9mykfMYMTviwpEU,2281
28
- dbt_common/events/README.md,sha256=CSwVajoxCAqOug2UCnXldH1EUK7Kjf3rcq7z9ACjrss,3023
28
+ dbt_common/events/README.md,sha256=g-DyrZciHNTB3RrGqhEiw_HJJWBglsdEaXGThxD_lZE,2168
29
29
  dbt_common/events/__init__.py,sha256=av08vfpxo0ek7PqZNtMxY8FODJ3xwph4ehRxgInx4LA,383
30
- dbt_common/events/base_types.py,sha256=bdDMbawAV0FkxmvuxgsTev82vxTuyu6rJiSkvEQPsO8,5525
30
+ dbt_common/events/base_types.py,sha256=d_qLgjQre5o_nIW4rkcODjZ21NEfgkUyvofUL9Y7xqg,5506
31
31
  dbt_common/events/contextvars.py,sha256=EIs1P6NrJzx_IAV17x5cVqOAS4Lqbu6oc0etHtWCJOo,3097
32
32
  dbt_common/events/event_handler.py,sha256=jfi0PyqIOGnXCG9HEa0VIVULqNvXs1RYmAg0b50ChQs,1385
33
- dbt_common/events/event_manager.py,sha256=jp91-qW7DmbAEHjmNzPUH8NrXpEOYNQVGeIyZBpkr8Y,4699
33
+ dbt_common/events/event_manager.py,sha256=9J-_UYsg3gic82yenrjubCqUq9Ju7xD084-hlbaPr8U,4912
34
34
  dbt_common/events/event_manager_client.py,sha256=5IVdIuRVi5xCNQGiZqXdywlED2kLj1W_Pj0lh2HiDiI,1115
35
35
  dbt_common/events/format.py,sha256=x1RWDZ8G7ZMHmxdld6Q4VXca4kvnhiQOIaQXkC6Uo0Q,1609
36
- dbt_common/events/functions.py,sha256=R3DuyNy2TqOwNyMACVOYtiG1NjZ9FQa6FWKkzMeMCBY,4767
36
+ dbt_common/events/functions.py,sha256=2laadmQkHCUuEPHdWCJ2yIKlYSlEkpwD7A6iKKuQpJI,4838
37
37
  dbt_common/events/helpers.py,sha256=29FF0ZR24Zdvk23-bzIZKu8Pb4wFn-B1fFx28lLIpNw,450
38
38
  dbt_common/events/interfaces.py,sha256=hEDeDoB0FW2RYHVZBG7gebEt_mUVBzkn1yPubpaxs-s,147
39
39
  dbt_common/events/logger.py,sha256=siCM47WnjiA5wWoYzHDqe9mIr-b-XYNctP8r3o1zvSc,6800
40
- dbt_common/events/types.proto,sha256=ohV5f2KfhaM3NRWHFJBNJQtqP3Hie65smA0imlWNkHg,2425
41
40
  dbt_common/events/types.py,sha256=Xg2QBLTWSM_p2BP_Key_JcygmR1LyNYzQhKVYvZ9Zmc,4683
42
- dbt_common/events/types_pb2.py,sha256=fgIoTp7-0hy9FMM0tiJmzENupZH_Vl28Xz2IRvg2KGg,7862
41
+ dbt_common/events/types_pb2.py,sha256=5-2q4Khin8YHzV6YA0PYo_UgRB9j_q7yRLe8LoR8reM,125
43
42
  dbt_common/exceptions/__init__.py,sha256=X_Uw7BxOzXev_9JMYfs5Cm-_i_Qf2PJim8_-dDJI7Y8,361
44
43
  dbt_common/exceptions/base.py,sha256=23ijq-AtQgUSvZ9JbrCIZ87Pbyn8iEYezX95IXAZ4FY,7783
45
44
  dbt_common/exceptions/cache.py,sha256=0z4fBcdNZMAR41YbPRo2GN0__xAMaYs8Uc-t3hjmVio,2532
@@ -57,7 +56,7 @@ dbt_common/utils/encoding.py,sha256=6_kSY2FvGNYMg7oX7PrbvVioieydih3Kl7Ii802LaHI,
57
56
  dbt_common/utils/executor.py,sha256=pNY0UbPlwQmTE69Vt_Rj91YGCIOEaqeYU3CjAds0T70,2454
58
57
  dbt_common/utils/formatting.py,sha256=JUn5rzJ-uajs9wPCN0-f2iRFY1pOJF5YjTD9dERuLoc,165
59
58
  dbt_common/utils/jinja.py,sha256=JXgNmJArGGy0h7qkbNLA3zaEQmoF1CxsNBYTlIwFXDw,1101
60
- dbt_common-1.24.0.dist-info/METADATA,sha256=pMLQDmfri6a3jpg2HN8bct605SOz4SnRAW6J_ekNzDk,4946
61
- dbt_common-1.24.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
62
- dbt_common-1.24.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
63
- dbt_common-1.24.0.dist-info/RECORD,,
59
+ dbt_common-2.0.0.dist-info/METADATA,sha256=Q9L9WVUQ3uBubJ7JKJ4x3ahK-qG8aiR2Z0mQOiY2OM0,4987
60
+ dbt_common-2.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
61
+ dbt_common-2.0.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
62
+ dbt_common-2.0.0.dist-info/RECORD,,
@@ -1,156 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package proto_types;
4
-
5
- import "google/protobuf/timestamp.proto";
6
-
7
- // Common event info
8
- message EventInfo {
9
- string name = 1;
10
- string code = 2;
11
- string msg = 3;
12
- string level = 4;
13
- string invocation_id = 5;
14
- int32 pid = 6;
15
- string thread = 7;
16
- google.protobuf.Timestamp ts = 8;
17
- map<string, string> extra = 9;
18
- string category = 10;
19
- }
20
-
21
- // GenericMessage, used for deserializing only
22
- message GenericMessage {
23
- EventInfo info = 1;
24
- }
25
-
26
- // D - Deprecations
27
-
28
- // D018
29
- message BehaviorChangeEvent {
30
- string flag_name = 1;
31
- string flag_source = 2;
32
- string description = 3;
33
- string docs_url = 4;
34
- }
35
-
36
- message BehaviorChangeEventMsg {
37
- EventInfo info = 1;
38
- BehaviorChangeEvent data = 2;
39
- }
40
-
41
- // M - Deps generation
42
-
43
- // M020
44
- message RetryExternalCall {
45
- int32 attempt = 1;
46
- int32 max = 2;
47
- }
48
-
49
- message RetryExternalCallMsg {
50
- EventInfo info = 1;
51
- RetryExternalCall data = 2;
52
- }
53
-
54
- // M021
55
- message RecordRetryException {
56
- string exc = 1;
57
- }
58
-
59
- message RecordRetryExceptionMsg {
60
- EventInfo info = 1;
61
- RecordRetryException data = 2;
62
- }
63
-
64
- // Z - Misc
65
-
66
- // Z005
67
- message SystemCouldNotWrite {
68
- string path = 1;
69
- string reason = 2;
70
- string exc = 3;
71
- }
72
-
73
- message SystemCouldNotWriteMsg {
74
- EventInfo info = 1;
75
- SystemCouldNotWrite data = 2;
76
- }
77
-
78
- // Z006
79
- message SystemExecutingCmd {
80
- repeated string cmd = 1;
81
- }
82
-
83
- message SystemExecutingCmdMsg {
84
- EventInfo info = 1;
85
- SystemExecutingCmd data = 2;
86
- }
87
-
88
- // Z007
89
- message SystemStdOut{
90
- string bmsg = 1;
91
- }
92
-
93
- message SystemStdOutMsg {
94
- EventInfo info = 1;
95
- SystemStdOut data = 2;
96
- }
97
-
98
- // Z008
99
- message SystemStdErr {
100
- string bmsg = 1;
101
- }
102
-
103
- message SystemStdErrMsg {
104
- EventInfo info = 1;
105
- SystemStdErr data = 2;
106
- }
107
-
108
- // Z009
109
- message SystemReportReturnCode {
110
- int32 returncode = 1;
111
- }
112
-
113
- message SystemReportReturnCodeMsg {
114
- EventInfo info = 1;
115
- SystemReportReturnCode data = 2;
116
- }
117
-
118
- // Z017
119
- message Formatting {
120
- string msg = 1;
121
- }
122
-
123
- message FormattingMsg {
124
- EventInfo info = 1;
125
- Formatting data = 2;
126
- }
127
-
128
- // Z050
129
- message Note {
130
- string msg = 1;
131
- }
132
-
133
- message NoteMsg {
134
- EventInfo info = 1;
135
- Note data = 2;
136
- }
137
-
138
- // Z052
139
- message PrintEvent {
140
- string msg = 1;
141
- }
142
-
143
- message PrintEventMsg {
144
- EventInfo info = 1;
145
- PrintEvent data = 2;
146
- }
147
-
148
- // Z053
149
- message RecordReplayIssue {
150
- string msg = 1;
151
- }
152
-
153
- message RecordReplayIssueMsg {
154
- EventInfo info = 1;
155
- RecordReplayIssue data = 2;
156
- }