acryl-datahub-cloud 0.3.12.4rc3__py3-none-any.whl → 0.3.13__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 acryl-datahub-cloud might be problematic. Click here for more details.

Files changed (53) hide show
  1. acryl_datahub_cloud/_codegen_config.json +1 -1
  2. acryl_datahub_cloud/lineage_features/source.py +8 -2
  3. acryl_datahub_cloud/metadata/_urns/urn_defs.py +168 -0
  4. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/actionworkflow/__init__.py +53 -0
  5. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/assertion/__init__.py +2 -0
  6. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/identity/__init__.py +2 -0
  7. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/logical/__init__.py +15 -0
  8. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/metadata/key/__init__.py +6 -0
  9. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/module/__init__.py +31 -0
  10. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/settings/global/__init__.py +4 -0
  11. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/template/__init__.py +25 -0
  12. acryl_datahub_cloud/metadata/schema.avsc +1543 -275
  13. acryl_datahub_cloud/metadata/schema_classes.py +2040 -4
  14. acryl_datahub_cloud/metadata/schemas/ActionRequestInfo.avsc +136 -1
  15. acryl_datahub_cloud/metadata/schemas/ActionWorkflowInfo.avsc +683 -0
  16. acryl_datahub_cloud/metadata/schemas/ActionWorkflowKey.avsc +21 -0
  17. acryl_datahub_cloud/metadata/schemas/AssertionAnalyticsRunEvent.avsc +46 -0
  18. acryl_datahub_cloud/metadata/schemas/AssertionInfo.avsc +25 -0
  19. acryl_datahub_cloud/metadata/schemas/AssertionRunEvent.avsc +25 -0
  20. acryl_datahub_cloud/metadata/schemas/CorpUserSettings.avsc +50 -0
  21. acryl_datahub_cloud/metadata/schemas/DataHubPageModuleKey.avsc +21 -0
  22. acryl_datahub_cloud/metadata/schemas/DataHubPageModuleProperties.avsc +281 -0
  23. acryl_datahub_cloud/metadata/schemas/DataHubPageTemplateKey.avsc +21 -0
  24. acryl_datahub_cloud/metadata/schemas/DataHubPageTemplateProperties.avsc +175 -0
  25. acryl_datahub_cloud/metadata/schemas/DataJobInputOutput.avsc +8 -0
  26. acryl_datahub_cloud/metadata/schemas/DatasetKey.avsc +1 -0
  27. acryl_datahub_cloud/metadata/schemas/GlobalSettingsInfo.avsc +71 -0
  28. acryl_datahub_cloud/metadata/schemas/LogicalParent.avsc +140 -0
  29. acryl_datahub_cloud/metadata/schemas/MetadataChangeEvent.avsc +163 -1
  30. acryl_datahub_cloud/metadata/schemas/MetadataChangeLog.avsc +62 -44
  31. acryl_datahub_cloud/metadata/schemas/MetadataChangeProposal.avsc +61 -0
  32. acryl_datahub_cloud/metadata/schemas/MonitorInfo.avsc +25 -0
  33. acryl_datahub_cloud/metadata/schemas/NotificationRequest.avsc +4 -0
  34. acryl_datahub_cloud/metadata/schemas/QuerySubjects.avsc +1 -12
  35. acryl_datahub_cloud/metadata/schemas/SchemaFieldKey.avsc +1 -0
  36. acryl_datahub_cloud/metadata/schemas/SystemMetadata.avsc +61 -0
  37. acryl_datahub_cloud/metadata/schemas/UpstreamLineage.avsc +9 -0
  38. acryl_datahub_cloud/sdk/assertion/__init__.py +49 -0
  39. acryl_datahub_cloud/sdk/assertion/assertion_base.py +65 -806
  40. acryl_datahub_cloud/sdk/assertion/freshness_assertion.py +201 -0
  41. acryl_datahub_cloud/sdk/assertion/smart_freshness_assertion.py +165 -0
  42. acryl_datahub_cloud/sdk/assertion/smart_volume_assertion.py +162 -0
  43. acryl_datahub_cloud/sdk/assertion/sql_assertion.py +256 -0
  44. acryl_datahub_cloud/sdk/assertion/volume_assertion.py +156 -0
  45. acryl_datahub_cloud/sdk/assertion_input/assertion_input.py +0 -344
  46. acryl_datahub_cloud/sdk/assertion_input/smart_freshness_assertion_input.py +220 -0
  47. acryl_datahub_cloud/sdk/assertion_input/smart_volume_assertion_input.py +191 -0
  48. acryl_datahub_cloud/sdk/assertions_client.py +6 -2
  49. {acryl_datahub_cloud-0.3.12.4rc3.dist-info → acryl_datahub_cloud-0.3.13.dist-info}/METADATA +47 -45
  50. {acryl_datahub_cloud-0.3.12.4rc3.dist-info → acryl_datahub_cloud-0.3.13.dist-info}/RECORD +53 -35
  51. {acryl_datahub_cloud-0.3.12.4rc3.dist-info → acryl_datahub_cloud-0.3.13.dist-info}/WHEEL +0 -0
  52. {acryl_datahub_cloud-0.3.12.4rc3.dist-info → acryl_datahub_cloud-0.3.13.dist-info}/entry_points.txt +0 -0
  53. {acryl_datahub_cloud-0.3.12.4rc3.dist-info → acryl_datahub_cloud-0.3.13.dist-info}/top_level.txt +0 -0
