mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-25 18:38:55 +00:00

* two fixes for frontend- proper primary logic for no primary & snippet downgrade * fix for merge logic * updating tests
268 lines
5.7 KiB
GraphQL
268 lines
5.7 KiB
GraphQL
query getDataProfiles($urn: String!, $limit: Int, $startTime: Long, $endTime: Long) {
|
|
dataset(urn: $urn) {
|
|
urn
|
|
datasetProfiles(limit: $limit, startTimeMillis: $startTime, endTimeMillis: $endTime) {
|
|
rowCount
|
|
columnCount
|
|
timestampMillis
|
|
fieldProfiles {
|
|
fieldPath
|
|
uniqueCount
|
|
uniqueProportion
|
|
nullCount
|
|
nullProportion
|
|
min
|
|
max
|
|
mean
|
|
median
|
|
stdev
|
|
sampleValues
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getDataset($urn: String!) {
|
|
dataset(urn: $urn) {
|
|
...nonSiblingDatasetFields
|
|
siblings {
|
|
isPrimary
|
|
siblings {
|
|
urn
|
|
type
|
|
...nonSiblingDatasetFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment nonSiblingDatasetFields on Dataset {
|
|
...nonRecursiveDatasetFields
|
|
schemaMetadata(version: 0) {
|
|
...schemaMetadataFields
|
|
}
|
|
editableSchemaMetadata {
|
|
editableSchemaFieldInfo {
|
|
fieldPath
|
|
description
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
glossaryTerms {
|
|
...glossaryTerms
|
|
}
|
|
}
|
|
}
|
|
deprecation {
|
|
actor
|
|
deprecated
|
|
note
|
|
decommissionTime
|
|
}
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
glossaryTerms {
|
|
...glossaryTerms
|
|
}
|
|
subTypes {
|
|
typeNames
|
|
}
|
|
domain {
|
|
...entityDomain
|
|
}
|
|
parentContainers {
|
|
...parentContainersFields
|
|
}
|
|
usageStats(range: MONTH) {
|
|
buckets {
|
|
bucket
|
|
duration
|
|
resource
|
|
metrics {
|
|
uniqueUserCount
|
|
totalSqlQueries
|
|
topSqlQueries
|
|
}
|
|
}
|
|
aggregations {
|
|
uniqueUserCount
|
|
totalSqlQueries
|
|
users {
|
|
user {
|
|
urn
|
|
type
|
|
username
|
|
properties {
|
|
displayName
|
|
firstName
|
|
lastName
|
|
fullName
|
|
}
|
|
editableProperties {
|
|
displayName
|
|
pictureLink
|
|
}
|
|
}
|
|
count
|
|
userEmail
|
|
}
|
|
fields {
|
|
fieldName
|
|
count
|
|
}
|
|
}
|
|
}
|
|
datasetProfiles(limit: 1) {
|
|
rowCount
|
|
columnCount
|
|
timestampMillis
|
|
fieldProfiles {
|
|
fieldPath
|
|
uniqueCount
|
|
uniqueProportion
|
|
nullCount
|
|
nullProportion
|
|
min
|
|
max
|
|
mean
|
|
median
|
|
stdev
|
|
sampleValues
|
|
}
|
|
}
|
|
health {
|
|
type
|
|
status
|
|
message
|
|
causes
|
|
}
|
|
assertions(start: 0, count: 1) {
|
|
total
|
|
}
|
|
operations(limit: 1) {
|
|
timestampMillis
|
|
lastUpdatedTimestamp
|
|
}
|
|
upstream: lineage(input: { direction: UPSTREAM, start: 0, count: 100 }) {
|
|
...partialLineageResults
|
|
}
|
|
downstream: lineage(input: { direction: DOWNSTREAM, start: 0, count: 100 }) {
|
|
...partialLineageResults
|
|
}
|
|
...viewProperties
|
|
autoRenderAspects: aspects(input: { autoRenderOnly: true }) {
|
|
aspectName
|
|
payload
|
|
renderSpec {
|
|
displayType
|
|
displayName
|
|
key
|
|
}
|
|
}
|
|
status {
|
|
removed
|
|
}
|
|
readRuns: runs(start: 0, count: 20, direction: INCOMING) {
|
|
count
|
|
start
|
|
total
|
|
}
|
|
writeRuns: runs(start: 0, count: 20, direction: OUTGOING) {
|
|
count
|
|
start
|
|
total
|
|
}
|
|
testResults {
|
|
passing {
|
|
test {
|
|
...testFields
|
|
}
|
|
type
|
|
}
|
|
failing {
|
|
test {
|
|
...testFields
|
|
}
|
|
type
|
|
}
|
|
}
|
|
statsSummary {
|
|
queryCountLast30Days
|
|
uniqueUserCountLast30Days
|
|
topUsersLast30Days {
|
|
urn
|
|
type
|
|
username
|
|
properties {
|
|
displayName
|
|
firstName
|
|
lastName
|
|
fullName
|
|
}
|
|
editableProperties {
|
|
displayName
|
|
pictureLink
|
|
}
|
|
}
|
|
}
|
|
siblings {
|
|
isPrimary
|
|
}
|
|
}
|
|
|
|
mutation updateDataset($urn: String!, $input: DatasetUpdateInput!) {
|
|
updateDataset(urn: $urn, input: $input) {
|
|
urn
|
|
}
|
|
}
|
|
|
|
fragment viewProperties on Dataset {
|
|
viewProperties {
|
|
materialized
|
|
logic
|
|
language
|
|
}
|
|
}
|
|
|
|
fragment assertionsQuery on Dataset {
|
|
assertions(start: 0, count: 100) {
|
|
start
|
|
count
|
|
total
|
|
assertions {
|
|
...assertionDetails
|
|
runEvents(status: COMPLETE, limit: 1) {
|
|
total
|
|
failed
|
|
succeeded
|
|
runEvents {
|
|
...assertionRunEventDetails
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getDatasetAssertions($urn: String!) {
|
|
dataset(urn: $urn) {
|
|
...assertionsQuery
|
|
siblings {
|
|
isPrimary
|
|
siblings {
|
|
urn
|
|
type
|
|
...assertionsQuery
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getDatasetRuns($urn: String!, $start: Int!, $count: Int!, $direction: RelationshipDirection!) {
|
|
dataset(urn: $urn) {
|
|
runs(start: $start, count: $count, direction: $direction) {
|
|
...runResults
|
|
}
|
|
}
|
|
}
|