{
    "enumDefs": [
        {
            "name": "hive_principal_type",
            "typeVersion": "1.0",
            "elementDefs": [
                {
                    "ordinal": 1,
                    "value": "USER"
                },
                {
                    "ordinal": 2,
                    "value": "ROLE"
                },
                {
                    "ordinal": 3,
                    "value": "GROUP"
                }
            ]
        }
    ],
    "structDefs": [
        {
            "name": "hive_order",
            "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",
            "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"
            ],
            "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"
            ],
            "typeVersion": "1.0",
            "attributeDefs": [
                {
                    "name": "db",
                    "typeName": "hive_db",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "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": "sd",
                    "typeName": "hive_storagedesc",
                    "cardinality": "SINGLE",
                    "constraints": [
                        {
                            "type": "ownedRef"
                        }
                    ],
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "partitionKeys",
                    "typeName": "array<hive_column>",
                    "cardinality": "SET",
                    "constraints": [
                        {
                            "type": "ownedRef"
                        }
                    ],
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "aliases",
                    "typeName": "array<string>",
                    "cardinality": "SET",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "name": "columns",
                    "typeName": "array<hive_column>",
                    "cardinality": "SET",
                    "constraints": [
                        {
                            "type": "ownedRef"
                        }
                    ],
                    "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"
            ],
            "typeVersion": "1.0",
            "attributeDefs": [
                {
                    "name": "table",
                    "typeName": "hive_table",
                    "cardinality": "SINGLE",
                    "constraints": [
                        {
                            "type": "inverseRef",
                            "params": {
                                "attribute": "sd"
                            }
                        }
                    ],
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                },
                {
                    "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"
            ],
            "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"
            ],
            "typeVersion": "1.0",
            "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": "table",
                    "typeName": "hive_table",
                    "cardinality": "SINGLE",
                    "constraints": [
                        {
                            "type": "inverseRef",
                            "params": {
                                "attribute": "columns"
                            }
                        }
                    ],
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        },
        {
            "name" : "hive_column_lineage",
            "superTypes" : [
                "Process"
            ],
            "typeVersion" : "1.0",
            "attributeDefs" : [
                {
                    "name": "query",
                    "typeName": "hive_process",
                    "cardinality" : "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "depenendencyType",
                    "typeName": "string",
                    "cardinality" : "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name": "expression",
                    "typeName": "string",
                    "cardinality" : "SINGLE",
                    "isIndexable": false,
                    "isOptional": true,
                    "isUnique": false
                }
            ]
        }
    ],
    "relationshipDefs": [
        {
            "name": "hive_table_db",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "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",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "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",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "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",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "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",
            "typeVersion": "1.0",
            "relationshipCategory": "COMPOSITION",
            "endDef1": {
                "type": "hive_process",
                "name": "columnLineages",
                "isContainer": true,
                "cardinality": "SET"
            },
            "endDef2": {
                "type": "hive_column_lineage",
                "name": "query",
                "isContainer": false,
                "cardinality": "SINGLE",
                "isLegacyAttribute": true
            },
            "propagateTags": "NONE"
        }
    ]
}