@@ -267,6 +267,67 @@
267
267
  "name": "version",
268
268
  "default": null,
269
269
  "doc": "Aspect version\n Initial implementation will use the aspect version's number, however stored as\n a string in the case where a different aspect versioning scheme is later adopted."
270
+ },
271
+ {
272
+ "type": [
273
+ "null",
274
+ {
275
+ "type": "record",
276
+ "name": "AuditStamp",
277
+ "namespace": "com.linkedin.pegasus2avro.common",
278
+ "fields": [
279
+ {
280
+ "type": "long",
281
+ "name": "time",
282
+ "doc": "When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent."
283
+ },
284
+ {
285
+ "java": {
286
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
287
+ },
288
+ "type": "string",
289
+ "name": "actor",
290
+ "doc": "The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.",
291
+ "Urn": "Urn"
292
+ },
293
+ {
294
+ "java": {
295
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
296
+ },
297
+ "type": [
298
+ "null",
299
+ "string"
300
+ ],
301
+ "name": "impersonator",
302
+ "default": null,
303
+ "doc": "The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.",
304
+ "Urn": "Urn"
305
+ },
306
+ {
307
+ "type": [
308
+ "null",
309
+ "string"
310
+ ],
311
+ "name": "message",
312
+ "default": null,
313
+ "doc": "Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually."
314
+ }
315
+ ],
316
+ "doc": "Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage."
317
+ }
318
+ ],
319
+ "name": "aspectCreated",
320
+ "default": null,
321
+ "doc": "When the aspect was initially created and who created it, detected by version 0 -> 1 change"
322
+ },
323
+ {
324
+ "type": [
325
+ "null",
326
+ "com.linkedin.pegasus2avro.common.AuditStamp"
327
+ ],
328
+ "name": "aspectModified",
329
+ "default": null,
330
+ "doc": "When the aspect was last modified and the actor that performed the modification"
270
331
  }
271
332
  ],
272
333
  "doc": "Metadata associated with each metadata change that is processed by the system"
