acryl-datahub-cloud 0.3.7.9rc1__py3-none-any.whl → 0.3.8__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 (66) hide show
  1. acryl_datahub_cloud/_codegen_config.json +1 -1
  2. acryl_datahub_cloud/acryl_cs_issues/source.py +0 -1
  3. acryl_datahub_cloud/api/__init__.py +1 -0
  4. acryl_datahub_cloud/api/client.py +6 -0
  5. acryl_datahub_cloud/api/entity_versioning.py +167 -0
  6. acryl_datahub_cloud/datahub_metadata_sharing/__init__.py +0 -0
  7. acryl_datahub_cloud/datahub_metadata_sharing/metadata_sharing_source.py +267 -0
  8. acryl_datahub_cloud/datahub_metadata_sharing/query.py +7 -0
  9. acryl_datahub_cloud/datahub_metadata_sharing/scroll_shared_entities.gql +204 -0
  10. acryl_datahub_cloud/datahub_metadata_sharing/share_entity.gql +9 -0
  11. acryl_datahub_cloud/datahub_reporting/datahub_dataset.py +0 -2
  12. acryl_datahub_cloud/datahub_reporting/datahub_form_reporting.py +0 -1
  13. acryl_datahub_cloud/datahub_reporting/extract_graph.py +0 -1
  14. acryl_datahub_cloud/datahub_reporting/extract_sql.py +0 -1
  15. acryl_datahub_cloud/datahub_usage_reporting/query_builder.py +79 -57
  16. acryl_datahub_cloud/datahub_usage_reporting/usage_feature_reporter.py +284 -258
  17. acryl_datahub_cloud/lineage_features/source.py +22 -5
  18. acryl_datahub_cloud/metadata/_urns/urn_defs.py +1564 -1465
  19. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/common/__init__.py +6 -0
  20. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/executor/__init__.py +15 -0
  21. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/metadata/key/__init__.py +4 -0
  22. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/ml/metadata/__init__.py +2 -0
  23. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/versionset/__init__.py +17 -0
  24. acryl_datahub_cloud/metadata/schema.avsc +23777 -22729
  25. acryl_datahub_cloud/metadata/schema_classes.py +1322 -519
  26. acryl_datahub_cloud/metadata/schemas/AssertionAnalyticsRunEvent.avsc +1 -1
  27. acryl_datahub_cloud/metadata/schemas/AssertionInferenceDetails.avsc +1 -1
  28. acryl_datahub_cloud/metadata/schemas/AssertionInfo.avsc +1 -1
  29. acryl_datahub_cloud/metadata/schemas/AssertionRunEvent.avsc +1 -1
  30. acryl_datahub_cloud/metadata/schemas/ContainerKey.avsc +1 -0
  31. acryl_datahub_cloud/metadata/schemas/DataFlowKey.avsc +1 -0
  32. acryl_datahub_cloud/metadata/schemas/DataHubIngestionSourceInfo.avsc +6 -0
  33. acryl_datahub_cloud/metadata/schemas/DataHubViewInfo.avsc +2 -0
  34. acryl_datahub_cloud/metadata/schemas/DataJobKey.avsc +3 -1
  35. acryl_datahub_cloud/metadata/schemas/DataProcessInstanceKey.avsc +4 -0
  36. acryl_datahub_cloud/metadata/schemas/DataProcessInstanceOutput.avsc +2 -1
  37. acryl_datahub_cloud/metadata/schemas/DataTransformLogic.avsc +63 -0
  38. acryl_datahub_cloud/metadata/schemas/DatasetKey.avsc +2 -1
  39. acryl_datahub_cloud/metadata/schemas/Deprecation.avsc +12 -0
  40. acryl_datahub_cloud/metadata/schemas/DynamicFormAssignment.avsc +2 -0
  41. acryl_datahub_cloud/metadata/schemas/EntityTypeKey.avsc +1 -0
  42. acryl_datahub_cloud/metadata/schemas/ExecutionRequestInput.avsc +9 -0
  43. acryl_datahub_cloud/metadata/schemas/ExecutionRequestResult.avsc +14 -0
  44. acryl_datahub_cloud/metadata/schemas/Filter.avsc +2 -0
  45. acryl_datahub_cloud/metadata/schemas/MLFeatureProperties.avsc +51 -0
  46. acryl_datahub_cloud/metadata/schemas/MLModelDeploymentProperties.avsc +51 -0
  47. acryl_datahub_cloud/metadata/schemas/MLModelGroupProperties.avsc +155 -0
  48. acryl_datahub_cloud/metadata/schemas/MLModelKey.avsc +2 -1
  49. acryl_datahub_cloud/metadata/schemas/MLModelProperties.avsc +155 -47
  50. acryl_datahub_cloud/metadata/schemas/MLPrimaryKeyProperties.avsc +51 -0
  51. acryl_datahub_cloud/metadata/schemas/MLTrainingRunProperties.avsc +171 -0
  52. acryl_datahub_cloud/metadata/schemas/MetadataChangeEvent.avsc +178 -47
  53. acryl_datahub_cloud/metadata/schemas/MonitorInfo.avsc +10 -1
  54. acryl_datahub_cloud/metadata/schemas/PostInfo.avsc +23 -0
  55. acryl_datahub_cloud/metadata/schemas/RecommendationModule.avsc +2 -0
  56. acryl_datahub_cloud/metadata/schemas/RemoteExecutorKey.avsc +21 -0
  57. acryl_datahub_cloud/metadata/schemas/RemoteExecutorStatus.avsc +80 -0
  58. acryl_datahub_cloud/metadata/schemas/SchemaFieldKey.avsc +2 -1
  59. acryl_datahub_cloud/metadata/schemas/VersionProperties.avsc +216 -0
  60. acryl_datahub_cloud/metadata/schemas/VersionSetKey.avsc +26 -0
  61. acryl_datahub_cloud/metadata/schemas/VersionSetProperties.avsc +49 -0
  62. {acryl_datahub_cloud-0.3.7.9rc1.dist-info → acryl_datahub_cloud-0.3.8.dist-info}/METADATA +57 -47
  63. {acryl_datahub_cloud-0.3.7.9rc1.dist-info → acryl_datahub_cloud-0.3.8.dist-info}/RECORD +66 -49
  64. {acryl_datahub_cloud-0.3.7.9rc1.dist-info → acryl_datahub_cloud-0.3.8.dist-info}/WHEEL +1 -1
  65. {acryl_datahub_cloud-0.3.7.9rc1.dist-info → acryl_datahub_cloud-0.3.8.dist-info}/entry_points.txt +1 -0
  66. {acryl_datahub_cloud-0.3.7.9rc1.dist-info → acryl_datahub_cloud-0.3.8.dist-info}/top_level.txt +0 -0
