|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://openlineage.io/spec/facets/1-2-0/ColumnLineageDatasetFacet.json", |
| 4 | + "$defs": { |
| 5 | + "ColumnLineageDatasetFacet": { |
| 6 | + "allOf": [ |
| 7 | + { |
| 8 | + "$ref": "https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/DatasetFacet" |
| 9 | + }, |
| 10 | + { |
| 11 | + "type": "object", |
| 12 | + "properties": { |
| 13 | + "fields": { |
| 14 | + "description": "Column level lineage that maps output fields into input fields used to evaluate them.", |
| 15 | + "type": "object", |
| 16 | + "additionalProperties": { |
| 17 | + "type": "object", |
| 18 | + "properties": { |
| 19 | + "inputFields": { |
| 20 | + "type": "array", |
| 21 | + "items": { |
| 22 | + "$ref": "#/$defs/InputField" |
| 23 | + } |
| 24 | + }, |
| 25 | + "transformationDescription": { |
| 26 | + "type": "string", |
| 27 | + "description": "a string representation of the transformation applied", |
| 28 | + "deprecated": true |
| 29 | + }, |
| 30 | + "transformationType": { |
| 31 | + "type": "string", |
| 32 | + "description": "IDENTITY|MASKED reflects a clearly defined behavior. IDENTITY: exact same as input; MASKED: no original data available (like a hash of PII for example)", |
| 33 | + "deprecated": true |
| 34 | + } |
| 35 | + }, |
| 36 | + "additionalProperties": true, |
| 37 | + "required": ["inputFields"] |
| 38 | + } |
| 39 | + }, |
| 40 | + "dataset": { |
| 41 | + "description": "Column level lineage that affects the whole dataset. This includes filtering, sorting, grouping (aggregates), joining, window functions, etc.", |
| 42 | + "type": "array", |
| 43 | + "items": { |
| 44 | + "$ref": "#/$defs/InputField" |
| 45 | + } |
| 46 | + } |
| 47 | + }, |
| 48 | + "additionalProperties": true, |
| 49 | + "required": ["fields"] |
| 50 | + } |
| 51 | + ], |
| 52 | + "type": "object" |
| 53 | + }, |
| 54 | + "InputField": { |
| 55 | + "description": "Represents a single dependency on some field (column).", |
| 56 | + "type": "object", |
| 57 | + "properties": { |
| 58 | + "namespace": { |
| 59 | + "type": "string", |
| 60 | + "description": "The input dataset namespace" |
| 61 | + }, |
| 62 | + "name": { |
| 63 | + "type": "string", |
| 64 | + "description": "The input dataset name" |
| 65 | + }, |
| 66 | + "field": { |
| 67 | + "type": "string", |
| 68 | + "description": "The input field" |
| 69 | + }, |
| 70 | + "transformations": { |
| 71 | + "type": "array", |
| 72 | + "items": { |
| 73 | + "type": "object", |
| 74 | + "properties": { |
| 75 | + "type": { |
| 76 | + "description": "The type of the transformation. Allowed values are: DIRECT, INDIRECT", |
| 77 | + "type": "string" |
| 78 | + }, |
| 79 | + "subtype": { |
| 80 | + "type": "string", |
| 81 | + "description": "The subtype of the transformation" |
| 82 | + }, |
| 83 | + "description": { |
| 84 | + "type": "string", |
| 85 | + "description": "a string representation of the transformation applied" |
| 86 | + }, |
| 87 | + "masking": { |
| 88 | + "type": "boolean", |
| 89 | + "description": "is transformation masking the data or not" |
| 90 | + } |
| 91 | + }, |
| 92 | + "required": ["type"], |
| 93 | + "additionalProperties": true |
| 94 | + } |
| 95 | + } |
| 96 | + }, |
| 97 | + "additionalProperties": true, |
| 98 | + "required": ["namespace", "name", "field"] |
| 99 | + } |
| 100 | + }, |
| 101 | + "type": "object", |
| 102 | + "properties": { |
| 103 | + "columnLineage": { |
| 104 | + "$ref": "#/$defs/ColumnLineageDatasetFacet" |
| 105 | + } |
| 106 | + } |
| 107 | +} |
0 commit comments