@@ -309,50 +370,7 @@
309
370
  {
310
371
  "type": [
311
372
  "null",
312
- {
313
- "type": "record",
314
- "name": "AuditStamp",
315
- "namespace": "com.linkedin.pegasus2avro.common",
316
- "fields": [
317
- {
318
- "type": "long",
319
- "name": "time",
320
- "doc": "When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent."
321
- },
322
- {
323
- "java": {
324
- "class": "com.linkedin.pegasus2avro.common.urn.Urn"
325
- },
326
- "type": "string",
327
- "name": "actor",
328
- "doc": "The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.",
329
- "Urn": "Urn"
330
- },
331
- {
332
- "java": {
333
- "class": "com.linkedin.pegasus2avro.common.urn.Urn"
334
- },
335
- "type": [
336
- "null",
337
- "string"
338
- ],
339
- "name": "impersonator",
340
- "default": null,
341
- "doc": "The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.",
342
- "Urn": "Urn"
343
- },
344
- {
345
- "type": [
346
- "null",
347
- "string"
348
- ],
349
- "name": "message",
350
- "default": null,
351
- "doc": "Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually."
352
- }
353
- ],
354
- "doc": "Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage."
355
- }
373
+ "com.linkedin.pegasus2avro.common.AuditStamp"
356
374
  ],
357
375
  "name": "created",
358
376
  "default": null,
@@ -267,6 +267,67 @@
267
267
  "name": "version",
268
268
  "default": null,
269
269
  "doc": "Aspect version\n Initial implementation will use the aspect version's number, however stored as\n a string in the case where a different aspect versioning scheme is later adopted."
270
+ },
271
+ {
272
+ "type": [
273
+ "null",
274
+ {
275
+ "type": "record",
276
+ "name": "AuditStamp",
277
+ "namespace": "com.linkedin.pegasus2avro.common",
278
+ "fields": [
279
+ {
280
+ "type": "long",
281
+ "name": "time",
282
+ "doc": "When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent."
283
+ },
284
+ {
285
+ "java": {
286
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
287
+ },
288
+ "type": "string",
289
+ "name": "actor",
290
+ "doc": "The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.",
291
+ "Urn": "Urn"
292
+ },
293
+ {
294
+ "java": {
295
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
296
+ },
297
+ "type": [
298
+ "null",
299
+ "string"
300
+ ],
301
+ "name": "impersonator",
302
+ "default": null,
303
+ "doc": "The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.",
304
+ "Urn": "Urn"
305
+ },
306
+ {
307
+ "type": [
308
+ "null",
309
+ "string"
310
+ ],
311
+ "name": "message",
312
+ "default": null,
313
+ "doc": "Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually."
314
+ }
315
+ ],
316
+ "doc": "Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage."
317
+ }
318
+ ],
319
+ "name": "aspectCreated",
320
+ "default": null,
321
+ "doc": "When the aspect was initially created and who created it, detected by version 0 -> 1 change"
322
+ },
323
+ {
324
+ "type": [
325
+ "null",
326
+ "com.linkedin.pegasus2avro.common.AuditStamp"
327
+ ],
328
+ "name": "aspectModified",
329
+ "default": null,
330
+ "doc": "When the aspect was last modified and the actor that performed the modification"
270
331
  }
271
332
  ],
272
333
  "doc": "Metadata associated with each metadata change that is processed by the system"
@@ -3258,6 +3258,31 @@
3258
3258
  "name": "description",
3259
3259
  "default": null,
3260
3260
  "doc": "An optional human-readable description of the assertion"
3261
+ },
3262
+ {
3263
+ "type": [
3264
+ "null",
3265
+ {
3266
+ "type": "record",
3267
+ "name": "AssertionNote",
3268
+ "namespace": "com.linkedin.pegasus2avro.assertion",
3269
+ "fields": [
3270
+ {
3271
+ "type": "string",
3272
+ "name": "content",
3273
+ "doc": "The note to give technical owners more context about the assertion, and how to troubleshoot it."
3274
+ },
3275
+ {
3276
+ "type": "com.linkedin.pegasus2avro.common.AuditStamp",
3277
+ "name": "lastModified",
3278
+ "doc": "The time at which the note was last modified."
3279
+ }
3280
+ ]
3281
+ }
3282
+ ],
3283
+ "name": "note",
3284
+ "default": null,
3285
+ "doc": "An optional note to give technical owners more context about the assertion, and how to troubleshoot it.\nThe UI will render this in markdown format."
3261
3286
  }