@@ -37,6 +37,66 @@
37
37
  "default": null,
38
38
  "doc": "URL where the reference exist"
39
39
  },
40
+ {
41
+ "Relationship": {
42
+ "/*": {
43
+ "entityTypes": [
44
+ "dataJob",
45
+ "dataProcessInstance"
46
+ ],
47
+ "isLineage": true,
48
+ "name": "TrainedBy"
49
+ }
50
+ },
51
+ "type": [
52
+ "null",
53
+ {
54
+ "type": "array",
55
+ "items": "string"
56
+ }
57
+ ],
58
+ "name": "trainingJobs",
59
+ "default": null,
60
+ "doc": "List of jobs or process instances (if any) used to train the model or group. Visible in Lineage. Note that ML Models can also be specified as the output of a specific Data Process Instances (runs) via the DataProcessInstanceOutputs aspect."
61
+ },
62
+ {
63
+ "Relationship": {
64
+ "/*": {
65
+ "entityTypes": [
66
+ "dataJob",
67
+ "dataProcessInstance"
68
+ ],
69
+ "isLineage": true,
70
+ "isUpstream": false,
71
+ "name": "UsedBy"
72
+ }
73
+ },
74
+ "type": [
75
+ "null",
76
+ {
77
+ "type": "array",
78
+ "items": "string"
79
+ }
80
+ ],
81
+ "name": "downstreamJobs",
82
+ "default": null,
83
+ "doc": "List of jobs or process instances (if any) that use the model or group."
84
+ },
85
+ {
86
+ "Searchable": {
87
+ "boostScore": 10.0,
88
+ "enableAutocomplete": true,
89
+ "fieldType": "WORD_GRAM",
90
+ "queryByDefault": true
91
+ },
92
+ "type": [
93
+ "null",
94
+ "string"
95
+ ],
96
+ "name": "name",
97
+ "default": null,
98
+ "doc": "Display name of the MLModel"
99
+ },
40
100
  {
41
101
  "Searchable": {
42
102
  "fieldType": "TEXT",
@@ -51,6 +111,7 @@
51
111
  "doc": "Documentation of the MLModel"
52
112
  },
53
113
  {
114
+ "deprecated": true,
54
115
  "type": [
55
116
  "null",
56
117
  "long"
@@ -59,6 +120,49 @@
59
120
  "default": null,
60
121
  "doc": "Date when the MLModel was developed"
61
122
  },
123
+ {
124
+ "type": [
125
+ "null",
126
+ {
127
+ "type": "record",
128
+ "name": "TimeStamp",
129
+ "namespace": "com.linkedin.pegasus2avro.common",
130
+ "fields": [
131
+ {
132
+ "type": "long",
133
+ "name": "time",
134
+ "doc": "When did the event occur"
135
+ },
136
+ {
137
+ "java": {
138
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
139
+ },
140
+ "type": [
141
+ "null",
142
+ "string"
143
+ ],
144
+ "name": "actor",
145
+ "default": null,
146
+ "doc": "Optional: The actor urn involved in the event.",
147
+ "Urn": "Urn"
148
+ }
149
+ ],
150
+ "doc": "A standard event timestamp"
151
+ }
152
+ ],
153
+ "name": "created",
154
+ "default": null,
155
+ "doc": "Audit stamp containing who created this and when"
156
+ },
157
+ {
158
+ "type": [
159
+ "null",
160
+ "com.linkedin.pegasus2avro.common.TimeStamp"
161
+ ],
162
+ "name": "lastModified",
163
+ "default": null,
164
+ "doc": "Date when the MLModel was last modified"
165
+ },
62
166
  {
63
167
  "type": [
64
168
  "null",
@@ -74,6 +178,57 @@
74
178
  ],
75
179
  "name": "versionTag",
76
180
  "default": null
181
+ },
182
+ {
183
+ "type": [
184
+ "null",
185
+ {
186
+ "type": "record",
187
+ "name": "MetadataAttribution",
188
+ "namespace": "com.linkedin.pegasus2avro.common",
189
+ "fields": [
190
+ {
191
+ "type": "long",
192
+ "name": "time",
193
+ "doc": "When this metadata was updated."
194
+ },
195
+ {
196
+ "java": {
197
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
198
+ },
199
+ "type": "string",
200
+ "name": "actor",
201
+ "doc": "The entity (e.g. a member URN) responsible for applying the assocated metadata. This can\neither be a user (in case of UI edits) or the datahub system for automation.",
202
+ "Urn": "Urn"
203
+ },
204
+ {
205
+ "java": {
206
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
207
+ },
208
+ "type": [
209
+ "null",
210
+ "string"
211
+ ],
212
+ "name": "source",
213
+ "default": null,
214
+ "doc": "The DataHub source responsible for applying the associated metadata. This will only be filled out\nwhen a DataHub source is responsible. This includes the specific metadata test urn, the automation urn.",
215
+ "Urn": "Urn"
216
+ },
217
+ {
218
+ "type": {
219
+ "type": "map",
220
+ "values": "string"
221
+ },
222
+ "name": "sourceDetail",
223
+ "default": {},
224
+ "doc": "The details associated with why this metadata was applied. For example, this could include\nthe actual regex rule, sql statement, ingestion pipeline ID, etc.\nAlso can include flags like 'propagated'=true or 'inferred'=true."
225
+ }
226
+ ],
227
+ "doc": "Information about who, why, and how this metadata was applied"
228
+ }
229
+ ],
230
+ "name": "metadataAttribution",
231
+ "default": null
77
232
  }
78
233
  ],
79
234
  "doc": "A resource-defined string representing the resource state for the purpose of concurrency control"
@@ -287,53 +442,6 @@
287
442
  "Urn": "Urn",
288
443
  "urn_is_array": true
289
444
  },
