{
    "enumDefs": [
        {
            "name": "hive_principal_type",
            "serviceType": "hive",
            "typeVersion": "1.0",
            "elementDefs": [
                {
                    "ordinal": 1,
                    "value": "USER"
                },
                {
                    "ordinal": 2,
                    "value": "ROLE"
                },
                {
                    "ordinal": 3,
                    "value": "GROUP"
                }
            ]
        }
    ],
    "structDefs": [
        {
            "name": "hive_order",
            "serviceType": "hive",
            "typeVersion": "1.0",
            "attributeDefs": [
                {
                    "name": "order",
                    "typeName": "int",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "col",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                }
            ]
        },
        {
            "name": "hive_serde",
            "serviceType": "hive",
            "typeVersion": "1.0",
            "attributeDefs": [
                {
                    "name": "name",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "serializationLib",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "parameters",
                    "typeName": "map<string,string>",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        }
    ],
    "classificationDefs": [],
    "entityDefs": [
        {
            "name": "hive_process",
            "superTypes": [
                "Process"
            ],
            "serviceType": "hive",
            "typeVersion": "1.0",
            "attributeDefs": [
                {
                    "name": "startTime",
                    "typeName": "date",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "endTime",
                    "typeName": "date",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "userName",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "operationType",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "queryText",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "queryPlan",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "queryId",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "recentQueries",
                    "typeName": "array<string>",
                    "cardinality": "LIST",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "clusterName",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "includeInNotification": true,
                    "isUnique": false
                },
                {
                    "name": "queryGraph",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        },
        {
            "name": "hive_table",
            "superTypes": [
                "DataSet"
            ],
            "serviceType": "hive",
            "typeVersion": "1.1",
            "options": {
              "schemaElementsAttribute": "columns"
            },
            "attributeDefs": [
                {
                    "name": "createTime",
                    "typeName": "date",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "lastAccessTime",
                    "typeName": "date",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "comment",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "retention",
                    "typeName": "int",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "aliases",
                    "typeName": "array<string>",
                    "cardinality": "SET",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "parameters",
                    "typeName": "map<string,string>",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "viewOriginalText",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "viewExpandedText",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "tableType",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "temporary",
                    "typeName": "boolean",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        },
        {
            "name": "hive_storagedesc",
            "superTypes": [
                "Referenceable"
            ],
            "serviceType": "hive",
            "typeVersion": "1.0",
            "attributeDefs": [
                {
                    "name": "location",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "inputFormat",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "outputFormat",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "compressed",
                    "typeName": "boolean",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "numBuckets",
                    "typeName": "int",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "serdeInfo",
                    "typeName": "hive_serde",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "bucketCols",
                    "typeName": "array<string>",
                    "cardinality": "SET",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "sortCols",
                    "typeName": "array<hive_order>",
                    "cardinality": "SET",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "parameters",
                    "typeName": "map<string,string>",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "storedAsSubDirectories",
                    "typeName": "boolean",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        },
        {
            "name": "hive_db",
            "superTypes": [
                "Asset"
            ],
            "serviceType": "hive",
            "typeVersion": "1.1",
            "attributeDefs": [
                {
                    "name": "clusterName",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": false,
                    "includeInNotification": true,
                    "isUnique": false
                },
                {
                    "name": "location",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "parameters",
                    "typeName": "map<string,string>",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "ownerType",
                    "typeName": "hive_principal_type",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        },
        {
            "name": "hive_column",
            "superTypes": [
                "DataSet"
            ],
            "serviceType": "hive",
            "typeVersion": "1.3",
            "options": {
              "schemaAttributes": "[\"name\", \"description\", \"owner\", \"type\", \"comment\", \"position\"]"
            },
            "attributeDefs": [
                {
                    "name": "type",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "comment",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                  "name": "position",
                  "typeName": "int",
                  "cardinality": "SINGLE",
                  "isIndexable": false,
                  "isOptional": true,
                  "isUnique": false
                }
            ]
        },
        {
            "name" : "hive_column_lineage",
            "superTypes" : [
                "Process"
            ],
            "serviceType": "hive",
            "typeVersion" : "1.0",
            "attributeDefs" : [
                {
                    "name": "depenendencyType",
                    "typeName": "string",
                    "cardinality" : "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "expression",
                    "typeName": "string",
                    "cardinality" : "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        },
        {
            "name" : "hive_process_execution",
            "superTypes" : [
                "ProcessExecution"
            ],
            "serviceType": "hive",
            "typeVersion" : "1.1",
            "attributeDefs" : [
                {
                    "name": "startTime",
                    "typeName": "date",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "endTime",
                    "typeName": "date",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "userName",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "queryText",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "queryGraph",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "queryId",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "queryPlan",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "hostName",
                    "typeName": "string",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional": false,
                    "isUnique": false
                }
            ],
            "options": {
                "displayTextAttribute": "queryText"
            }
        },
        {
            "name": "hive_db_ddl",
            "superTypes": [
                "ddl"
            ],
            "serviceType": "hive",
            "typeVersion": "1.0",
            "attributeDefs": []
        },
        {
            "name": "hive_table_ddl",
            "superTypes": [
                "ddl"
            ],
            "serviceType": "hive",
            "typeVersion": "1.0",
            "attributeDefs": []
        }
    ],
    "relationshipDefs": [
        {
            "name": "hive_table_db",
            "serviceType": "hive",
            "typeVersion": "1.2",
            "relationshipCategory": "AGGREGATION",
            "relationshipLabel": "__hive_table.db",
            "endDef1": {
                "type": "hive_table",
                "name": "db",
                "isContainer": false,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "endDef2": {
                "type": "hive_db",
                "name": "tables",
                "isContainer": true,
                "cardinality": "SET"
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_table_columns",
            "serviceType": "hive",
            "typeVersion": "1.2",
            "relationshipCategory": "COMPOSITION",
            "relationshipLabel": "__hive_table.columns",
            "endDef1": {
                "type": "hive_table",
                "name": "columns",
                "isContainer": true,
                "cardinality": "SET",
                "isLegacyAttribute": true
            },
            "endDef2": {
                "type": "hive_column",
                "name": "table",
                "isContainer": false,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_table_partitionkeys",
            "serviceType": "hive",
            "typeVersion": "1.2",
            "relationshipCategory": "COMPOSITION",
            "relationshipLabel": "__hive_table.partitionKeys",
            "endDef1": {
                "type": "hive_table",
                "name": "partitionKeys",
                "isContainer": true,
                "cardinality": "SET",
                "isLegacyAttribute": true
            },
            "endDef2": {
                "type": "hive_column",
                "name": "table",
                "isContainer": false,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_table_storagedesc",
            "serviceType": "hive",
            "typeVersion": "1.2",
            "relationshipCategory": "COMPOSITION",
            "relationshipLabel": "__hive_table.sd",
            "endDef1": {
                "type": "hive_table",
                "name": "sd",
                "isContainer": true,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "endDef2": {
                "type": "hive_storagedesc",
                "name": "table",
                "isContainer": false,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_process_column_lineage",
            "serviceType": "hive",
            "typeVersion": "1.2",
            "relationshipCategory": "COMPOSITION",
            "relationshipLabel": "__hive_column_lineage.query",
            "endDef1": {
                "type": "hive_column_lineage",
                "name": "query",
                "isContainer": false,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "endDef2": {
                "type": "hive_process",
                "name": "columnLineages",
                "isContainer": true,
                "cardinality": "SET"
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_process_process_executions",
            "serviceType": "hive",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "endDef1": {
                "type": "hive_process",
                "name": "processExecutions",
                "cardinality": "SET",
                "isContainer": true
            },
            "endDef2": {
                "type": "hive_process_execution",
                "name": "process",
                "cardinality": "SINGLE"
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_table_ddl_queries",
            "serviceType": "hive",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "endDef1": {
                "type": "hive_table",
                "name": "ddlQueries",
                "isContainer": true,
                "cardinality": "SET"
            },
            "endDef2": {
                "type": "hive_table_ddl",
                "name": "table",
                "isContainer": false,
                "cardinality": "SINGLE"
            },
            "propagateTags": "NONE"
        },
        {
            "name": "hive_db_ddl_queries",
            "serviceType": "hive",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "endDef1": {
                "type": "hive_db",
                "name": "ddlQueries",
                "isContainer": true,
                "cardinality": "SET"
            },
            "endDef2": {
                "type": "hive_db_ddl",
                "name": "db",
                "isContainer": false,
                "cardinality": "SINGLE"
            },
            "propagateTags": "NONE"
        }
    ]
}