3262
3287
  ],
3263
3288
  "doc": "Information about an assertion\n\nAcryl Only: Did you update AssertionWithoutAnnotations.pdl? If not, please update it."
@@ -16,7 +16,9 @@
16
16
  "type": {
17
17
  "type": "enum",
18
18
  "symbolDocs": {
19
+ "BROADCAST_ACTION_WORKFLOW_FORM_REQUEST_STATUS_CHANGE": "Broadcast that an action workflow form request has been completed (approved or denied).",
19
20
  "BROADCAST_ASSERTION_STATUS_CHANGE": "Assertion change notification template.",
21
+ "BROADCAST_NEW_ACTION_WORKFLOW_FORM_REQUEST": "Broadcast that a new action workflow form request has been created or needs review.",
20
22
  "BROADCAST_NEW_INCIDENT_UPDATE": "Updates the broadcasted incident if possible.",
21
23
  "CUSTOM": "Legacy template types to support backwards compatibility.",
22
24
  "OWNERSHIP_CHANGE": "Ownership change notification template."
@@ -35,6 +37,8 @@
35
37
  "BROADCAST_NEW_PROPOSAL",
36
38
  "BROADCAST_PROPOSAL_STATUS_CHANGE",
37
39
  "BROADCAST_COMPLIANCE_FORM_PUBLISH",
40
+ "BROADCAST_NEW_ACTION_WORKFLOW_FORM_REQUEST",
41
+ "BROADCAST_ACTION_WORKFLOW_FORM_REQUEST_STATUS_CHANGE",
38
42
  "INVALID_TEMPLATE"
39
43
  ],
40
44
  "doc": "Possible notification template types."
@@ -15,13 +15,6 @@
15
15
  "namespace": "com.linkedin.pegasus2avro.query",
16
16
  "fields": [
17
17
  {
18
- "Relationship": {
19
- "entityTypes": [
20
- "dataset",
21
- "schemaField"
22
- ],
23
- "name": "IsAssociatedWith"
24
- },
25
18
  "Searchable": {
26
19
  "fieldName": "entities",
27
20
  "fieldType": "URN"
@@ -32,11 +25,7 @@
32
25
  "type": "string",
33
26
  "name": "entity",
34
27
  "doc": "An entity which is the subject of a query.",
35
- "Urn": "Urn",
36
- "entityTypes": [
37
- "dataset",
38
- "schemaField"
39
- ]
28
+ "Urn": "Urn"
40
29
  }
41
30
  ],
42
31
  "doc": "A single subject of a particular query.\nIn the future, we may evolve this model to include richer details\nabout the Query Subject in relation to the query."
@@ -15,6 +15,7 @@
15
15
  "testResults",
16
16
  "deprecation",
17
17
  "subTypes",
18
+ "logicalParent",
18
19
  "schemaFieldProfile",
19
20
  "lineageFeatures"
20
21
  ]
@@ -80,6 +80,67 @@
80
80
  "name": "version",
81
81
  "default": null,
82
82
  "doc": "Aspect version\n Initial implementation will use the aspect version's number, however stored as\n a string in the case where a different aspect versioning scheme is later adopted."
83
+ },
84
+ {
85
+ "type": [
86
+ "null",
87
+ {
88
+ "type": "record",
89
+ "name": "AuditStamp",
90
+ "namespace": "com.linkedin.pegasus2avro.common",
91
+ "fields": [
92
+ {
93
+ "type": "long",
94
+ "name": "time",
95
+ "doc": "When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent."
96
+ },
97
+ {
98
+ "java": {
99
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
100
+ },
101
+ "type": "string",
102
+ "name": "actor",
103
+ "doc": "The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.",
104
+ "Urn": "Urn"
105
+ },
106
+ {
107
+ "java": {
108
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
109
+ },
110
+ "type": [
111
+ "null",
112
+ "string"
113
+ ],
114
+ "name": "impersonator",
115
+ "default": null,
116
+ "doc": "The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.",
117
+ "Urn": "Urn"
118
+ },
119
+ {
120
+ "type": [
121
+ "null",
122
+ "string"
123
+ ],
124
+ "name": "message",
125
+ "default": null,
126
+ "doc": "Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually."
127
+ }
128
+ ],
129
+ "doc": "Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage."
130
+ }
131
+ ],
132
+ "name": "aspectCreated",
133
+ "default": null,
134
+ "doc": "When the aspect was initially created and who created it, detected by version 0 -> 1 change"
135
+ },
136
+ {
137
+ "type": [
138
+ "null",
139
+ "com.linkedin.pegasus2avro.common.AuditStamp"
140
+ ],
141
+ "name": "aspectModified",
142
+ "default": null,
143
+ "doc": "When the aspect was last modified and the actor that performed the modification"
83
144
  }
