dbt-adapters 1.14.7__py3-none-any.whl → 1.15__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.

Potentially problematic release.


This version of dbt-adapters might be problematic. Click here for more details.

dbt/adapters/__about__.py CHANGED
@@ -1 +1 @@
1
- version = "1.14.7"
1
+ version = "1.15"
dbt/adapters/base/impl.py CHANGED
@@ -1289,7 +1289,17 @@ class BaseAdapter(metaclass=AdapterMeta):
1289
1289
  table = table_from_rows(
1290
1290
  table.rows,
1291
1291
  table.column_names,
1292
- text_only_columns=["table_database", "table_schema", "table_name"],
1292
+ text_only_columns=[
1293
+ "table_database",
1294
+ "table_schema",
1295
+ "table_name",
1296
+ "table_type",
1297
+ "table_comment",
1298
+ "table_owner",
1299
+ "column_name",
1300
+ "column_type",
1301
+ "column_comment",
1302
+ ],
1293
1303
  )
1294
1304
  return table.where(_catalog_filter_schemas(used_schemas))
1295
1305
 
@@ -54,6 +54,8 @@ QueryStringFunc = Callable[[str, Optional[QueryHeaderContextWrapper]], str]
54
54
 
55
55
 
56
56
  class MacroQueryStringSetter:
57
+ DEFAULT_QUERY_COMMENT_APPEND = False
58
+
57
59
  def __init__(
58
60
  self, config: AdapterRequiredConfig, query_header_context: Dict[str, Any]
59
61
  ) -> None:
@@ -95,7 +97,10 @@ class MacroQueryStringSetter:
95
97
  wrapped = QueryHeaderContextWrapper(query_header_context)
96
98
  comment_str = self.generator(name, wrapped)
97
99
 
98
- append = False
99
- if isinstance(self.config.query_comment, QueryComment):
100
+ append = self.DEFAULT_QUERY_COMMENT_APPEND
101
+ if (
102
+ isinstance(self.config.query_comment, QueryComment)
103
+ and self.config.query_comment.append is not None
104
+ ):
100
105
  append = self.config.query_comment.append
101
106
  self.comment.set(comment_str, append)
@@ -28,7 +28,7 @@ class CatalogIntegrationClient:
28
28
 
29
29
  def __init__(self, supported_catalogs: Iterable[Type[CatalogIntegration]]):
30
30
  self.__supported_catalogs: Dict[str, Type[CatalogIntegration]] = {
31
- catalog.catalog_type: catalog for catalog in supported_catalogs
31
+ catalog.catalog_type.casefold(): catalog for catalog in supported_catalogs
32
32
  }
33
33
  self.__catalog_integrations: Dict[str, CatalogIntegration] = {}
34
34
 
@@ -47,7 +47,7 @@ class CatalogIntegrationClient:
47
47
 
48
48
  def __catalog_integration_factory(self, catalog_type: str) -> Type[CatalogIntegration]:
49
49
  try:
50
- return self.__supported_catalogs[catalog_type]
50
+ return self.__supported_catalogs[catalog_type.casefold()]
51
51
  except KeyError as e:
