mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-30 04:45:28 +00:00

Co-authored-by: Dexter Lee <dexter@acryl.io> Co-authored-by: Harshal Sheth <hsheth2@gmail.com> Co-authored-by: Ravindra Lanka <rlanka@acryl.io> Co-authored-by: Shirshanka Das <shirshanka@apache.org>
147 lines
3.6 KiB
GraphQL
147 lines
3.6 KiB
GraphQL
mutation updateDataset($input: DatasetUpdateInput!) {
|
|
updateDataset(input: $input) {
|
|
...nonRecursiveDatasetFields
|
|
downstreamLineage {
|
|
...downstreamRelationshipFields
|
|
}
|
|
upstreamLineage {
|
|
...upstreamRelationshipFields
|
|
}
|
|
}
|
|
}
|
|
|
|
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) {
|
|
...nonRecursiveDatasetFields
|
|
downstreamLineage {
|
|
...downstreamRelationshipFields
|
|
}
|
|
upstreamLineage {
|
|
...upstreamRelationshipFields
|
|
}
|
|
schemaMetadata(version: 0) {
|
|
...schemaMetadataFields
|
|
}
|
|
previousSchemaMetadata: schemaMetadata(version: -1) {
|
|
...schemaMetadataFields
|
|
}
|
|
editableSchemaMetadata {
|
|
editableSchemaFieldInfo {
|
|
fieldPath
|
|
description
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
}
|
|
}
|
|
deprecation {
|
|
actor
|
|
deprecated
|
|
note
|
|
decommissionTime
|
|
}
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
glossaryTerms {
|
|
...glossaryTerms
|
|
}
|
|
usageStats(resource: $urn, range: MONTH) {
|
|
buckets {
|
|
bucket
|
|
duration
|
|
resource
|
|
metrics {
|
|
uniqueUserCount
|
|
totalSqlQueries
|
|
topSqlQueries
|
|
}
|
|
}
|
|
aggregations {
|
|
uniqueUserCount
|
|
totalSqlQueries
|
|
users {
|
|
user {
|
|
urn
|
|
username
|
|
}
|
|
count
|
|
userEmail
|
|
}
|
|
fields {
|
|
fieldName
|
|
count
|
|
}
|
|
}
|
|
}
|
|
datasetProfiles(limit: 1) {
|
|
rowCount
|
|
columnCount
|
|
timestampMillis
|
|
fieldProfiles {
|
|
fieldPath
|
|
uniqueCount
|
|
uniqueProportion
|
|
nullCount
|
|
nullProportion
|
|
min
|
|
max
|
|
mean
|
|
median
|
|
stdev
|
|
sampleValues
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query getDatasetSchemaVersions($urn: String!, $version1: Long, $version2: Long) {
|
|
dataset(urn: $urn) {
|
|
urn
|
|
name
|
|
type
|
|
origin
|
|
description
|
|
uri
|
|
schemaMetadata(version: $version1) {
|
|
...schemaMetadataFields
|
|
}
|
|
previousSchemaMetadata: schemaMetadata(version: $version2) {
|
|
...schemaMetadataFields
|
|
}
|
|
editableSchemaMetadata {
|
|
editableSchemaFieldInfo {
|
|
fieldPath
|
|
description
|
|
globalTags {
|
|
...globalTagsFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|