84
145
  ],
85
146
  "doc": "Metadata associated with each metadata change that is processed by the system"
@@ -94,6 +94,7 @@
94
94
  "Searchable": {
95
95
  "fieldName": "upstreams",
96
96
  "fieldType": "URN",
97
+ "hasValuesFieldName": "hasUpstreams",
97
98
  "queryByDefault": false
98
99
  },
99
100
  "java": {
@@ -199,6 +200,14 @@
199
200
  "doc": "The type of upstream entity"
200
201
  },
201
202
  {
203
+ "Searchable": {
204
+ "/*": {
205
+ "fieldName": "fineGrainedUpstreams",
206
+ "fieldType": "URN",
207
+ "hasValuesFieldName": "hasFineGrainedUpstreams",
208
+ "queryByDefault": false
209
+ }
210
+ },
202
211
  "type": [
203
212
  "null",
204
213
  {
@@ -0,0 +1,49 @@
1
+ """
2
+ Assertion SDK module providing various assertion types for data quality monitoring.
3
+
4
+ This module provides classes for creating and managing different types of assertions:
5
+ - Column metric assertions (native and smart)
6
+ - Freshness assertions (native and smart)
7
+ - Volume assertions (native and smart)
8
+ - SQL assertions
9
+
10
+ Each assertion type has been split into separate files for better maintainability.
11
+ """
12
+
13
+ from acryl_datahub_cloud.sdk.assertion.assertion_base import (
14
+ AssertionMode,
15
+ _AssertionPublic,
16
+ _HasColumnMetricFunctionality,
17
+ _HasSchedule,
18
+ _HasSmartFunctionality,
19
+ )
20
+ from acryl_datahub_cloud.sdk.assertion.column_metric_assertion import (
21
+ ColumnMetricAssertion,
22
+ )
23
+ from acryl_datahub_cloud.sdk.assertion.freshness_assertion import FreshnessAssertion
24
+ from acryl_datahub_cloud.sdk.assertion.smart_column_metric_assertion import (
25
+ SmartColumnMetricAssertion,
26
+ )
27
+ from acryl_datahub_cloud.sdk.assertion.smart_freshness_assertion import (
28
+ SmartFreshnessAssertion,
29
+ )
30
+ from acryl_datahub_cloud.sdk.assertion.smart_volume_assertion import (
31
+ SmartVolumeAssertion,
32
+ )
33
+ from acryl_datahub_cloud.sdk.assertion.sql_assertion import SqlAssertion
34
+ from acryl_datahub_cloud.sdk.assertion.volume_assertion import VolumeAssertion
35
+
36
+ __all__ = [
37
+ "AssertionMode",
38
+ "_AssertionPublic",
39
+ "_HasColumnMetricFunctionality",
40
+ "_HasSchedule",
41
+ "_HasSmartFunctionality",
42
+ "ColumnMetricAssertion",
43
+ "FreshnessAssertion",
44
+ "SmartColumnMetricAssertion",
45
+ "SmartFreshnessAssertion",
46
+ "SmartVolumeAssertion",
47
+ "SqlAssertion",
48
+ "VolumeAssertion",
49
+ ]