290
- {
291
- "Relationship": {
292
- "/*": {
293
- "entityTypes": [
294
- "dataJob"
295
- ],
296
- "isLineage": true,
297
- "name": "TrainedBy"
298
- }
299
- },
300
- "type": [
301
- "null",
302
- {
303
- "type": "array",
304
- "items": "string"
305
- }
306
- ],
307
- "name": "trainingJobs",
308
- "default": null,
309
- "doc": "List of jobs (if any) used to train the model",
310
- "Urn": "Urn",
311
- "urn_is_array": true
312
- },
313
- {
314
- "Relationship": {
315
- "/*": {
316
- "entityTypes": [
317
- "dataJob"
318
- ],
319
- "isLineage": true,
320
- "isUpstream": false,
321
- "name": "UsedBy"
322
- }
323
- },
324
- "type": [
325
- "null",
326
- {
327
- "type": "array",
328
- "items": "string"
329
- }
330
- ],
331
- "name": "downstreamJobs",
332
- "default": null,
333
- "doc": "List of jobs (if any) that use the model",
334
- "Urn": "Urn",
335
- "urn_is_array": true
336
- },
337
445
  {
338
446
  "Relationship": {
339
447
  "/*": {
@@ -101,6 +101,57 @@
101
101
  ],
102
102
  "name": "versionTag",
103
103
  "default": null
104
+ },
105
+ {
106
+ "type": [
107
+ "null",
108
+ {
109
+ "type": "record",
110
+ "name": "MetadataAttribution",
111
+ "namespace": "com.linkedin.pegasus2avro.common",
112
+ "fields": [
113
+ {
114
+ "type": "long",
115
+ "name": "time",
116
+ "doc": "When this metadata was updated."
117
+ },
118
+ {
119
+ "java": {
120
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
121
+ },
122
+ "type": "string",
123
+ "name": "actor",
124
+ "doc": "The entity (e.g. a member URN) responsible for applying the assocated metadata. This can\neither be a user (in case of UI edits) or the datahub system for automation.",
125
+ "Urn": "Urn"
126
+ },
127
+ {
128
+ "java": {
129
+ "class": "com.linkedin.pegasus2avro.common.urn.Urn"
130
+ },
131
+ "type": [
132
+ "null",
133
+ "string"
134
+ ],
135
+ "name": "source",
136
+ "default": null,
137
+ "doc": "The DataHub source responsible for applying the associated metadata. This will only be filled out\nwhen a DataHub source is responsible. This includes the specific metadata test urn, the automation urn.",
138
+ "Urn": "Urn"
139
+ },
140
+ {
141
+ "type": {
142
+ "type": "map",
143
+ "values": "string"
144
+ },
145
+ "name": "sourceDetail",
146
+ "default": {},
147
+ "doc": "The details associated with why this metadata was applied. For example, this could include\nthe actual regex rule, sql statement, ingestion pipeline ID, etc.\nAlso can include flags like 'propagated'=true or 'inferred'=true."
148
+ }
149
+ ],
150
+ "doc": "Information about who, why, and how this metadata was applied"
151
+ }
152
+ ],
153
+ "name": "metadataAttribution",
154
+ "default": null
104
155
  }
105
156
  ],
