datahub-agent-context 1.3.1.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.
Files changed (34) hide show
  1. datahub_agent_context/__init__.py +25 -0
  2. datahub_agent_context/_version.py +16 -0
  3. datahub_agent_context/context.py +97 -0
  4. datahub_agent_context/langchain_tools/__init__.py +8 -0
  5. datahub_agent_context/langchain_tools/builder.py +127 -0
  6. datahub_agent_context/mcp_tools/__init__.py +46 -0
  7. datahub_agent_context/mcp_tools/_token_estimator.py +71 -0
  8. datahub_agent_context/mcp_tools/base.py +325 -0
  9. datahub_agent_context/mcp_tools/descriptions.py +299 -0
  10. datahub_agent_context/mcp_tools/documents.py +473 -0
  11. datahub_agent_context/mcp_tools/domains.py +246 -0
  12. datahub_agent_context/mcp_tools/entities.py +349 -0
  13. datahub_agent_context/mcp_tools/get_me.py +99 -0
  14. datahub_agent_context/mcp_tools/gql/__init__.py +13 -0
  15. datahub_agent_context/mcp_tools/gql/document_search.gql +114 -0
  16. datahub_agent_context/mcp_tools/gql/document_semantic_search.gql +111 -0
  17. datahub_agent_context/mcp_tools/gql/entity_details.gql +1682 -0
  18. datahub_agent_context/mcp_tools/gql/queries.gql +51 -0
  19. datahub_agent_context/mcp_tools/gql/query_entity.gql +37 -0
  20. datahub_agent_context/mcp_tools/gql/read_documents.gql +16 -0
  21. datahub_agent_context/mcp_tools/gql/search.gql +242 -0
  22. datahub_agent_context/mcp_tools/helpers.py +448 -0
  23. datahub_agent_context/mcp_tools/lineage.py +698 -0
  24. datahub_agent_context/mcp_tools/owners.py +318 -0
  25. datahub_agent_context/mcp_tools/queries.py +191 -0
  26. datahub_agent_context/mcp_tools/search.py +239 -0
  27. datahub_agent_context/mcp_tools/structured_properties.py +447 -0
  28. datahub_agent_context/mcp_tools/tags.py +296 -0
  29. datahub_agent_context/mcp_tools/terms.py +295 -0
  30. datahub_agent_context/py.typed +2 -0
  31. datahub_agent_context-1.3.1.8.dist-info/METADATA +233 -0
  32. datahub_agent_context-1.3.1.8.dist-info/RECORD +34 -0
  33. datahub_agent_context-1.3.1.8.dist-info/WHEEL +5 -0
  34. datahub_agent_context-1.3.1.8.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1682 @@
