2021-07-30 17:41:03 -07:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-10 14:19:27 -08:00
|
|
|
query getDataset($urn: String!) {
|
|
|
|
dataset(urn: $urn) {
|
2021-06-26 01:11:34 +08:00
|
|
|
...nonRecursiveDatasetFields
|
2021-07-09 23:46:38 +08:00
|
|
|
schemaMetadata(version: 0) {
|
|
|
|
...schemaMetadataFields
|
|
|
|
}
|
|
|
|
previousSchemaMetadata: schemaMetadata(version: -1) {
|
|
|
|
...schemaMetadataFields
|
|
|
|
}
|
|
|
|
editableSchemaMetadata {
|
|
|
|
editableSchemaFieldInfo {
|
|
|
|
fieldPath
|
|
|
|
description
|
|
|
|
globalTags {
|
|
|
|
...globalTagsFields
|
|
|
|
}
|
2021-09-13 09:16:37 -07:00
|
|
|
glossaryTerms {
|
|
|
|
...glossaryTerms
|
|
|
|
}
|
2021-07-09 23:46:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
deprecation {
|
|
|
|
actor
|
|
|
|
deprecated
|
|
|
|
note
|
|
|
|
decommissionTime
|
|
|
|
}
|
|
|
|
globalTags {
|
|
|
|
...globalTagsFields
|
|
|
|
}
|
|
|
|
glossaryTerms {
|
|
|
|
...glossaryTerms
|
|
|
|
}
|
2021-10-06 23:39:52 -07:00
|
|
|
subTypes {
|
|
|
|
typeNames
|
|
|
|
}
|
2021-06-24 17:11:00 -07:00
|
|
|
usageStats(resource: $urn, range: MONTH) {
|
|
|
|
buckets {
|
|
|
|
bucket
|
|
|
|
duration
|
|
|
|
resource
|
|
|
|
metrics {
|
|
|
|
uniqueUserCount
|
|
|
|
totalSqlQueries
|
|
|
|
topSqlQueries
|
|
|
|
}
|
|
|
|
}
|
|
|
|
aggregations {
|
|
|
|
uniqueUserCount
|
|
|
|
totalSqlQueries
|
|
|
|
users {
|
|
|
|
user {
|
|
|
|
urn
|
|
|
|
username
|
|
|
|
}
|
|
|
|
count
|
|
|
|
userEmail
|
|
|
|
}
|
2021-06-24 19:44:59 -07:00
|
|
|
fields {
|
|
|
|
fieldName
|
|
|
|
count
|
|
|
|
}
|
2021-06-24 17:11:00 -07:00
|
|
|
}
|
|
|
|
}
|
2021-07-30 17:41:03 -07:00
|
|
|
datasetProfiles(limit: 1) {
|
|
|
|
rowCount
|
|
|
|
columnCount
|
|
|
|
timestampMillis
|
|
|
|
fieldProfiles {
|
|
|
|
fieldPath
|
|
|
|
uniqueCount
|
|
|
|
uniqueProportion
|
|
|
|
nullCount
|
|
|
|
nullProportion
|
|
|
|
min
|
|
|
|
max
|
|
|
|
mean
|
|
|
|
median
|
|
|
|
stdev
|
|
|
|
sampleValues
|
|
|
|
}
|
|
|
|
}
|
2022-01-07 15:27:09 -10:00
|
|
|
operations(limit: 1) {
|
|
|
|
timestampMillis
|
|
|
|
}
|
2021-10-22 15:46:46 -07:00
|
|
|
incoming: relationships(
|
|
|
|
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: INCOMING, start: 0, count: 100 }
|
|
|
|
) {
|
|
|
|
...fullRelationshipResults
|
|
|
|
}
|
|
|
|
outgoing: relationships(
|
|
|
|
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: OUTGOING, start: 0, count: 100 }
|
|
|
|
) {
|
|
|
|
...fullRelationshipResults
|
|
|
|
}
|
2021-10-12 15:47:29 -07:00
|
|
|
...viewProperties
|
2021-11-29 21:07:06 -08:00
|
|
|
autoRenderAspects: aspects(input: { autoRenderOnly: true }) {
|
|
|
|
aspectName
|
|
|
|
payload
|
|
|
|
renderSpec {
|
|
|
|
displayType
|
|
|
|
displayName
|
|
|
|
key
|
|
|
|
}
|
|
|
|
}
|
2021-01-17 12:54:49 -08:00
|
|
|
}
|
|
|
|
}
|
2021-07-09 23:46:38 +08:00
|
|
|
|
2021-10-22 15:46:46 -07:00
|
|
|
mutation updateDataset($urn: String!, $input: DatasetUpdateInput!) {
|
|
|
|
updateDataset(urn: $urn, input: $input) {
|
2021-07-09 23:46:38 +08:00
|
|
|
urn
|
|
|
|
}
|
|
|
|
}
|
2021-10-12 15:47:29 -07:00
|
|
|
|
|
|
|
fragment viewProperties on Dataset {
|
|
|
|
viewProperties {
|
|
|
|
materialized
|
|
|
|
logic
|
|
|
|
language
|
|
|
|
}
|
|
|
|
}
|