52
52
  raise DbtCatalogIntegrationNotSupportedError(
53
53
  catalog_type, self.__supported_catalogs.keys()
@@ -25,8 +25,8 @@ class DbtCatalogIntegrationNotSupportedError(DbtConfigError):
25
25
  def __init__(self, catalog_type: str, supported_catalog_types: Iterable[str]) -> None:
26
26
  self.catalog_type = catalog_type
27
27
  msg = (
28
- f"Catalog type is not supported."
29
- f"Received: {catalog_type}"
28
+ f"Catalog type is not supported.\n"
29
+ f"Received: {catalog_type}\n"
30
30
  f"Expected one of: {', '.join(supported_catalog_types)}"
31
31
  )
32
32
  super().__init__(msg)
@@ -217,7 +217,7 @@ DEFAULT_QUERY_COMMENT = """
217
217
  @dataclass
218
218
  class QueryComment(dbtClassMixin):
219
219
  comment: str = DEFAULT_QUERY_COMMENT
220
- append: bool = False
220
+ append: Optional[bool] = None
221
221
  job_label: bool = field(default=False, metadata={"alias": "job-label"})
222
222
 
223
223
 
@@ -8,13 +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 adapter_types_pb2.py: make adapter_proto_types
13
- * Add a wrapping class in core/dbt/adapters/event/types.py with a Level superclass plus code and message methods
14
-
15
- We have switched from using betterproto to using google protobuf, because of a lack of support for Struct fields in betterproto.
16
-
17
- 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.
18
12
 
19
13
  ## Required for Every Event
20
14
 
@@ -1,220 +1,2 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: adapter_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
- 'adapter_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
- from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
27
-
28
-
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x61\x64\x61pter_types.proto\x12\x0bproto_types\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xab\x02\n\x16\x41\x64\x61pterCommonEventInfo\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=\n\x05\x65xtra\x18\t \x03(\x0b\x32..proto_types.AdapterCommonEventInfo.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\"]\n\x13\x41\x64\x61pterNodeRelation\x12\x10\n\x08\x64\x61tabase\x18\n \x01(\t\x12\x0e\n\x06schema\x18\x0b \x01(\t\x12\r\n\x05\x61lias\x18\x0c \x01(\t\x12\x15\n\rrelation_name\x18\r \x01(\t\"\xb6\x02\n\x0f\x41\x64\x61pterNodeInfo\x12\x11\n\tnode_path\x18\x01 \x01(\t\x12\x11\n\tnode_name\x18\x02 \x01(\t\x12\x11\n\tunique_id\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\x12\x14\n\x0cmaterialized\x18\x05 \x01(\t\x12\x13\n\x0bnode_status\x18\x06 \x01(\t\x12\x17\n\x0fnode_started_at\x18\x07 \x01(\t\x12\x18\n\x10node_finished_at\x18\x08 \x01(\t\x12%\n\x04meta\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x37\n\rnode_relation\x18\n \x01(\x0b\x32 .proto_types.AdapterNodeRelation\x12\x15\n\rnode_checksum\x18\x0b \x01(\t\"G\n\x0fReferenceKeyMsg\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\x12\x12\n\nidentifier\x18\x03 \x01(\t\"?\n\x19\x41\x64\x61pterDeprecationWarning\x12\x10\n\x08old_name\x18\x01 \x01(\t\x12\x10\n\x08new_name\x18\x02 \x01(\t\"\x87\x01\n\x1c\x41\x64\x61pterDeprecationWarningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x34\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32&.proto_types.AdapterDeprecationWarning\"!\n\x1f\x43ollectFreshnessReturnSignature\"\x93\x01\n\"CollectFreshnessReturnSignatureMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12:\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32,.proto_types.CollectFreshnessReturnSignature\"\x8e\x01\n\x11\x41\x64\x61pterEventDebug\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"w\n\x14\x41\x64\x61pterEventDebugMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.AdapterEventDebug\"\x8d\x01\n\x10\x41\x64\x61pterEventInfo\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"u\n\x13\x41\x64\x61pterEventInfoMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.AdapterEventInfo\"\x90\x01\n\x13\x41\x64\x61pterEventWarning\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"{\n\x16\x41\x64\x61pterEventWarningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.AdapterEventWarning\"\xa0\x01\n\x11\x41\x64\x61pterEventError\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x62\x61se_msg\x18\x03 \x01(\t\x12(\n\x04\x61rgs\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue\x12\x10\n\x08\x65xc_info\x18\x05 \x01(\t\"w\n\x14\x41\x64\x61pterEventErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.AdapterEventError\"f\n\rNewConnection\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_type\x18\x02 \x01(\t\x12\x11\n\tconn_name\x18\x03 \x01(\t\"o\n\x10NewConnectionMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.NewConnection\"=\n\x10\x43onnectionReused\x12\x11\n\tconn_name\x18\x01 \x01(\t\x12\x16\n\x0eorig_conn_name\x18\x02 \x01(\t\"u\n\x13\x43onnectionReusedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.ConnectionReused\"0\n\x1b\x43onnectionLeftOpenInCleanup\x12\x11\n\tconn_name\x18\x01 \x01(\t\"\x8b\x01\n\x1e\x43onnectionLeftOpenInCleanupMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x36\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32(.proto_types.ConnectionLeftOpenInCleanup\".\n\x19\x43onnectionClosedInCleanup\x12\x11\n\tconn_name\x18\x01 \x01(\t\"\x87\x01\n\x1c\x43onnectionClosedInCleanupMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x34\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32&.proto_types.ConnectionClosedInCleanup\"f\n\x0eRollbackFailed\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\x12\x10\n\x08\x65xc_info\x18\x03 \x01(\t\"q\n\x11RollbackFailedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.RollbackFailed\"V\n\x10\x43onnectionClosed\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\"u\n\x13\x43onnectionClosedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.ConnectionClosed\"X\n\x12\x43onnectionLeftOpen\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\"y\n\x15\x43onnectionLeftOpenMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.ConnectionLeftOpen\"N\n\x08Rollback\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\"e\n\x0bRollbackMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12#\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x15.proto_types.Rollback\"@\n\tCacheMiss\x12\x11\n\tconn_name\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x02 \x01(\t\x12\x0e\n\x06schema\x18\x03 \x01(\t\"g\n\x0c\x43\x61\x63heMissMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12$\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.proto_types.CacheMiss\"b\n\rListRelations\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\x12/\n\trelations\x18\x03 \x03(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\"o\n\x10ListRelationsMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.ListRelations\"g\n\x0e\x43onnectionUsed\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_type\x18\x02 \x01(\t\x12\x11\n\tconn_name\x18\x03 \x01(\t\"q\n\x11\x43onnectionUsedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.ConnectionUsed\"[\n\x08SQLQuery\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\x12\x0b\n\x03sql\x18\x03 \x01(\t\"e\n\x0bSQLQueryMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12#\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x15.proto_types.SQLQuery\"t\n\x0eSQLQueryStatus\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\x0f\n\x07\x65lapsed\x18\x03 \x01(\x02\x12\x10\n\x08query_id\x18\x04 \x01(\t\"q\n\x11SQLQueryStatusMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.SQLQueryStatus\"O\n\tSQLCommit\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x11\n\tconn_name\x18\x02 \x01(\t\"g\n\x0cSQLCommitMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12$\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x16.proto_types.SQLCommit\"a\n\rColTypeChange\x12\x11\n\torig_type\x18\x01 \x01(\t\x12\x10\n\x08new_type\x18\x02 \x01(\t\x12+\n\x05table\x18\x03 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\"o\n\x10\x43olTypeChangeMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.ColTypeChange\"@\n\x0eSchemaCreation\x12.\n\x08relation\x18\x01 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\"q\n\x11SchemaCreationMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.SchemaCreation\"<\n\nSchemaDrop\x12.\n\x08relation\x18\x01 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\"i\n\rSchemaDropMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.proto_types.SchemaDrop\"\xde\x01\n\x0b\x43\x61\x63heAction\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12-\n\x07ref_key\x18\x02 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\x12/\n\tref_key_2\x18\x03 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\x12/\n\tref_key_3\x18\x04 \x01(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\x12.\n\x08ref_list\x18\x05 \x03(\x0b\x32\x1c.proto_types.ReferenceKeyMsg\"k\n\x0e\x43\x61\x63heActionMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12&\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x18.proto_types.CacheAction\"\x98\x01\n\x0e\x43\x61\x63heDumpGraph\x12\x33\n\x04\x64ump\x18\x01 \x03(\x0b\x32%.proto_types.CacheDumpGraph.DumpEntry\x12\x14\n\x0c\x62\x65\x66ore_after\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x1a+\n\tDumpEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x11\x43\x61\x63heDumpGraphMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.CacheDumpGraph\"B\n\x11\x41\x64\x61pterRegistered\x12\x14\n\x0c\x61\x64\x61pter_name\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x64\x61pter_version\x18\x02 \x01(\t\"w\n\x14\x41\x64\x61pterRegisteredMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.AdapterRegistered\"!\n\x12\x41\x64\x61pterImportError\x12\x0b\n\x03\x65xc\x18\x01 \x01(\t\"y\n\x15\x41\x64\x61pterImportErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.AdapterImportError\"#\n\x0fPluginLoadError\x12\x10\n\x08\x65xc_info\x18\x01 \x01(\t\"s\n\x12PluginLoadErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12*\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1c.proto_types.PluginLoadError\"a\n\x14NewConnectionOpening\x12/\n\tnode_info\x18\x01 \x01(\x0b\x32\x1c.proto_types.AdapterNodeInfo\x12\x18\n\x10\x63onnection_state\x18\x02 \x01(\t\"}\n\x17NewConnectionOpeningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12/\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32!.proto_types.NewConnectionOpening\"8\n\rCodeExecution\x12\x11\n\tconn_name\x18\x01 \x01(\t\x12\x14\n\x0c\x63ode_content\x18\x02 \x01(\t\"o\n\x10\x43odeExecutionMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12(\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1a.proto_types.CodeExecution\"6\n\x13\x43odeExecutionStatus\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x0f\n\x07\x65lapsed\x18\x02 \x01(\x02\"{\n\x16\x43odeExecutionStatusMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.CodeExecutionStatus\"%\n\x16\x43\x61talogGenerationError\x12\x0b\n\x03\x65xc\x18\x01 \x01(\t\"\x81\x01\n\x19\x43\x61talogGenerationErrorMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x31\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.proto_types.CatalogGenerationError\"-\n\x13WriteCatalogFailure\x12\x16\n\x0enum_exceptions\x18\x01 \x01(\x05\"{\n\x16WriteCatalogFailureMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.WriteCatalogFailure\"\x1e\n\x0e\x43\x61talogWritten\x12\x0c\n\x04path\x18\x01 \x01(\t\"q\n\x11\x43\x61talogWrittenMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12)\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.proto_types.CatalogWritten\"\x14\n\x12\x43\x61nnotGenerateDocs\"y\n\x15\x43\x61nnotGenerateDocsMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.CannotGenerateDocs\"\x11\n\x0f\x42uildingCatalog\"s\n\x12\x42uildingCatalogMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12*\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1c.proto_types.BuildingCatalog\"-\n\x18\x44\x61tabaseErrorRunningHook\x12\x11\n\thook_type\x18\x01 \x01(\t\"\x85\x01\n\x1b\x44\x61tabaseErrorRunningHookMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x33\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32%.proto_types.DatabaseErrorRunningHook\"4\n\x0cHooksRunning\x12\x11\n\tnum_hooks\x18\x01 \x01(\x05\x12\x11\n\thook_type\x18\x02 \x01(\t\"m\n\x0fHooksRunningMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.proto_types.HooksRunning\"T\n\x14\x46inishedRunningStats\x12\x11\n\tstat_line\x18\x01 \x01(\t\x12\x11\n\texecution\x18\x02 \x01(\t\x12\x16\n\x0e\x65xecution_time\x18\x03 \x01(\x02\"}\n\x17\x46inishedRunningStatsMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12/\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32!.proto_types.FinishedRunningStats\"<\n\x15\x43onstraintNotEnforced\x12\x12\n\nconstraint\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x61pter\x18\x02 \x01(\t\"\x7f\n\x18\x43onstraintNotEnforcedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x30\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\".proto_types.ConstraintNotEnforced\"=\n\x16\x43onstraintNotSupported\x12\x12\n\nconstraint\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x61pter\x18\x02 \x01(\t\"\x81\x01\n\x19\x43onstraintNotSupportedMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12\x31\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.proto_types.ConstraintNotSupported\"%\n\x10TypeCodeNotFound\x12\x11\n\ttype_code\x18\x01 \x01(\x05\"u\n\x13TypeCodeNotFoundMsg\x12\x31\n\x04info\x18\x01 \x01(\x0b\x32#.proto_types.AdapterCommonEventInfo\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1d.proto_types.TypeCodeNotFoundb\x06proto3')
30
-
31
- _globals = globals()
32
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'adapter_types_pb2', _globals)
34
- if not _descriptor._USE_C_DESCRIPTORS:
35
- DESCRIPTOR._loaded_options = None
36
- _globals['_ADAPTERCOMMONEVENTINFO_EXTRAENTRY']._loaded_options = None
37
- _globals['_ADAPTERCOMMONEVENTINFO_EXTRAENTRY']._serialized_options = b'8\001'
38
- _globals['_CACHEDUMPGRAPH_DUMPENTRY']._loaded_options = None
39
- _globals['_CACHEDUMPGRAPH_DUMPENTRY']._serialized_options = b'8\001'
40
- _globals['_ADAPTERCOMMONEVENTINFO']._serialized_start=100
41
- _globals['_ADAPTERCOMMONEVENTINFO']._serialized_end=399
42
- _globals['_ADAPTERCOMMONEVENTINFO_EXTRAENTRY']._serialized_start=355
43
- _globals['_ADAPTERCOMMONEVENTINFO_EXTRAENTRY']._serialized_end=399
44
- _globals['_ADAPTERNODERELATION']._serialized_start=401
45
- _globals['_ADAPTERNODERELATION']._serialized_end=494
46
- _globals['_ADAPTERNODEINFO']._serialized_start=497
47
- _globals['_ADAPTERNODEINFO']._serialized_end=807
48
- _globals['_REFERENCEKEYMSG']._serialized_start=809
49
- _globals['_REFERENCEKEYMSG']._serialized_end=880
50
- _globals['_ADAPTERDEPRECATIONWARNING']._serialized_start=882
51
- _globals['_ADAPTERDEPRECATIONWARNING']._serialized_end=945
52
- _globals['_ADAPTERDEPRECATIONWARNINGMSG']._serialized_start=948
53
- _globals['_ADAPTERDEPRECATIONWARNINGMSG']._serialized_end=1083
54
- _globals['_COLLECTFRESHNESSRETURNSIGNATURE']._serialized_start=1085
55
- _globals['_COLLECTFRESHNESSRETURNSIGNATURE']._serialized_end=1118
56
- _globals['_COLLECTFRESHNESSRETURNSIGNATUREMSG']._serialized_start=1121
57
- _globals['_COLLECTFRESHNESSRETURNSIGNATUREMSG']._serialized_end=1268
58
- _globals['_ADAPTEREVENTDEBUG']._serialized_start=1271
59
- _globals['_ADAPTEREVENTDEBUG']._serialized_end=1413
60
- _globals['_ADAPTEREVENTDEBUGMSG']._serialized_start=1415
61
- _globals['_ADAPTEREVENTDEBUGMSG']._serialized_end=1534
62
- _globals['_ADAPTEREVENTINFO']._serialized_start=1537
63
- _globals['_ADAPTEREVENTINFO']._serialized_end=1678
64
- _globals['_ADAPTEREVENTINFOMSG']._serialized_start=1680
65
- _globals['_ADAPTEREVENTINFOMSG']._serialized_end=1797
66
- _globals['_ADAPTEREVENTWARNING']._serialized_start=1800
67
- _globals['_ADAPTEREVENTWARNING']._serialized_end=1944
68
- _globals['_ADAPTEREVENTWARNINGMSG']._serialized_start=1946
69
- _globals['_ADAPTEREVENTWARNINGMSG']._serialized_end=2069
70
- _globals['_ADAPTEREVENTERROR']._serialized_start=2072
71
- _globals['_ADAPTEREVENTERROR']._serialized_end=2232
72
- _globals['_ADAPTEREVENTERRORMSG']._serialized_start=2234
73
- _globals['_ADAPTEREVENTERRORMSG']._serialized_end=2353
74
- _globals['_NEWCONNECTION']._serialized_start=2355
75
- _globals['_NEWCONNECTION']._serialized_end=2457
76
- _globals['_NEWCONNECTIONMSG']._serialized_start=2459
77
- _globals['_NEWCONNECTIONMSG']._serialized_end=2570
78
- _globals['_CONNECTIONREUSED']._serialized_start=2572
79
- _globals['_CONNECTIONREUSED']._serialized_end=2633
80
- _globals['_CONNECTIONREUSEDMSG']._serialized_start=2635
81
- _globals['_CONNECTIONREUSEDMSG']._serialized_end=2752
82
- _globals['_CONNECTIONLEFTOPENINCLEANUP']._serialized_start=2754
83
- _globals['_CONNECTIONLEFTOPENINCLEANUP']._serialized_end=2802
84
- _globals['_CONNECTIONLEFTOPENINCLEANUPMSG']._serialized_start=2805
85
- _globals['_CONNECTIONLEFTOPENINCLEANUPMSG']._serialized_end=2944
86
- _globals['_CONNECTIONCLOSEDINCLEANUP']._serialized_start=2946
87
- _globals['_CONNECTIONCLOSEDINCLEANUP']._serialized_end=2992
88
- _globals['_CONNECTIONCLOSEDINCLEANUPMSG']._serialized_start=2995
89
- _globals['_CONNECTIONCLOSEDINCLEANUPMSG']._serialized_end=3130
90
- _globals['_ROLLBACKFAILED']._serialized_start=3132
91
- _globals['_ROLLBACKFAILED']._serialized_end=3234
92
- _globals['_ROLLBACKFAILEDMSG']._serialized_start=3236
93
- _globals['_ROLLBACKFAILEDMSG']._serialized_end=3349
94
- _globals['_CONNECTIONCLOSED']._serialized_start=3351
95
- _globals['_CONNECTIONCLOSED']._serialized_end=3437
96
- _globals['_CONNECTIONCLOSEDMSG']._serialized_start=3439
97
- _globals['_CONNECTIONCLOSEDMSG']._serialized_end=3556
98
- _globals['_CONNECTIONLEFTOPEN']._serialized_start=3558
99
- _globals['_CONNECTIONLEFTOPEN']._serialized_end=3646
100
- _globals['_CONNECTIONLEFTOPENMSG']._serialized_start=3648
101
- _globals['_CONNECTIONLEFTOPENMSG']._serialized_end=3769
102
- _globals['_ROLLBACK']._serialized_start=3771
103
- _globals['_ROLLBACK']._serialized_end=3849
104
- _globals['_ROLLBACKMSG']._serialized_start=3851
105
- _globals['_ROLLBACKMSG']._serialized_end=3952
106
- _globals['_CACHEMISS']._serialized_start=3954
107
- _globals['_CACHEMISS']._serialized_end=4018
108
- _globals['_CACHEMISSMSG']._serialized_start=4020
109
- _globals['_CACHEMISSMSG']._serialized_end=4123
110
- _globals['_LISTRELATIONS']._serialized_start=4125
111
- _globals['_LISTRELATIONS']._serialized_end=4223
112
- _globals['_LISTRELATIONSMSG']._serialized_start=4225
113
- _globals['_LISTRELATIONSMSG']._serialized_end=4336
114
- _globals['_CONNECTIONUSED']._serialized_start=4338
115
- _globals['_CONNECTIONUSED']._serialized_end=4441
116
- _globals['_CONNECTIONUSEDMSG']._serialized_start=4443
117
- _globals['_CONNECTIONUSEDMSG']._serialized_end=4556
118
- _globals['_SQLQUERY']._serialized_start=4558
119
- _globals['_SQLQUERY']._serialized_end=4649
120
- _globals['_SQLQUERYMSG']._serialized_start=4651
121
- _globals['_SQLQUERYMSG']._serialized_end=4752
122
- _globals['_SQLQUERYSTATUS']._serialized_start=4754
123
- _globals['_SQLQUERYSTATUS']._serialized_end=4870
124
- _globals['_SQLQUERYSTATUSMSG']._serialized_start=4872
125
- _globals['_SQLQUERYSTATUSMSG']._serialized_end=4985
126
- _globals['_SQLCOMMIT']._serialized_start=4987
127
- _globals['_SQLCOMMIT']._serialized_end=5066
128
- _globals['_SQLCOMMITMSG']._serialized_start=5068
129
- _globals['_SQLCOMMITMSG']._serialized_end=5171
130
- _globals['_COLTYPECHANGE']._serialized_start=5173
131
- _globals['_COLTYPECHANGE']._serialized_end=5270
132
- _globals['_COLTYPECHANGEMSG']._serialized_start=5272
133
- _globals['_COLTYPECHANGEMSG']._serialized_end=5383
134
- _globals['_SCHEMACREATION']._serialized_start=5385
135
- _globals['_SCHEMACREATION']._serialized_end=5449
136
- _globals['_SCHEMACREATIONMSG']._serialized_start=5451
137
- _globals['_SCHEMACREATIONMSG']._serialized_end=5564
138
- _globals['_SCHEMADROP']._serialized_start=5566
139
- _globals['_SCHEMADROP']._serialized_end=5626
140
- _globals['_SCHEMADROPMSG']._serialized_start=5628
141
- _globals['_SCHEMADROPMSG']._serialized_end=5733
142
- _globals['_CACHEACTION']._serialized_start=5736
143
- _globals['_CACHEACTION']._serialized_end=5958
144
- _globals['_CACHEACTIONMSG']._serialized_start=5960
145
- _globals['_CACHEACTIONMSG']._serialized_end=6067
146
- _globals['_CACHEDUMPGRAPH']._serialized_start=6070
147
- _globals['_CACHEDUMPGRAPH']._serialized_end=6222
148
- _globals['_CACHEDUMPGRAPH_DUMPENTRY']._serialized_start=6179
149
- _globals['_CACHEDUMPGRAPH_DUMPENTRY']._serialized_end=6222
150
- _globals['_CACHEDUMPGRAPHMSG']._serialized_start=6224
151
- _globals['_CACHEDUMPGRAPHMSG']._serialized_end=6337
152
- _globals['_ADAPTERREGISTERED']._serialized_start=6339
153
- _globals['_ADAPTERREGISTERED']._serialized_end=6405
154
- _globals['_ADAPTERREGISTEREDMSG']._serialized_start=6407
155
- _globals['_ADAPTERREGISTEREDMSG']._serialized_end=6526
156
- _globals['_ADAPTERIMPORTERROR']._serialized_start=6528
157
- _globals['_ADAPTERIMPORTERROR']._serialized_end=6561
158
- _globals['_ADAPTERIMPORTERRORMSG']._serialized_start=6563
159
- _globals['_ADAPTERIMPORTERRORMSG']._serialized_end=6684
160
- _globals['_PLUGINLOADERROR']._serialized_start=6686
161
- _globals['_PLUGINLOADERROR']._serialized_end=6721
162
- _globals['_PLUGINLOADERRORMSG']._serialized_start=6723
163
- _globals['_PLUGINLOADERRORMSG']._serialized_end=6838
164
- _globals['_NEWCONNECTIONOPENING']._serialized_start=6840
165
- _globals['_NEWCONNECTIONOPENING']._serialized_end=6937
166
- _globals['_NEWCONNECTIONOPENINGMSG']._serialized_start=6939
167
- _globals['_NEWCONNECTIONOPENINGMSG']._serialized_end=7064
168
- _globals['_CODEEXECUTION']._serialized_start=7066
169
- _globals['_CODEEXECUTION']._serialized_end=7122
170
- _globals['_CODEEXECUTIONMSG']._serialized_start=7124
171
- _globals['_CODEEXECUTIONMSG']._serialized_end=7235
172
- _globals['_CODEEXECUTIONSTATUS']._serialized_start=7237
173
- _globals['_CODEEXECUTIONSTATUS']._serialized_end=7291
174
- _globals['_CODEEXECUTIONSTATUSMSG']._serialized_start=7293
175
- _globals['_CODEEXECUTIONSTATUSMSG']._serialized_end=7416
176
- _globals['_CATALOGGENERATIONERROR']._serialized_start=7418
177
- _globals['_CATALOGGENERATIONERROR']._serialized_end=7455
178
- _globals['_CATALOGGENERATIONERRORMSG']._serialized_start=7458
179
- _globals['_CATALOGGENERATIONERRORMSG']._serialized_end=7587
180
- _globals['_WRITECATALOGFAILURE']._serialized_start=7589
181
- _globals['_WRITECATALOGFAILURE']._serialized_end=7634
182
- _globals['_WRITECATALOGFAILUREMSG']._serialized_start=7636
183
- _globals['_WRITECATALOGFAILUREMSG']._serialized_end=7759
184
- _globals['_CATALOGWRITTEN']._serialized_start=7761
185
- _globals['_CATALOGWRITTEN']._serialized_end=7791
186
- _globals['_CATALOGWRITTENMSG']._serialized_start=7793
187
- _globals['_CATALOGWRITTENMSG']._serialized_end=7906
188
- _globals['_CANNOTGENERATEDOCS']._serialized_start=7908
189
- _globals['_CANNOTGENERATEDOCS']._serialized_end=7928
190
- _globals['_CANNOTGENERATEDOCSMSG']._serialized_start=7930
191
- _globals['_CANNOTGENERATEDOCSMSG']._serialized_end=8051
192
- _globals['_BUILDINGCATALOG']._serialized_start=8053
193
- _globals['_BUILDINGCATALOG']._serialized_end=8070
194
- _globals['_BUILDINGCATALOGMSG']._serialized_start=8072
195
- _globals['_BUILDINGCATALOGMSG']._serialized_end=8187
196
- _globals['_DATABASEERRORRUNNINGHOOK']._serialized_start=8189
197
- _globals['_DATABASEERRORRUNNINGHOOK']._serialized_end=8234
198
- _globals['_DATABASEERRORRUNNINGHOOKMSG']._serialized_start=8237
199
- _globals['_DATABASEERRORRUNNINGHOOKMSG']._serialized_end=8370
200
- _globals['_HOOKSRUNNING']._serialized_start=8372
201
- _globals['_HOOKSRUNNING']._serialized_end=8424
202
- _globals['_HOOKSRUNNINGMSG']._serialized_start=8426
203
- _globals['_HOOKSRUNNINGMSG']._serialized_end=8535
204
- _globals['_FINISHEDRUNNINGSTATS']._serialized_start=8537
205
- _globals['_FINISHEDRUNNINGSTATS']._serialized_end=8621
206
- _globals['_FINISHEDRUNNINGSTATSMSG']._serialized_start=8623
207
- _globals['_FINISHEDRUNNINGSTATSMSG']._serialized_end=8748
208
- _globals['_CONSTRAINTNOTENFORCED']._serialized_start=8750
209
- _globals['_CONSTRAINTNOTENFORCED']._serialized_end=8810
210
- _globals['_CONSTRAINTNOTENFORCEDMSG']._serialized_start=8812
211
- _globals['_CONSTRAINTNOTENFORCEDMSG']._serialized_end=8939
212
- _globals['_CONSTRAINTNOTSUPPORTED']._serialized_start=8941
213
- _globals['_CONSTRAINTNOTSUPPORTED']._serialized_end=9002
214
- _globals['_CONSTRAINTNOTSUPPORTEDMSG']._serialized_start=9005
215
- _globals['_CONSTRAINTNOTSUPPORTEDMSG']._serialized_end=9134
216
- _globals['_TYPECODENOTFOUND']._serialized_start=9136
217
- _globals['_TYPECODENOTFOUND']._serialized_end=9173
218
- _globals['_TYPECODENOTFOUNDMSG']._serialized_start=9175
219
- _globals['_TYPECODENOTFOUNDMSG']._serialized_end=9292
220
- # @@protoc_insertion_point(module_scope)
1
+ # preserving import path during dbtlabs.proto refactor
2
+ from dbtlabs.proto.public.v1.fields.adapter_types_pb2 import * # noqa
@@ -1,14 +1,10 @@
1
- # Aliasing common Level classes in order to make custom, but not overly-verbose versions that have PROTO_TYPES_MODULE set to the adapter-specific generated types_pb2 module
2
- from dbt_common.events.base_types import (
3
- BaseEvent,
4
- DebugLevel as CommonDebugLevel,
5
- DynamicLevel as CommonDynamicLevel,
6
- ErrorLevel as CommonErrorLevel,
7
- InfoLevel as CommonInfoLevel,
8
- TestLevel as CommonTestLevel,
9
- WarnLevel as CommonWarnLevel,
10
- )
11
-
1
+ from dbt_common.events.base_types import BaseEvent
2
+ from dbt_common.events.base_types import DebugLevel as CommonDebugLevel
3
+ from dbt_common.events.base_types import DynamicLevel as CommonDynamicLevel
4
+ from dbt_common.events.base_types import ErrorLevel as CommonErrorLevel
5
+ from dbt_common.events.base_types import InfoLevel as CommonInfoLevel
6
+ from dbt_common.events.base_types import TestLevel as CommonTestLevel
7
+ from dbt_common.events.base_types import WarnLevel as CommonWarnLevel
12
8
  from dbt.adapters.events import adapter_types_pb2
13
9
 
14
10
 
@@ -1,5 +1,3 @@
1
- from dbt_common.ui import line_wrap_message, warning_tag
2
-
3
1
  from dbt.adapters.events.base_types import (
4
2
  DebugLevel,
5
3
  DynamicLevel,
@@ -7,6 +5,7 @@ from dbt.adapters.events.base_types import (
7
5
  InfoLevel,
8
6
  WarnLevel,
9
7
  )
8
+ from dbt_common.ui import line_wrap_message, warning_tag
10
9
 
11
10
 
12
11
  def format_adapter_message(name, base_msg, args) -> str:
@@ -102,7 +102,8 @@ class SQLConnectionManager(BaseConnectionManager):
102
102
 
103
103
  fire_event(
104
104
  AdapterEventDebug(
105
- message=f"Got a retryable error {type(e)}. {retry_limit - attempt} retries left. Retrying in 1 second.\nError:\n{e}"
105
+ base_msg=f"Got a retryable error {type(e)}. {retry_limit - attempt} retries left. "
106
+ f"Retrying in 1 second.\nError:\n{e}"
106
107
  )
107
108
  )
108
109
  time.sleep(1)
@@ -109,7 +109,9 @@
109
109
  left outer join snapshotted_data
110
110
  on {{ unique_key_join_on(strategy.unique_key, "snapshotted_data", "source_data") }}
111
111
  where {{ unique_key_is_null(strategy.unique_key, "snapshotted_data") }}
112
- or ({{ unique_key_is_not_null(strategy.unique_key, "snapshotted_data") }} and ({{ strategy.row_changed }})
112
+ or ({{ unique_key_is_not_null(strategy.unique_key, "snapshotted_data") }} and (
113
+ {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}
114
+ )
113
115
 
114
116
  )
115
117
 
@@ -129,7 +131,7 @@
129
131
  join snapshotted_data
130
132
  on {{ unique_key_join_on(strategy.unique_key, "snapshotted_data", "source_data") }}
131
133
  where (
132
- {{ strategy.row_changed }}
134
+ {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}
133
135
  )
134
136
  )
135
137
 
@@ -1,6 +1,11 @@
1
1
  {%- materialization test, default -%}
2
2
 
3
3
  {% set relations = [] %}
4
+ {% set limit = config.get('limit') %}
5
+
6
+ {% set sql_with_limit %}
7
+ {{ get_limit_subquery_sql(sql, limit) }}
8
+ {% endset %}
4
9
 
5
10
  {% if should_store_failures() %}
6
11
 
@@ -26,11 +31,12 @@
26
31
  {% endif %}
27
32
 
28
33
  {% call statement(auto_begin=True) %}
29
- {{ get_create_sql(target_relation, sql) }}
34
+ {{ get_create_sql(target_relation, sql_with_limit) }}
30
35
  {% endcall %}
31
36
 
32
37
  {% do relations.append(target_relation) %}
33
38
 
39
+ {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}
34
40
  {% set main_sql %}
35
41
  select *
36
42
  from {{ target_relation }}
@@ -40,18 +46,18 @@
40
46
 
41
47
  {% else %}
42
48
 
43
- {% set main_sql = sql %}
49
+ {% set main_sql = sql_with_limit %}
44
50
 
45
51
  {% endif %}
46
52
 
47
- {% set limit = config.get('limit') %}
48
53
  {% set fail_calc = config.get('fail_calc') %}
49
54
  {% set warn_if = config.get('warn_if') %}
50
55
  {% set error_if = config.get('error_if') %}
51
56
 
52
57
  {% call statement('main', fetch_result=True) -%}
53
58
 
54
- {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}
59
+ {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}
60
+ {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}
55
61
 
56
62
  {%- endcall %}
57
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbt-adapters
3
- Version: 1.14.7
3
+ Version: 1.15
4
4
  Summary: The set of adapter protocols and base functionality that supports integration with dbt-core
5
5
  Project-URL: Homepage, https://github.com/dbt-labs/dbt-adapters/tree/main/dbt-adapters
6
6
  Project-URL: Documentation, https://docs.getdbt.com
@@ -23,6 +23,7 @@ Classifier: Programming Language :: Python :: 3.12
23
23
  Requires-Python: >=3.9.0
24
24
  Requires-Dist: agate<2.0,>=1.0
25
25
  Requires-Dist: dbt-common<2.0,>=1.13
26
+ Requires-Dist: dbt-protos<2.0,>=1.0.291
26
27
  Requires-Dist: mashumaro[msgpack]<3.15,>=3.9
27
28
  Requires-Dist: protobuf<6.0,>=5.0
28
29
  Requires-Dist: pytz>=2015.7
@@ -1,4 +1,4 @@
1
- dbt/adapters/__about__.py,sha256=ImXWGcZYwOAKH7comqn46VSW6WO_pNwUt48KrIYwrRM,19
1
+ dbt/adapters/__about__.py,sha256=a7-yLKdJdSNaIyXogGlRz0SVt8tPofyTzgbfML6zYyE,17
2
2
  dbt/adapters/__init__.py,sha256=3noHsg-64qI0_Pw6OR9F7l1vU2_qrJvinq8POTtuaZM,252
3
3
  dbt/adapters/cache.py,sha256=WGy4ewnz-J13LverTACBW2iFhGswrWLgm-wiBrQnMzo,20084
4
4
  dbt/adapters/capability.py,sha256=M3FkC9veKnNB7a7uQyl7EHX_AGNXPChbHAkcY4cgXCY,2534
@@ -11,28 +11,27 @@ dbt/adapters/base/README.md,sha256=muHQntC07Lh6L1XfVgwKhV5RltOPBLYPdQqd8_7l34c,5
11
11
  dbt/adapters/base/__init__.py,sha256=Nc8lQVkOzAqdcxk4cw4E_raxN9CAWMwhQx4STdiicxg,456
12
12
  dbt/adapters/base/column.py,sha256=Uj20UixoxCn2rlv4QDNONyys6CDkDFyG3anCXKf0T2c,5350
13
13
  dbt/adapters/base/connections.py,sha256=-C5dOwGgMKH8n_v6wjwOxV7chBdS0GjOGwNQCUbhhWc,16951
14
- dbt/adapters/base/impl.py,sha256=lXDMcU0FJgNgsJUyFjqLqFzdV1IYBUtSOI7p28Wd5jM,78214
14
+ dbt/adapters/base/impl.py,sha256=cte4Feh_bSmLCIbmtQJderuWHLblNZF55uTfG0K66qg,78467
15
15
  dbt/adapters/base/meta.py,sha256=c5j0qeGec1cAi-IlVV_JkhMk01p5XqbtGj02uxGP1S4,5686
16
16
  dbt/adapters/base/plugin.py,sha256=rm0GjNHnWM2mn0GJOjciZLwn-02xlzWCoMT9u-epwP0,1076
17
- dbt/adapters/base/query_headers.py,sha256=UluGd9IYCYkoMiDi5Yx_lnrCOSjWppjwRro4SIGgx8I,3496
17
+ dbt/adapters/base/query_headers.py,sha256=rHgux9b_vPp_xRsg8QU3NE202Hho4i4zO9u9Gx_BCF4,3651
18
18
  dbt/adapters/base/relation.py,sha256=eePneHZQ-bb0ZFaEpC_1xzsxJF38e6k7b3FUxD8PK0I,19383
19
19
  dbt/adapters/catalogs/__init__.py,sha256=Pm0EseleLEZRK3ML1FlID1aoVKeqOPqZvJ_TYYnURfY,372
20
- dbt/adapters/catalogs/_client.py,sha256=XEKjpEg-C0OeQD_TzKKkmW5H_KyYyp2UAeiVBFnf_Ok,2236
21
- dbt/adapters/catalogs/_exceptions.py,sha256=tPYk1-4n73GnY-a42wer0CJ9eyV4XEc28LrjvRp_r50,1129
20
+ dbt/adapters/catalogs/_client.py,sha256=bIXZxEL1-4kSXHFPnMw3egIOx1fKZmjxKiO1Wv-KuHg,2258
21
+ dbt/adapters/catalogs/_exceptions.py,sha256=5zkSmjUG5y_Dzv0AAUptsJpNDHnmb8D0mUb_HIQCj_I,1133
22
22
  dbt/adapters/catalogs/_integration.py,sha256=3tV2n4_zMIS9jqaPfA6Lhzn_REHBka7BHdsc7YJwC5c,6434
23
23
  dbt/adapters/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  dbt/adapters/clients/jinja.py,sha256=NsZOiBpOLunS46hRL5OcX1MpY3Ih6_87Vgz4qd_PNbc,768
25
25
  dbt/adapters/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- dbt/adapters/contracts/connection.py,sha256=35mErirojY6Au63wjFgQokk_x7JWHjPUa6hiXjDEs0k,6917
26
+ dbt/adapters/contracts/connection.py,sha256=azipef6NBjkh88OcuF90cNUdcYBPXFMl9K99OAwdl_0,6926
27
27
  dbt/adapters/contracts/macros.py,sha256=NYVDi5ww7v4ksKBwF836TXE-2xU4IBaUINqvxMY-ieU,366
28
28
  dbt/adapters/contracts/relation.py,sha256=DIWjEeEY1QQWBAUjVNLP5WDu2HcMdBPLDwJnh8Xb4wk,4793
29
- dbt/adapters/events/README.md,sha256=kVUFIsDQrHTUmk9Mmu-yXYkWh4pA5MJK_H6739rQr5I,3521
29
+ dbt/adapters/events/README.md,sha256=3rMVP1XO1Lw7Dv6g7-SkDsAcN4VVjIF0fHKopEcCzXk,2689
30
30
  dbt/adapters/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- dbt/adapters/events/adapter_types.proto,sha256=syAfh0JK3j7h4dCL7ygf7ManzAI0hbjMT0a3C2iyWg4,9810
32
- dbt/adapters/events/adapter_types_pb2.py,sha256=uEf5Pl6Dp_s9W-ja8clwEQg9iLloLu0EqsbambYVIes,26849
33
- dbt/adapters/events/base_types.py,sha256=sTlNRl15GaRIrIDVxalf7sK08dfo3Ol1Ua2jbFO7-7c,966
31
+ dbt/adapters/events/adapter_types_pb2.py,sha256=Mov1yYR_v9JG6n7MHvzEbFtLN4gMQ1Uv5die8u2eJag,126
32
+ dbt/adapters/events/base_types.py,sha256=UQKTjv4cOA76bI8lwYpwr1X0w5BPfE6YpcIt16cFjMU,999
34
33
  dbt/adapters/events/logging.py,sha256=1nRFswQubgUrVHL5DB9ewBtbEv1-OcIXC7mMmu3NOaM,2350
35
- dbt/adapters/events/types.py,sha256=nW7_FgrEmWlM-HWPHrYcJ5K5QLZtfspLizyqlXrJaoE,12189
34
+ dbt/adapters/events/types.py,sha256=cxGUlR2WceSOis81FwHS7rwfFpxCmy31ur5Yp8Pz4o0,12188
36
35
  dbt/adapters/exceptions/__init__.py,sha256=LxRkxHARMzrPegrjha5tQ8vQi1PnL_ooq1SVqm9aiZs,1268
37
36
  dbt/adapters/exceptions/alias.py,sha256=QlCd2jvatfndec1DQLMMBJ-C_7w8yAySuAFHK2ga1g8,798
38
37
  dbt/adapters/exceptions/cache.py,sha256=u720DQQKm8pyf_9loD9HGA9WgaeZAlg0sBn0sGc-rhA,2492
@@ -56,7 +55,7 @@ dbt/adapters/relation_configs/config_base.py,sha256=CAsnpbNSlwMgy47oQ_Iv-hRu6mOb
56
55
  dbt/adapters/relation_configs/config_change.py,sha256=hf6fDWbZpKvZdM6z-OtY-GveipzfLRR_dsUZmYmXkdk,713
57
56
  dbt/adapters/relation_configs/config_validation.py,sha256=wlJUMwOEPhYFch-LRtEWfLNJMq8jL1tRhOUHmNX8nFw,1978
58
57
  dbt/adapters/sql/__init__.py,sha256=WLWZJfqc8pr1N1BMVe9gM-KQ4URJIeKfLqTuJBD1VN0,107
59
- dbt/adapters/sql/connections.py,sha256=JEMvgOW167je6J33Xj_Q605cB-9gDNOmCo3zdAnWiI8,8424
58
+ dbt/adapters/sql/connections.py,sha256=N7Mmg9ZS5ztKQCbJgbb1jwVhaBeMBqnR_3SWxEytxzY,8453
60
59
  dbt/adapters/sql/impl.py,sha256=dhpvlxc3mZWdcP42xMzW8_nM2zJGMMt1_hLUUfXx3Dw,10944
61
60
  dbt/include/__init__.py,sha256=qEFeq3yuf3lQKVseALmL8aPM8fpCS54B_5pry00M3hk,76
62
61
  dbt/include/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -99,12 +98,12 @@ dbt/include/global_project/macros/materializations/models/incremental/on_schema_
99
98
  dbt/include/global_project/macros/materializations/models/incremental/strategies.sql,sha256=ORGWiYfj-b3_VIps9FDlyx-Q4A2hZzX2aYLocW8b6pU,2613
100
99
  dbt/include/global_project/macros/materializations/seeds/helpers.sql,sha256=Y15ej-D3gm1ExIOMNT208q43gRk8d985WQBuGSooNL0,3920
101
100
  dbt/include/global_project/macros/materializations/seeds/seed.sql,sha256=YSoGzVO3iIUiOKIUM9G7yApGLFH4O9bv_d4KjHo3p4Q,2155
102
- dbt/include/global_project/macros/materializations/snapshots/helpers.sql,sha256=9Oj_60XhwEByrryf16YQN9J853dCHnXChSyjI_t8kX4,11110
101
+ dbt/include/global_project/macros/materializations/snapshots/helpers.sql,sha256=Ox-7PZ9NHleqRdzTv7MWP0pgOByQujNCS0xQaBXtndU,11378
103
102
  dbt/include/global_project/macros/materializations/snapshots/snapshot.sql,sha256=clIZtCE7vvOXxzz1t2KlmPZM7AuSGsK7MInspo0N5Qg,4043
104
103
  dbt/include/global_project/macros/materializations/snapshots/snapshot_merge.sql,sha256=WaGQCuv4o_qxBw7b2KQvUnSg0UkPklwAQHK1-QngN_M,1369
105
104
  dbt/include/global_project/macros/materializations/snapshots/strategies.sql,sha256=AfIsRiw0YnQym5wUiWR2JpiEEky4_WBTpTtE0HJvpZw,6928
106
105
  dbt/include/global_project/macros/materializations/tests/helpers.sql,sha256=rxUxDZm4EvrDbi0H_ePghE34_QLmxGEY2o_LTMc9CU0,1731
107
- dbt/include/global_project/macros/materializations/tests/test.sql,sha256=Rz3O_3dWHlIofG3d2CwsP2bXFimRZUIwOevyB0iz1J4,1831
106
+ dbt/include/global_project/macros/materializations/tests/test.sql,sha256=LP4ya-X5n499ccab7n1jqvGbZWZsG6hqJmWlx60BvHQ,2247
108
107
  dbt/include/global_project/macros/materializations/tests/unit.sql,sha256=KonePuFfwcz5uJ-JW0CrEy8_q-Gl45fonngGmFvQcNU,1252
109
108
  dbt/include/global_project/macros/materializations/tests/where_subquery.sql,sha256=xjuYd18tXo99OReJGQsfgEPYljUUyF00XzK4h0SJjdM,497
110
109
  dbt/include/global_project/macros/python_model/python.sql,sha256=qWoouNOP4Qdune_2Vitzmrzb0soHRzu0S4K22amVZK8,4056
@@ -163,7 +162,7 @@ dbt/include/global_project/macros/utils/right.sql,sha256=EwNG98CAFIwNDmarwopf7Rk
163
162
  dbt/include/global_project/macros/utils/safe_cast.sql,sha256=1mswwkDACmIi1I99JKb_-vq3kjMe4HhMRV70mW8Bt4Y,298
164
163
  dbt/include/global_project/macros/utils/split_part.sql,sha256=fXEIS0oIiYR7-4lYbb0QbZdG-q2TpV63AFd1ky4I5UM,714
165
164
  dbt/include/global_project/tests/generic/builtin.sql,sha256=p94xdyPwb2TlxgLBqCfrcRfJ1QNgsjPvBm8f0Q5eqZM,1022
166
- dbt_adapters-1.14.7.dist-info/METADATA,sha256=aNqZ4iD8o3i6JvBAaGygebN5LnkmMEQurrqcG54GxrI,4494
167
- dbt_adapters-1.14.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
168
- dbt_adapters-1.14.7.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
169
- dbt_adapters-1.14.7.dist-info/RECORD,,
165
+ dbt_adapters-1.15.dist-info/METADATA,sha256=3nYDhBDHxc-GvZxlbe1nQJ01pJaC2fi24sYu9aZrea8,4532
166
+ dbt_adapters-1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
167
+ dbt_adapters-1.15.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
168
+ dbt_adapters-1.15.dist-info/RECORD,,
@@ -1,530 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package v1.public.fields.adapter_types;
4
- option go_package = "github.com/dbt-labs/proto-golang/v1/public/fields/adapter_types";
5
-
6
- import "google/protobuf/timestamp.proto";
7
- import "google/protobuf/struct.proto";
8
-
9
- // Common event info
10
- message AdapterCommonEventInfo {
11
- string name = 1;
12
- string code = 2;
13
- string msg = 3;
14
- string level = 4;
15
- string invocation_id = 5;
16
- int32 pid = 6;
17
- string thread = 7;
18
- google.protobuf.Timestamp ts = 8;
19
- map<string, string> extra = 9;
20
- string category = 10;
21
- }
22
-
23
- // AdapterNodeRelation
24
- message AdapterNodeRelation {
25
- string database = 10;
26
- string schema = 11;
27
- string alias = 12;
28
- string relation_name = 13;
29
- }
30
-
31
- // NodeInfo
32
- message AdapterNodeInfo {
33
- string node_path = 1;
34
- string node_name = 2;
35
- string unique_id = 3;
36
- string resource_type = 4;
37
- string materialized = 5;
38
- string node_status = 6;
39
- string node_started_at = 7;
40
- string node_finished_at = 8;
41
- google.protobuf.Struct meta = 9;
42
- AdapterNodeRelation node_relation = 10;
43
- string node_checksum = 11;
44
- }
45
-
46
- // ReferenceKey
47
- message ReferenceKeyMsg {
48
- string database = 1;
49
- string schema = 2;
50
- string identifier = 3;
51
- }
52
-
53
- // D - Deprecations
54
-
55
- // D005
56
- message AdapterDeprecationWarning {
57
- string old_name = 1;
58
- string new_name = 2;
59
- }
60
-
61
- message AdapterDeprecationWarningMsg {
62
- AdapterCommonEventInfo info = 1;
63
- AdapterDeprecationWarning data = 2;
64
- }
65
-
66
- // D012
67
- message CollectFreshnessReturnSignature {
68
- }
69
-
70
- message CollectFreshnessReturnSignatureMsg {
71
- AdapterCommonEventInfo info = 1;
72
- CollectFreshnessReturnSignature data = 2;
73
- }
74
-
75
- // E - DB Adapter
76
-
77
- // E001
78
- message AdapterEventDebug {
79
- AdapterNodeInfo node_info = 1;
80
- string name = 2;
81
- string base_msg = 3;
82
- google.protobuf.ListValue args = 4;
83
- }
84
-
85
- message AdapterEventDebugMsg {
86
- AdapterCommonEventInfo info = 1;
87
- AdapterEventDebug data = 2;
88
- }
89
-
90
- // E002
91
- message AdapterEventInfo {
92
- AdapterNodeInfo node_info = 1;
93
- string name = 2;
94
- string base_msg = 3;
95
- google.protobuf.ListValue args = 4;
96
- }
97
-
98
- message AdapterEventInfoMsg {
99
- AdapterCommonEventInfo info = 1;
100
- AdapterEventInfo data = 2;
101
- }
102
-
103
- // E003
104
- message AdapterEventWarning {
105
- AdapterNodeInfo node_info = 1;
106
- string name = 2;
107
- string base_msg = 3;
108
- google.protobuf.ListValue args = 4;
109
- }
110
-
111
- message AdapterEventWarningMsg {
112
- AdapterCommonEventInfo info = 1;
113
- AdapterEventWarning data = 2;
114
- }
115
-
116
- // E004
117
- message AdapterEventError {
118
- AdapterNodeInfo node_info = 1;
119
- string name = 2;
120
- string base_msg = 3;
121
- google.protobuf.ListValue args = 4;
122
- string exc_info = 5;
123
- }
124
-
125
- message AdapterEventErrorMsg {
126
- AdapterCommonEventInfo info = 1;
127
- AdapterEventError data = 2;
128
- }
129
-
130
- // E005
131
- message NewConnection {
132
- AdapterNodeInfo node_info = 1;
133
- string conn_type = 2;
134
- string conn_name = 3;
135
- }
136
-
137
- message NewConnectionMsg {
138
- AdapterCommonEventInfo info = 1;
139
- NewConnection data = 2;
140
- }
141
-
142
- // E006
143
- message ConnectionReused {
144
- string conn_name = 1;
145
- string orig_conn_name = 2;
146
- }
147
-
148
- message ConnectionReusedMsg {
149
- AdapterCommonEventInfo info = 1;
150
- ConnectionReused data = 2;
151
- }
152
-
153
- // E007
154
- message ConnectionLeftOpenInCleanup {
155
- string conn_name = 1;
156
- }
157
-
158
- message ConnectionLeftOpenInCleanupMsg {
159
- AdapterCommonEventInfo info = 1;
160
- ConnectionLeftOpenInCleanup data = 2;
161
- }
162
-
163
- // E008
164
- message ConnectionClosedInCleanup {
165
- string conn_name = 1;
166
- }
167
-
168
- message ConnectionClosedInCleanupMsg {
169
- AdapterCommonEventInfo info = 1;
170
- ConnectionClosedInCleanup data = 2;
171
- }
172
-
173
- // E009
174
- message RollbackFailed {
175
- AdapterNodeInfo node_info = 1;
176
- string conn_name = 2;
177
- string exc_info = 3;
178
- }
179
-
180
- message RollbackFailedMsg {
181
- AdapterCommonEventInfo info = 1;
182
- RollbackFailed data = 2;
183
- }
184
-
185
- // E010
186
- message ConnectionClosed {
187
- AdapterNodeInfo node_info = 1;
188
- string conn_name = 2;
189
- }
190
-
191
- message ConnectionClosedMsg {
192
- AdapterCommonEventInfo info = 1;
193
- ConnectionClosed data = 2;
194
- }
195
-
196
- // E011
197
- message ConnectionLeftOpen {
198
- AdapterNodeInfo node_info = 1;
199
- string conn_name = 2;
200
- }
201
-
202
- message ConnectionLeftOpenMsg {
203
- AdapterCommonEventInfo info = 1;
204
- ConnectionLeftOpen data = 2;
205
- }
206
-
207
- // E012
208
- message Rollback {
209
- AdapterNodeInfo node_info = 1;
210
- string conn_name = 2;
211
- }
212
-
213
- message RollbackMsg {
214
- AdapterCommonEventInfo info = 1;
215
- Rollback data = 2;
216
- }
217
-
218
- // E013
219
- message CacheMiss {
220
- string conn_name = 1;
221
- string database = 2;
222
- string schema = 3;
223
- }
224
-
225
- message CacheMissMsg {
226
- AdapterCommonEventInfo info = 1;
227
- CacheMiss data = 2;
228
- }
229
-
230
- // E014
231
- message ListRelations {
232
- string database = 1;
233
- string schema = 2;
234
- repeated ReferenceKeyMsg relations = 3;
235
- }
236
-
237
- message ListRelationsMsg {
238
- AdapterCommonEventInfo info = 1;
239
- ListRelations data = 2;
240
- }
241
-
242
- // E015
243
- message ConnectionUsed {
244
- AdapterNodeInfo node_info = 1;
245
- string conn_type = 2;
246
- string conn_name = 3;
247
- }
248
-
249
- message ConnectionUsedMsg {
250
- AdapterCommonEventInfo info = 1;
251
- ConnectionUsed data = 2;
252
- }
253
-
254
- // E016
255
- message SQLQuery {
256
- AdapterNodeInfo node_info = 1;
257
- string conn_name = 2;
258
- string sql = 3;
259
- }
260
-
261
- message SQLQueryMsg {
262
- AdapterCommonEventInfo info = 1;
263
- SQLQuery data = 2;
264
- }
265
-
266
- // E017
267
- message SQLQueryStatus {
268
- AdapterNodeInfo node_info = 1;
269
- string status = 2;
270
- float elapsed = 3;
271
- string query_id = 4;
272
- }
273
-
274
- message SQLQueryStatusMsg {
275
- AdapterCommonEventInfo info = 1;
276
- SQLQueryStatus data = 2;
277
- }
278
-
279
- // E018
280
- message SQLCommit {
281
- AdapterNodeInfo node_info = 1;
282
- string conn_name = 2;
283
- }
284
-
285
- message SQLCommitMsg {
286
- AdapterCommonEventInfo info = 1;
287
- SQLCommit data = 2;
288
- }
289
-
290
- // E019
291
- message ColTypeChange {
292
- string orig_type = 1;
293
- string new_type = 2;
294
- ReferenceKeyMsg table = 3;
295
- }
296
-
297
- message ColTypeChangeMsg {
298
- AdapterCommonEventInfo info = 1;
299
- ColTypeChange data = 2;
300
- }
301
-
302
- // E020
303
- message SchemaCreation {
304
- ReferenceKeyMsg relation = 1;
305
- }
306
-
307
- message SchemaCreationMsg {
308
- AdapterCommonEventInfo info = 1;
309
- SchemaCreation data = 2;
310
- }
311
-
312
- // E021
313
- message SchemaDrop {
314
- ReferenceKeyMsg relation = 1;
315
- }
316
-
317
- message SchemaDropMsg {
318
- AdapterCommonEventInfo info = 1;
319
- SchemaDrop data = 2;
320
- }
321
-
322
- // E022
323
- message CacheAction {
324
- string action = 1;
325
- ReferenceKeyMsg ref_key = 2;
326
- ReferenceKeyMsg ref_key_2 = 3;
327
- ReferenceKeyMsg ref_key_3 = 4;
328
- repeated ReferenceKeyMsg ref_list = 5;
329
- }
330
-
331
- message CacheActionMsg {
332
- AdapterCommonEventInfo info = 1;
333
- CacheAction data = 2;
334
- }
335
-
336
- // Skipping E023, E024, E025, E026, E027, E028, E029, E0230
337
-
338
- // E031
339
- message CacheDumpGraph {
340
- map<string, string> dump = 1;
341
- string before_after = 2;
342
- string action = 3;
343
- }
344
-
345
- message CacheDumpGraphMsg {
346
- AdapterCommonEventInfo info = 1;
347
- CacheDumpGraph data = 2;
348
- }
349
-
350
-
351
- // Skipping E032, E033, E034
352
-
353
-
354
-
355
- // E034
356
- message AdapterRegistered {
357
- string adapter_name = 1;
358
- string adapter_version = 2;
359
- }
360
-
361
- message AdapterRegisteredMsg {
362
- AdapterCommonEventInfo info = 1;
363
- AdapterRegistered data = 2;
364
- }
365
-
366
- // E035
367
- message AdapterImportError {
368
- string exc = 1;
369
- }
370
-
371
- message AdapterImportErrorMsg {
372
- AdapterCommonEventInfo info = 1;
373
- AdapterImportError data = 2;
374
- }
375
-
376
- // E036
377
- message PluginLoadError {
378
- string exc_info = 1;
379
- }
380
-
381
- message PluginLoadErrorMsg {
382
- AdapterCommonEventInfo info = 1;
383
- PluginLoadError data = 2;
384
- }
385
-
386
- // E037
387
- message NewConnectionOpening {
388
- AdapterNodeInfo node_info = 1;
389
- string connection_state = 2;
390
- }
391
-
392
- message NewConnectionOpeningMsg {
393
- AdapterCommonEventInfo info = 1;
394
- NewConnectionOpening data = 2;
395
- }
396
-
397
- // E038
398
- message CodeExecution {
399
- string conn_name = 1;
400
- string code_content = 2;
401
- }
402
-
403
- message CodeExecutionMsg {
404
- AdapterCommonEventInfo info = 1;
405
- CodeExecution data = 2;
406
- }
407
-
408
- // E039
409
- message CodeExecutionStatus {
410
- string status = 1;
411
- float elapsed = 2;
412
- }
413
-
414
- message CodeExecutionStatusMsg {
415
- AdapterCommonEventInfo info = 1;
416
- CodeExecutionStatus data = 2;
417
- }
418
-
419
- // E040
420
- message CatalogGenerationError {
421
- string exc = 1;
422
- }
423
-
424
- message CatalogGenerationErrorMsg {
425
- AdapterCommonEventInfo info = 1;
426
- CatalogGenerationError data = 2;
427
- }
428
-
429
- // E041
430
- message WriteCatalogFailure {
431
- int32 num_exceptions = 1;
432
- }
433
-
434
- message WriteCatalogFailureMsg {
435
- AdapterCommonEventInfo info = 1;
436
- WriteCatalogFailure data = 2;
437
- }
438
-
439
- // E042
440
- message CatalogWritten {
441
- string path = 1;
442
- }
443
-
444
- message CatalogWrittenMsg {
445
- AdapterCommonEventInfo info = 1;
446
- CatalogWritten data = 2;
447
- }
448
-
449
- // E043
450
- message CannotGenerateDocs {
451
- }
452
-
453
- message CannotGenerateDocsMsg {
454
- AdapterCommonEventInfo info = 1;
455
- CannotGenerateDocs data = 2;
456
- }
457
-
458
- // E044
459
- message BuildingCatalog {
460
- }
461
-
462
- message BuildingCatalogMsg {
463
- AdapterCommonEventInfo info = 1;
464
- BuildingCatalog data = 2;
465
- }
466
-
467
- // E045
468
- message DatabaseErrorRunningHook {
469
- string hook_type = 1;
470
- }
471
-
472
- message DatabaseErrorRunningHookMsg {
473
- AdapterCommonEventInfo info = 1;
474
- DatabaseErrorRunningHook data = 2;
475
- }
476
-
477
- // E046
478
- message HooksRunning {
479
- int32 num_hooks = 1;
480
- string hook_type = 2;
481
- }
482
-
483
- message HooksRunningMsg {
484
- AdapterCommonEventInfo info = 1;
485
- HooksRunning data = 2;
486
- }
487
-
488
- // E047
489
- message FinishedRunningStats {
490
- string stat_line = 1;
491
- string execution = 2;
492
- float execution_time = 3;
493
- }
494
-
495
- message FinishedRunningStatsMsg {
496
- AdapterCommonEventInfo info = 1;
497
- FinishedRunningStats data = 2;
498
- }
499
-
500
- // E048
501
- message ConstraintNotEnforced {
502
- string constraint = 1;
503
- string adapter = 2;
504
- }
505
-
506
- message ConstraintNotEnforcedMsg {
507
- AdapterCommonEventInfo info = 1;
508
- ConstraintNotEnforced data = 2;
509
- }
510
-
511
- // E049
512
- message ConstraintNotSupported {
513
- string constraint = 1;
514
- string adapter = 2;
515
- }
516
-
517
- message ConstraintNotSupportedMsg {
518
- AdapterCommonEventInfo info = 1;
519
- ConstraintNotSupported data = 2;
520
- }
521
-
522
- // E050
523
- message TypeCodeNotFound {
524
- int32 type_code = 1;
525
- }
526
-
527
- message TypeCodeNotFoundMsg {
528
- AdapterCommonEventInfo info = 1;
529
- TypeCodeNotFound data = 2;
530
- }