1
+ fragment platformFields on DataPlatform {
2
+ urn
3
+ name
4
+ __typename
5
+ }
6
+
7
+ fragment globalTagsFields on GlobalTags {
8
+ tags {
9
+ tag {
10
+ urn
11
+ properties {
12
+ name
13
+ description
14
+ __typename
15
+ }
16
+ __typename
17
+ }
18
+ __typename
19
+ }
20
+ __typename
21
+ }
22
+
23
+ fragment ownershipFields on Ownership {
24
+ owners {
25
+ owner {
26
+ ... on CorpUser {
27
+ urn
28
+ properties {
29
+ active
30
+ displayName
31
+ title
32
+ email
33
+ __typename
34
+ }
35
+ editableProperties {
36
+ displayName
37
+ title
38
+ email
39
+ __typename
40
+ }
41
+ __typename
42
+ }
43
+ ... on CorpGroup {
44
+ urn
45
+ name
46
+ properties {
47
+ displayName
48
+ email
49
+ __typename
50
+ }
51
+ info {
52
+ displayName
53
+ email
54
+ admins {
55
+ urn
56
+ info {
57
+ active
58
+ displayName
59
+ title
60
+ email
61
+ __typename
62
+ }
63
+ editableInfo {
64
+ teams
65
+ skills
66
+ __typename
67
+ }
68
+ __typename
69
+ }
70
+ members {
71
+ urn
72
+ properties {
73
+ active
74
+ displayName
75
+ title
76
+ email
77
+ __typename
78
+ }
79
+ editableInfo {
80
+ teams
81
+ skills
82
+ __typename
83
+ }
84
+ __typename
85
+ }
86
+ groups
87
+ __typename
88
+ }
89
+ __typename
90
+ }
91
+ __typename
92
+ }
93
+ type
94
+ ownershipType {
95
+ urn
96
+ type
97
+ info {
98
+ name
99
+ description
100
+ __typename
101
+ }
102
+ status {
103
+ removed
104
+ __typename
105
+ }
106
+ __typename
107
+ }
108
+ __typename
109
+ }
110
+ __typename
111
+ }
112
+ fragment nonRecursiveDataFlowFields on DataFlow {
113
+ urn
114
+ orchestrator
115
+ flowId
116
+ cluster
117
+ properties {
118
+ name
119
+ description
120
+ project
121
+ externalUrl
122
+ customProperties {
123
+ key
124
+ value
125
+ __typename
126
+ }
127
+ __typename
128
+ }
129
+ editableProperties {
130
+ description
131
+ __typename
132
+ }
133
+ documentation { #[CLOUD]
134
+ #[CLOUD]
135
+ ...documentationFields #[CLOUD]
136
+ __typename #[CLOUD]
137
+ } #[CLOUD]
138
+ ownership {
139
+ ...ownershipFields
140
+ __typename
141
+ }
142
+ platform {
143
+ ...platformFields
144
+ __typename
145
+ }
146
+ domain {
147
+ ...entityDomain
148
+ __typename
149
+ }
150
+ ...entityDataProduct
151
+ deprecation {
152
+ ...deprecationFields
153
+ __typename
154
+ }
155
+ __typename
156
+ }
157
+
158
+ fragment parentNodesFields on ParentNodesResult {
159
+ count
160
+ nodes {
161
+ urn
162
+ properties {
163
+ name
164
+ __typename
165
+ }
166
+ displayProperties {
167
+ ...displayPropertiesFields
168
+ __typename
169
+ }
170
+ __typename
171
+ }
172
+ __typename
173
+ }
174
+ fragment glossaryTerm on GlossaryTerm {
175
+ urn
176
+ hierarchicalName
177
+ properties {
178
+ name
179
+ description
180
+ termSource
181
+ customProperties {
182
+ key
183
+ value
184
+ __typename
185
+ }
186
+ __typename
187
+ }
188
+ ownership {
189
+ ...ownershipFields
190
+ __typename
191
+ }
192
+ parentNodes {
193
+ ...parentNodesFields
194
+ __typename
195
+ }
196
+ __typename
197
+ }
198
+
199
+ # Note: This fragment references ownershipFields and parentNodesFields fragments
200
+ fragment glossaryTerms on GlossaryTerms {
201
+ terms {
202
+ term {
203
+ ...glossaryTerm
204
+ __typename
205
+ }
206
+ actor {
207
+ urn
208
+ __typename
209
+ }
210
+ context #[CLOUD]
211
+ __typename
212
+ }
213
+ __typename
214
+ }
215
+ fragment displayPropertiesFields on DisplayProperties {
216
+ icon {
217
+ name
218
+ style
219
+ iconLibrary
220
+ __typename
221
+ }
222
+ __typename
223
+ }
224
+
225
+ fragment entityDomain on DomainAssociation {
226
+ domain {
227
+ urn
228
+ properties {
229
+ name
230
+ description
231
+ __typename
232
+ }
233
+ parentDomains {
234
+ ...parentDomainsFields
235
+ __typename
236
+ }
237
+ ...domainEntitiesFields
238
+ displayProperties {
239
+ ...displayPropertiesFields
240
+ __typename
241
+ }
242
+ __typename
243
+ }
244
+ __typename
245
+ }
246
+
247
+ fragment entityDataProduct on Entity {
248
+ dataProduct: relationships(
249
+ input: {
250
+ types: ["DataProductContains"]
251
+ direction: INCOMING
252
+ start: 0
253
+ count: 1
254
+ }
255
+ ) {
256
+ relationships {
257
+ type
258
+ entity {
259
+ urn
260
+ type
261
+ ... on DataProduct {
262
+ properties {
263
+ name
264
+ description
265
+ __typename
266
+ }
267
+ domain {
268
+ ...entityDomain
269
+ __typename
270
+ }
271
+ __typename
272
+ }
273
+ __typename
274
+ }
275
+ __typename
276
+ }
277
+ __typename
278
+ }
279
+ __typename
280
+ }
281
+ fragment deprecationFields on Deprecation {
282
+ actor
283
+ deprecated
284
+ note
285
+ decommissionTime
286
+ actorEntity {
287
+ urn
288
+ type
289
+ ...entityDisplayNameFields
290
+ __typename
291
+ }
292
+ __typename
293
+ }
294
+
295
+ fragment entityDisplayNameFields on Entity {
296
+ urn
297
+ ... on Dataset {
298
+ properties {
299
+ name
300
+ qualifiedName
301
+ __typename
302
+ }
303
+ __typename
304
+ }
305
+ ... on CorpUser {
306
+ properties {
307
+ displayName
308
+ title
309
+ email
310
+ __typename
311
+ }
312
+ __typename
313
+ }
314
+ ... on CorpGroup {
315
+ properties {
316
+ displayName
317
+ __typename
318
+ }
319
+ __typename
320
+ }
321
+ ... on Dashboard {
322
+ properties {
323
+ name
324
+ __typename
325
+ }
326
+ __typename
327
+ }
328
+ ... on Chart {
329
+ properties {
330
+ name
331
+ __typename
332
+ }
333
+ __typename
334
+ }
335
+ ... on DataFlow {
336
+ properties {
337
+ name
338
+ __typename
339
+ }
340
+ __typename
341
+ }
342
+ ... on DataJob {
343
+ properties {
344
+ name
345
+ __typename
346
+ }
347
+ __typename
348
+ }
349
+ ... on GlossaryTerm {
350
+ hierarchicalName
351
+ properties {
352
+ name
353
+ __typename
354
+ }
355
+ __typename
356
+ }
357
+ ... on GlossaryNode {
358
+ properties {
359
+ name
360
+ description
361
+ __typename
362
+ }
363
+ __typename
364
+ }
365
+ ... on Domain {
366
+ properties {
367
+ name
368
+ __typename
369
+ }
370
+ __typename
371
+ }
372
+ ... on Container {
373
+ properties {
374
+ name
375
+ __typename
376
+ }
377
+ __typename
378
+ }
379
+ ... on MLFeatureTable {
380
+ name
381
+ __typename
382
+ }
383
+ ... on MLFeature {
384
+ name
385
+ __typename
386
+ }
387
+ ... on MLPrimaryKey {
388
+ name
389
+ __typename
390
+ }
391
+ ... on MLModel {
392
+ name
393
+ __typename
394
+ }
395
+ ... on MLModelGroup {
396
+ name
397
+ __typename
398
+ }
399
+ ... on Tag {
400
+ properties {
401
+ name
402
+ __typename
403
+ }
404
+ __typename
405
+ }
406
+ ... on DataPlatform {
407
+ ...nonConflictingPlatformFields
408
+ __typename
409
+ }
410
+ ... on DataProduct {
411
+ properties {
412
+ name
413
+ __typename
414
+ }
415
+ __typename
416
+ }
417
+ ... on DataPlatformInstance {
418
+ instanceId
419
+ __typename
420
+ }
421
+ ... on Document { #[NEWER_GMS]
422
+ info { #[NEWER_GMS]
423
+ title #[NEWER_GMS]
424
+ __typename #[NEWER_GMS]
425
+ } #[NEWER_GMS]
426
+ __typename #[NEWER_GMS]
427
+ } #[NEWER_GMS]
428
+ __typename
429
+ }
430
+
431
+ fragment nonConflictingPlatformFields on DataPlatform {
432
+ urn
433
+ name
434
+ properties {
435
+ displayName
436
+ datasetNameDelimiter
437
+ __typename
438
+ }
439
+ __typename
440
+ }
441
+
442
+ fragment entityHealth on Health {
443
+ type
444
+ status
445
+ message
446
+ causes
447
+ __typename
448
+ }
449
+
450
+ fragment domainEntitiesFields on Domain {
451
+ entities(
452
+ input: {
453
+ start: 0
454
+ count: 0
455
+ filters: [
456
+ {
457
+ field: "_entityType"
458
+ negated: true
459
+ values: ["DATA_PRODUCT", "DOMAIN"]
460
+ }
461
+ ]
462
+ }
463
+ ) {
464
+ total
465
+ __typename
466
+ }
467
+ dataProducts: entities(
468
+ input: {
469
+ start: 0
470
+ count: 0
471
+ filters: [{ field: "_entityType", values: ["DATA_PRODUCT"] }]
472
+ }
473
+ ) {
474
+ total
475
+ __typename
476
+ }
477
+ children: relationships(
478
+ input: { types: ["IsPartOf"], direction: INCOMING, start: 0, count: 0 }
479
+ ) {
480
+ total
481
+ __typename
482
+ }
483
+ __typename
484
+ }
485
+
486
+ fragment parentDomainsFields on ParentDomainsResult {
487
+ count
488
+ domains {
489
+ urn
490
+ type
491
+ ... on Domain {
492
+ displayProperties {
493
+ ...displayPropertiesFields
494
+ __typename
495
+ }
496
+ properties {
497
+ name
498
+ description
499
+ __typename
500
+ }
501
+ __typename
502
+ }
503
+ __typename
504
+ }
505
+ __typename
506
+ }
507
+
508
+ fragment entityPreview on Entity {
509
+ urn
510
+ ... on Dataset {
511
+ name
512
+ platform {
513
+ ...platformFields
514
+ }
515
+ editableProperties {
516
+ name
517
+ description
518
+ }
519
+ properties {
520
+ name
521
+ description
522
+ customProperties {
523
+ key
524
+ value
525
+ }
526
+ }
527
+ ownership {
528
+ ...ownershipFields
529
+ }
530
+ tags {
531
+ ...globalTagsFields
532
+ }
533
+ glossaryTerms {
534
+ ...glossaryTerms
535
+ }
536
+ structuredProperties {
537
+ properties {
538
+ ...structuredPropertiesFields
539
+ }
540
+ }
541
+ subTypes {
542
+ typeNames
543
+ }
544
+ domain {
545
+ ...entityDomain
546
+ }
547
+ ...entityDataProduct
548
+ deprecation {
549
+ ...deprecationFields
550
+ }
551
+ health {
552
+ ...entityHealth
553
+ }
554
+ statsSummary { #[CLOUD]
555
+ queryCountLast30Days #[CLOUD]
556
+ queryCountPercentileLast30Days #[CLOUD]
557
+ queryCountRankLast30Days #[CLOUD]
558
+ uniqueUserCountLast30Days #[CLOUD]
559
+ uniqueUserPercentileLast30Days #[CLOUD]
560
+ uniqueUserRankLast30Days #[CLOUD]
561
+ updateCountLast30Days #[CLOUD]
562
+ updateCountPercentileLast30Days #[CLOUD]
563
+ rowCount #[CLOUD]
564
+ rowCountPercentile #[CLOUD]
565
+ sizeInBytes #[CLOUD]
566
+ sizeInBytesPercentile #[CLOUD]
567
+ topUsersLast30Days { #[CLOUD]
568
+ urn #[CLOUD]
569
+ properties { #[CLOUD]
570
+ active #[CLOUD]
571
+ displayName #[CLOUD]
572
+ email #[CLOUD]
573
+ title #[CLOUD]
574
+ } #[CLOUD]
575
+ editableProperties { #[CLOUD]
576
+ displayName #[CLOUD]
577
+ title #[CLOUD]
578
+ } #[CLOUD]
579
+ } #[CLOUD]
580
+ } #[CLOUD]
581
+ }
582
+ ... on CorpUser {
583
+ properties {
584
+ active
585
+ displayName
586
+ email
587
+ title
588
+ }
589
+ editableProperties {
590
+ displayName
591
+ title
592
+ }
593
+ }
594
+ ... on CorpGroup {
595
+ name
596
+ properties {
597
+ displayName
598
+ description
599
+ }
600
+ memberCount: relationships(
601
+ input: {
602
+ types: ["IsMemberOfGroup", "IsMemberOfNativeGroup"]
603
+ direction: INCOMING
604
+ start: 0
605
+ count: 1
606
+ }
607
+ ) {
608
+ total
609
+ }
610
+ }
611
+ ... on Dashboard {
612
+ urn
613
+ type
614
+ tool
615
+ dashboardId
616
+ properties {
617
+ name
618
+ description
619
+ externalUrl
620
+ access
621
+ lastModified {
622
+ time
623
+ }
624
+ }
625
+ ownership {
626
+ ...ownershipFields
627
+ }
628
+ tags {
629
+ ...globalTagsFields
630
+ }
631
+ glossaryTerms {
632
+ ...glossaryTerms
633
+ }
634
+ structuredProperties {
635
+ properties {
636
+ ...structuredPropertiesFields
637
+ }
638
+ }
639
+ editableProperties {
640
+ description
641
+ }
642
+ platform {
643
+ ...platformFields
644
+ }
645
+ domain {
646
+ ...entityDomain
647
+ }
648
+ ...entityDataProduct
649
+ deprecation {
650
+ ...deprecationFields
651
+ }
652
+ subTypes {
653
+ typeNames
654
+ }
655
+ health {
656
+ ...entityHealth
657
+ }
658
+ }
659
+ ... on Chart {
660
+ urn
661
+ type
662
+ tool
663
+ chartId
664
+ properties {
665
+ name
666
+ description
667
+ externalUrl
668
+ type
669
+ access
670
+ lastModified {
671
+ time
672
+ }
673
+ }
674
+ ownership {
675
+ ...ownershipFields
676
+ }
677
+ tags {
678
+ ...globalTagsFields
679
+ }
680
+ glossaryTerms {
681
+ ...glossaryTerms
682
+ }
683
+ structuredProperties {
684
+ properties {
685
+ ...structuredPropertiesFields
686
+ }
687
+ }
688
+ editableProperties {
689
+ description
690
+ }
691
+ platform {
692
+ ...platformFields
693
+ }
694
+ domain {
695
+ ...entityDomain
696
+ }
697
+ ...entityDataProduct
698
+ deprecation {
699
+ ...deprecationFields
700
+ }
701
+ subTypes {
702
+ typeNames
703
+ }
704
+ health {
705
+ ...entityHealth
706
+ }
707
+ }
708
+ ... on DataFlow {
709
+ urn
710
+ type
711
+ orchestrator
712
+ flowId
713
+ cluster
714
+ properties {
715
+ name
716
+ description
717
+ project
718
+ }
719
+ ownership {
720
+ ...ownershipFields
721
+ }
722
+ tags {
723
+ ...globalTagsFields
724
+ }
725
+ glossaryTerms {
726
+ ...glossaryTerms
727
+ }
728
+ structuredProperties {
729
+ properties {
730
+ ...structuredPropertiesFields
731
+ }
732
+ }
733
+ editableProperties {
734
+ description
735
+ }
736
+ platform {
737
+ ...platformFields
738
+ }
739
+ domain {
740
+ ...entityDomain
741
+ }
742
+ ...entityDataProduct
743
+ deprecation {
744
+ ...deprecationFields
745
+ }
746
+ health {
747
+ ...entityHealth
748
+ }
749
+ }
750
+ ... on DataJob {
751
+ urn
752
+ type
753
+ dataFlow {
754
+ ...nonRecursiveDataFlowFields
755
+ }
756
+ jobId
757
+ ownership {
758
+ ...ownershipFields
759
+ }
760
+ properties {
761
+ name
762
+ description
763
+ }
764
+ tags {
765
+ ...globalTagsFields
766
+ }
767
+ glossaryTerms {
768
+ ...glossaryTerms
769
+ }
770
+ structuredProperties {
771
+ properties {
772
+ ...structuredPropertiesFields
773
+ }
774
+ }
775
+ editableProperties {
776
+ description
777
+ }
778
+ domain {
779
+ ...entityDomain
780
+ }
781
+ ...entityDataProduct
782
+ deprecation {
783
+ ...deprecationFields
784
+ }
785
+ subTypes {
786
+ typeNames
787
+ }
788
+ health {
789
+ ...entityHealth
790
+ }
791
+ }
792
+ ... on GlossaryTerm {
793
+ hierarchicalName
794
+ properties {
795
+ name
796
+ description
797
+ termSource
798
+ sourceRef
799
+ sourceUrl
800
+ rawSchema
801
+ customProperties {
802
+ key
803
+ value
804
+ }
805
+ }
806
+ deprecation {
807
+ ...deprecationFields
808
+ }
809
+ }
810
+ ... on GlossaryNode {
811
+ properties {
812
+ name
813
+ description
814
+ }
815
+ }
816
+ ... on MLFeatureTable {
817
+ name
818
+ description
819
+ featureTableProperties {
820
+ description
821
+ mlFeatures {
822
+ urn
823
+ }
824
+ mlPrimaryKeys {
825
+ urn
826
+ }
827
+ }
828
+ ownership {
829
+ ...ownershipFields
830
+ }
831
+ tags {
832
+ ...globalTagsFields
833
+ }
834
+ glossaryTerms {
835
+ ...glossaryTerms
836
+ }
837
+ structuredProperties {
838
+ properties {
839
+ ...structuredPropertiesFields
840
+ }
841
+ }
842
+ platform {
843
+ ...platformFields
844
+ }
845
+ deprecation {
846
+ ...deprecationFields
847
+ }
848
+ }
849
+ ... on MLModel {
850
+ name
851
+ description
852
+ origin
853
+ ownership {
854
+ ...ownershipFields
855
+ }
856
+ tags {
857
+ ...globalTagsFields
858
+ }
859
+ glossaryTerms {
860
+ ...glossaryTerms
861
+ }
862
+ structuredProperties {
863
+ properties {
864
+ ...structuredPropertiesFields
865
+ }
866
+ }
867
+ platform {
868
+ ...platformFields
869
+ }
870
+ deprecation {
871
+ ...deprecationFields
872
+ }
873
+ }
874
+ ... on MLFeature {
875
+ name
876
+ description
877
+ ownership {
878
+ ...ownershipFields
879
+ }
880
+ tags {
881
+ ...globalTagsFields
882
+ }
883
+ glossaryTerms {
884
+ ...glossaryTerms
885
+ }
886
+ structuredProperties {
887
+ properties {
888
+ ...structuredPropertiesFields
889
+ }
890
+ }
891
+ deprecation {
892
+ ...deprecationFields
893
+ }
894
+ }
895
+ ... on MLModelGroup {
896
+ name
897
+ origin
898
+ description
899
+ ownership {
900
+ ...ownershipFields
901
+ }
902
+ tags {
903
+ ...globalTagsFields
904
+ }
905
+ glossaryTerms {
906
+ ...glossaryTerms
907
+ }
908
+ structuredProperties {
909
+ properties {
910
+ ...structuredPropertiesFields
911
+ }
912
+ }
913
+ platform {
914
+ ...platformFields
915
+ }
916
+ deprecation {
917
+ ...deprecationFields
918
+ }
919
+ }
920
+ ... on Tag {
921
+ properties {
922
+ name
923
+ description
924
+ }
925
+ }
926
+ ... on StructuredPropertyEntity {
927
+ definition {
928
+ displayName
929
+ description
930
+ }
931
+ }
932
+ ... on DataPlatform {
933
+ ...nonConflictingPlatformFields
934
+ }
935
+ ... on Domain {
936
+ urn
937
+ properties {
938
+ name
939
+ description
940
+ }
941
+ parentDomains {
942
+ ...parentDomainsFields
943
+ }
944
+ displayProperties {
945
+ ...displayPropertiesFields
946
+ }
947
+ ...domainEntitiesFields
948
+ }
949
+ ... on DataProduct {
950
+ urn
951
+ properties {
952
+ name
953
+ description
954
+ }
955
+ }
956
+ ... on Container {
957
+ ...entityDisplayNameFields
958
+ subTypes {
959
+ typeNames
960
+ }
961
+ ownership {
962
+ ...ownershipFields
963
+ }
964
+ tags {
965
+ ...globalTagsFields
966
+ }
967
+ glossaryTerms {
968
+ ...glossaryTerms
969
+ }
970
+ structuredProperties {
971
+ properties {
972
+ ...structuredPropertiesFields
973
+ }
974
+ }
975
+ platform {
976
+ ...platformFields
977
+ }
978
+ deprecation {
979
+ ...deprecationFields
980
+ }
981
+ browsePathV2 {
982
+ path {
983
+ entity {
984
+ ...entityDisplayNameFields
985
+ }
986
+ }
987
+ }
988
+ }
989
+ ... on Assertion {
990
+ urn
991
+ type
992
+ info {
993
+ type
994
+ description
995
+ lastUpdated {
996
+ time
997
+ actor
998
+ }
999
+ datasetAssertion {
1000
+ datasetUrn
1001
+ scope
1002
+ aggregation
1003
+ operator
1004
+ parameters {
1005
+ value {
1006
+ value
1007
+ type
1008
+ }
1009
+ minValue {
1010
+ value
1011
+ type
1012
+ }
1013
+ maxValue {
1014
+ value
1015
+ type
1016
+ }
1017
+ }
1018
+ fields {
1019
+ urn
1020
+ path
1021
+ }
1022
+ nativeType
1023
+ nativeParameters {
1024
+ key
1025
+ value
1026
+ }
1027
+ logic
1028
+ }
1029
+ fieldAssertion {
1030
+ type
1031
+ entityUrn
1032
+ fieldValuesAssertion {
1033
+ field {
1034
+ path
1035
+ type
1036
+ nativeType
1037
+ }
1038
+ operator
1039
+ parameters {
1040
+ value {
1041
+ value
1042
+ type
1043
+ }
1044
+ minValue {
1045
+ value
1046
+ type
1047
+ }
1048
+ maxValue {
1049
+ value
1050
+ type
1051
+ }
1052
+ }
1053
+ failThreshold {
1054
+ type
1055
+ value
1056
+ }
1057
+ excludeNulls
1058
+ }
1059
+ fieldMetricAssertion {
1060
+ field {
1061
+ path
1062
+ type
1063
+ nativeType
1064
+ }
1065
+ metric
1066
+ operator
1067
+ parameters {
1068
+ value {
1069
+ value
1070
+ type
1071
+ }
1072
+ minValue {
1073
+ value
1074
+ type
1075
+ }
1076
+ maxValue {
1077
+ value
1078
+ type
1079
+ }
1080
+ }
1081
+ }
1082
+ }
1083
+ volumeAssertion {
1084
+ type
1085
+ entityUrn
1086
+ rowCountTotal {
1087
+ operator
1088
+ parameters {
1089
+ value {
1090
+ value
1091
+ type
1092
+ }
1093
+ minValue {
1094
+ value
1095
+ type
1096
+ }
1097
+ maxValue {
1098
+ value
1099
+ type
1100
+ }
1101
+ }
1102
+ }
1103
+ rowCountChange {
1104
+ type
1105
+ operator
1106
+ parameters {
1107
+ value {
1108
+ value
1109
+ type
1110
+ }
1111
+ minValue {
1112
+ value
1113
+ type
1114
+ }
1115
+ maxValue {
1116
+ value
1117
+ type
1118
+ }
1119
+ }
1120
+ }
1121
+ }
1122
+ sqlAssertion {
1123
+ type
1124
+ entityUrn
1125
+ statement
1126
+ operator
1127
+ parameters {
1128
+ value {
1129
+ value
1130
+ type
1131
+ }
1132
+ minValue {
1133
+ value
1134
+ type
1135
+ }
1136
+ maxValue {
1137
+ value
1138
+ type
1139
+ }
1140
+ }
1141
+ }
1142
+ source {
1143
+ type
1144
+ created {
1145
+ time
1146
+ actor
1147
+ }
1148
+ }
1149
+ }
1150
+ platform {
1151
+ urn
1152
+ name
1153
+ properties {
1154
+ displayName
1155
+ }
1156
+ }
1157
+ runEvents(status: COMPLETE, limit: 10) {
1158
+ total
1159
+ failed
1160
+ succeeded
1161
+ runEvents {
1162
+ timestampMillis
1163
+ status
1164
+ result {
1165
+ type
1166
+ actualAggValue
1167
+ externalUrl
1168
+ nativeResults {
1169
+ key
1170
+ value
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ ... on Incident {
1177
+ urn
1178
+ type
1179
+ incidentType
1180
+ customType
1181
+ title
1182
+ description
1183
+ priority
1184
+ startedAt
1185
+ created {
1186
+ time
1187
+ actor
1188
+ }
1189
+ incidentStatus { #[CLOUD] #[NEWER_GMS]
1190
+ state #[CLOUD] #[NEWER_GMS]
1191
+ stage #[CLOUD] #[NEWER_GMS]
1192
+ message #[CLOUD] #[NEWER_GMS]
1193
+ lastUpdated { #[CLOUD] #[NEWER_GMS]
1194
+ time #[CLOUD] #[NEWER_GMS]
1195
+ actor #[CLOUD] #[NEWER_GMS]
1196
+ } #[CLOUD] #[NEWER_GMS]
1197
+ } #[CLOUD] #[NEWER_GMS]
1198
+ assignees {
1199
+ ... on CorpUser {
1200
+ urn
1201
+ username
1202
+ properties {
1203
+ active
1204
+ displayName
1205
+ email
1206
+ title
1207
+ }
1208
+ editableProperties {
1209
+ displayName
1210
+ title
1211
+ }
1212
+ }
1213
+ ... on CorpGroup {
1214
+ urn
1215
+ name
1216
+ properties {
1217
+ displayName
1218
+ email
1219
+ }
1220
+ info {
1221
+ displayName
1222
+ email
1223
+ }
1224
+ }
1225
+ }
1226
+ entity {
1227
+ urn
1228
+ type
1229
+ ... on Dataset {
1230
+ name
1231
+ properties {
1232
+ name
1233
+ description
1234
+ }
1235
+ }
1236
+ ... on Dashboard {
1237
+ properties {
1238
+ name
1239
+ description
1240
+ }
1241
+ }
1242
+ ... on Chart {
1243
+ properties {
1244
+ name
1245
+ description
1246
+ }
1247
+ }
1248
+ ... on DataJob {
1249
+ properties {
1250
+ name
1251
+ description
1252
+ }
1253
+ }
1254
+ ... on DataFlow {
1255
+ properties {
1256
+ name
1257
+ description
1258
+ }
1259
+ }
1260
+ }
1261
+ source {
1262
+ type
1263
+ source {
1264
+ urn
1265
+ type
1266
+ ... on Assertion {
1267
+ info {
1268
+ description
1269
+ }
1270
+ }
1271
+ }
1272
+ }
1273
+ tags {
1274
+ tags {
1275
+ tag {
1276
+ urn
1277
+ name
1278
+ properties {
1279
+ name
1280
+ description
1281
+ }
1282
+ }
1283
+ }
1284
+ }
1285
+ }
1286
+ ... on Document { #[NEWER_GMS]
1287
+ urn #[NEWER_GMS]
1288
+ subType #[NEWER_GMS]
1289
+ platform { #[NEWER_GMS]
1290
+ ...platformFields #[NEWER_GMS]
1291
+ } #[NEWER_GMS]
1292
+ info { #[NEWER_GMS]
1293
+ title #[NEWER_GMS]
1294
+ contents { #[NEWER_GMS]
1295
+ text #[NEWER_GMS]
1296
+ } #[NEWER_GMS]
1297
+ source { #[NEWER_GMS]
1298
+ sourceType #[NEWER_GMS]
1299
+ externalUrl #[NEWER_GMS]
1300
+ } #[NEWER_GMS]
1301
+ created { #[NEWER_GMS]
1302
+ time #[NEWER_GMS]
1303
+ actor { #[NEWER_GMS]
1304
+ urn #[NEWER_GMS]
1305
+ } #[NEWER_GMS]
1306
+ } #[NEWER_GMS]
1307
+ lastModified { #[NEWER_GMS]
1308
+ time #[NEWER_GMS]
1309
+ actor { #[NEWER_GMS]
1310
+ urn #[NEWER_GMS]
1311
+ } #[NEWER_GMS]
1312
+ } #[NEWER_GMS]
1313
+ relatedAssets { #[NEWER_GMS]
1314
+ asset { #[NEWER_GMS]
1315
+ urn #[NEWER_GMS]
1316
+ type #[NEWER_GMS]
1317
+ } #[NEWER_GMS]
1318
+ } #[NEWER_GMS]
1319
+ relatedDocuments { #[NEWER_GMS]
1320
+ document { #[NEWER_GMS]
1321
+ urn #[NEWER_GMS]
1322
+ } #[NEWER_GMS]
1323
+ } #[NEWER_GMS]
1324
+ parentDocument { #[NEWER_GMS]
1325
+ document { #[NEWER_GMS]
1326
+ urn #[NEWER_GMS]
1327
+ } #[NEWER_GMS]
1328
+ } #[NEWER_GMS]
1329
+ } #[NEWER_GMS]
1330
+ settings { #[NEWER_GMS]
1331
+ showInGlobalContext #[NEWER_GMS]
1332
+ } #[NEWER_GMS]
1333
+ ownership { #[NEWER_GMS]
1334
+ ...ownershipFields #[NEWER_GMS]
1335
+ } #[NEWER_GMS]
1336
+ tags { #[NEWER_GMS]
1337
+ ...globalTagsFields #[NEWER_GMS]
1338
+ } #[NEWER_GMS]
1339
+ glossaryTerms { #[NEWER_GMS]
1340
+ ...glossaryTerms #[NEWER_GMS]
1341
+ } #[NEWER_GMS]
1342
+ domain { #[NEWER_GMS]
1343
+ ...entityDomain #[NEWER_GMS]
1344
+ } #[NEWER_GMS]
1345
+ } #[NEWER_GMS]
1346
+ }
1347
+
1348
+ fragment documentationFields on Documentation {
1349
+ documentations {
1350
+ documentation
1351
+ attribution {
1352
+ # time
1353
+ # actor {
1354
+ # urn
1355
+ # type
1356
+ # ...entityDisplayNameFields
1357
+ # }
1358
+ # source {
1359
+ # urn
1360
+ # type
1361
+ # }
1362
+ sourceDetail {
1363
+ key
1364
+ value
1365
+ }
1366
+ }
1367
+ }
1368
+ }
1369
+
1370
+ fragment businessAttribute on BusinessAttributeAssociation {
1371
+ businessAttribute {
1372
+ urn
1373
+ type
1374
+ ownership {
1375
+ ...ownershipFields
1376
+ }
1377
+ properties {
1378
+ name
1379
+ description
1380
+ businessAttributeDataType: type
1381
+ lastModified {
1382
+ time
1383
+ }
1384
+ created {
1385
+ time
1386
+ }
1387
+ tags {
1388
+ ...globalTagsFields
1389
+ }
1390
+ glossaryTerms {
1391
+ ...glossaryTerms
1392
+ }
1393
+ }
1394
+ }
1395
+ }
1396
+
1397
+ fragment structuredPropertyFields on StructuredPropertyEntity {
1398
+ urn
1399
+ definition {
1400
+ displayName
1401
+ qualifiedName
1402
+ }
1403
+ __typename
1404
+ }
1405
+
1406
+ fragment structuredPropertyDetailsFields on StructuredPropertyEntity {
1407
+ urn
1408
+ type
1409
+ definition {
1410
+ displayName
1411
+ qualifiedName
1412
+ description
1413
+ cardinality
1414
+ immutable
1415
+ valueType {
1416
+ urn
1417
+ info {
1418
+ displayName
1419
+ }
1420
+ }
1421
+ entityTypes {
1422
+ urn
1423
+ }
1424
+ cardinality
1425
+ typeQualifier {
1426
+ allowedTypes {
1427
+ urn
1428
+ type
1429
+ info {
1430
+ type
1431
+ displayName
1432
+ }
1433
+ }
1434
+ }
1435
+ allowedValues {
1436
+ value {
1437
+ ... on StringValue {
1438
+ stringValue
1439
+ }
1440
+ ... on NumberValue {
1441
+ numberValue
1442
+ }
1443
+ }
1444
+ description
1445
+ }
1446
+ created {
1447
+ time
1448
+ actor {
1449
+ urn
1450
+ editableProperties {
1451
+ displayName
1452
+ }
1453
+ ...entityDisplayNameFields
1454
+ }
1455
+ }
1456
+ lastModified {
1457
+ time
1458
+ actor {
1459
+ urn
1460
+ editableProperties {
1461
+ displayName
1462
+ }
1463
+ ...entityDisplayNameFields
1464
+ }
1465
+ }
1466
+ }
1467
+ settings {
1468
+ isHidden
1469
+ showInSearchFilters
1470
+ showAsAssetBadge
1471
+ showInAssetSummary
1472
+ showInColumnsTable
1473
+ }
1474
+ }
1475
+
1476
+ fragment structuredPropertiesFields on StructuredPropertiesEntry {
1477
+ structuredProperty {
1478
+ ...structuredPropertyFields
1479
+ }
1480
+ values {
1481
+ ... on StringValue {
1482
+ stringValue
1483
+ }
1484
+ ... on NumberValue {
1485
+ numberValue
1486
+ }
1487
+ }
1488
+ valueEntities {
1489
+ urn
1490
+ type
1491
+ ...entityDisplayNameFields
1492
+ }
1493
+ }
1494
+
1495
+ fragment entitySchemaFieldEntityFields on SchemaFieldEntity {
1496
+ # Identity fields are already included outside of this fragment.
1497
+ # urn
1498
+ # fieldPath
1499
+ # type
1500
+ deprecation {
1501
+ ...deprecationFields
1502
+ }
1503
+ structuredProperties {
1504
+ properties {
1505
+ ...structuredPropertiesFields
1506
+ }
1507
+ }
1508
+ businessAttributes {
1509
+ businessAttribute {
1510
+ ...businessAttribute
1511
+ }
1512
+ }
1513
+ documentation {
1514
+ ...documentationFields
1515
+ }
1516
+ }
1517
+
1518
+ fragment entitySchemaFieldFields on SchemaField {
1519
+ fieldPath
1520
+ label
1521
+ jsonPath
1522
+ nullable
1523
+ description
1524
+ # type
1525
+ nativeDataType
1526
+ recursive
1527
+ isPartOfKey
1528
+ isPartitioningKey
1529
+ tags {
1530
+ ...globalTagsFields
1531
+ }
1532
+ glossaryTerms {
1533
+ ...glossaryTerms
1534
+ }
1535
+ schemaFieldEntity {
1536
+ ...entitySchemaFieldEntityFields
1537
+ }
1538
+ }
1539
+
1540
+ fragment schemaMetadataFields on SchemaMetadata {
1541
+ createdAt
1542
+ datasetUrn
1543
+ name
1544
+ platformUrn
1545
+ cluster
1546
+ platformSchema {
1547
+ ... on TableSchema {
1548
+ schema
1549
+ }
1550
+ ... on KeyValueSchema {
1551
+ keySchema
1552
+ valueSchema
1553
+ }
1554
+ }
1555
+ fields {
1556
+ ...entitySchemaFieldFields
1557
+ }
1558
+ primaryKeys
1559
+ foreignKeys {
1560
+ name
1561
+ sourceFields {
1562
+ fieldPath
1563
+ }
1564
+ foreignFields {
1565
+ fieldPath
1566
+ }
1567
+ foreignDataset {
1568
+ urn
1569
+ name
1570
+ type
1571
+ properties {
1572
+ description
1573
+ }
1574
+ platform {
1575
+ ...platformFields
1576
+ }
1577
+ ownership {
1578
+ ...ownershipFields
1579
+ }
1580
+ tags {
1581
+ ...globalTagsFields
1582
+ }
1583
+ glossaryTerms {
1584
+ ...glossaryTerms
1585
+ }
1586
+ }
1587
+ }
1588
+ }
1589
+
1590
+ fragment datasetSchema on Dataset {
1591
+ schemaMetadata(version: 0) {
1592
+ ...schemaMetadataFields
1593
+ }
1594
+ editableSchemaMetadata {
1595
+ editableSchemaFieldInfo {
1596
+ fieldPath
1597
+ description
1598
+ tags {
1599
+ ...globalTagsFields
1600
+ }
1601
+ glossaryTerms {
1602
+ ...glossaryTerms
1603
+ }
1604
+ }
1605
+ }
1606
+ }
1607
+
1608
+ fragment viewProperties on Dataset {
1609
+ viewProperties {
1610
+ materialized
1611
+ logic
1612
+ # formattedLogic
1613
+ language
1614
+ }
1615
+ }
1616
+
1617
+ fragment entityDetails on Entity {
1618
+ ... on Dataset {
1619
+ ...datasetSchema
1620
+ ...viewProperties
1621
+ }
1622
+ ... on StructuredPropertyEntity {
1623
+ ...structuredPropertyFields
1624
+ ...structuredPropertyDetailsFields
1625
+ }
1626
+ ... on Container {
1627
+ properties {
1628
+ description
1629
+ __typename
1630
+ }
1631
+ editableProperties {
1632
+ description
1633
+ __typename
1634
+ }
1635
+ }
1636
+ }
1637
+
1638
+ query GetEntity($urn: String!) {
1639
+ entity(urn: $urn) {
1640
+ urn
1641
+ ...entityPreview
1642
+ ...entityDetails
1643
+ }
1644
+ }
1645
+
1646
+ query GetEntityLineage($input: SearchAcrossLineageInput!) {
1647
+ searchAcrossLineage(input: $input) {
1648
+ total
1649
+ facets {
1650
+ field
1651
+ displayName
1652
+ aggregations {
1653
+ value
1654
+ count
1655
+ entity {
1656
+ urn
1657
+ }
1658
+ }
1659
+ }
1660
+ searchResults {
1661
+ entity {
1662
+ urn
1663
+ type
1664
+ ...entityPreview
1665
+ }
1666
+ paths {
1667
+ path {
1668
+ urn
1669
+ type
1670
+ ... on SchemaFieldEntity {
1671
+ fieldPath
1672
+ parent {
1673
+ urn
1674
+ type
1675
+ }
1676
+ }
1677
+ }
1678
+ }
1679
+ degree
1680
+ }
1681
+ }
1682
+ }