106
157
  "doc": "A resource-defined string representing the resource state for the purpose of concurrency control"
@@ -0,0 +1,171 @@
1
+ {
2
+ "type": "record",
3
+ "Aspect": {
4
+ "name": "mlTrainingRunProperties"
5
+ },
6
+ "name": "MLTrainingRunProperties",
7
+ "namespace": "com.linkedin.pegasus2avro.ml.metadata",
8
+ "fields": [
9
+ {
10
+ "Searchable": {
11
+ "/*": {
12
+ "fieldType": "TEXT",
13
+ "queryByDefault": true
14
+ }
15
+ },
16
+ "type": {
17
+ "type": "map",
18
+ "values": "string"
19
+ },
20
+ "name": "customProperties",
21
+ "default": {},
22
+ "doc": "Custom property bag."
23
+ },
24
+ {
25
+ "Searchable": {
26
+ "fieldType": "KEYWORD"
27
+ },
28
+ "java": {
29
+ "class": "com.linkedin.pegasus2avro.common.url.Url",
30
+ "coercerClass": "com.linkedin.pegasus2avro.common.url.UrlCoercer"
31
+ },
32
+ "type": [
33
+ "null",
34
+ "string"
35
+ ],
36
+ "name": "externalUrl",
37
+ "default": null,
38
+ "doc": "URL where the reference exist"
39
+ },
40
+ {
41
+ "type": [
42
+ "null",
43
+ "string"
44
+ ],
45
+ "name": "id",
46
+ "default": null,
47
+ "doc": "Run Id of the ML Training Run"
48
+ },
49
+ {
50
+ "type": [
51
+ "null",
52
+ {
53
+ "type": "array",
54
+ "items": "string"
55
+ }
56
+ ],
57
+ "name": "outputUrls",
58
+ "default": null,
59
+ "doc": "List of URLs for the Outputs of the ML Training Run"
60
+ },
61
+ {
62
+ "type": [
63
+ "null",
64
+ {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "record",
68
+ "Aspect": {
69
+ "name": "mlHyperParam"
70
+ },
71
+ "name": "MLHyperParam",
72
+ "namespace": "com.linkedin.pegasus2avro.ml.metadata",
73
+ "fields": [
74
+ {
75
+ "type": "string",
76
+ "name": "name",
77
+ "doc": "Name of the MLHyperParam"
78
+ },
79
+ {
80
+ "type": [
81
+ "null",
82
+ "string"
83
+ ],
84
+ "name": "description",
85
+ "default": null,
86
+ "doc": "Documentation of the MLHyperParam"
87
+ },
88
+ {
89
+ "type": [
90
+ "null",
91
+ "string"
92
+ ],
93
+ "name": "value",
94
+ "default": null,
95
+ "doc": "The value of the MLHyperParam"
96
+ },
97
+ {
98
+ "type": [
99
+ "null",
100
+ "long"
101
+ ],
102
+ "name": "createdAt",
103
+ "default": null,
104
+ "doc": "Date when the MLHyperParam was developed"
105
+ }
106
+ ],
107
+ "doc": "Properties associated with an ML Hyper Param"
108
+ }
109
+ }
110
+ ],
111
+ "name": "hyperParams",
112
+ "default": null,
113
+ "doc": "Hyperparameters of the ML Training Run"
114
+ },
115
+ {
116
+ "type": [
117
+ "null",
118
+ {
119
+ "type": "array",
120
+ "items": {
121
+ "type": "record",
122
+ "Aspect": {
123
+ "name": "mlMetric"
124
+ },
125
+ "name": "MLMetric",
126
+ "namespace": "com.linkedin.pegasus2avro.ml.metadata",
127
+ "fields": [
128
+ {
129
+ "type": "string",
130
+ "name": "name",
131
+ "doc": "Name of the mlMetric"
132
+ },
133
+ {
134
+ "type": [
135
+ "null",
136
+ "string"
137
+ ],
138
+ "name": "description",
139
+ "default": null,
140
+ "doc": "Documentation of the mlMetric"
141
+ },
142
+ {
143
+ "type": [
144
+ "null",
145
+ "string"
146
+ ],
147
+ "name": "value",
148
+ "default": null,
149
+ "doc": "The value of the mlMetric"
150
+ },
151
+ {
152
+ "type": [
153
+ "null",
154
+ "long"
155
+ ],
156
+ "name": "createdAt",
157
+ "default": null,
158
+ "doc": "Date when the mlMetric was developed"
159
+ }
160
+ ],
161
+ "doc": "Properties associated with an ML Metric"
162
+ }
163
+ }
164
+ ],
165
+ "name": "trainingMetrics",
166
+ "default": null,
167
+ "doc": "Metrics of the ML Training Run"
168
+ }
169
+ ],
170
+ "doc": "The inputs and outputs of this training run"
171
+ }