-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-entity-deprecation
- Loading branch information
Showing
23 changed files
with
516 additions
and
284 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
datahub-web-react/src/images/datahub-logo-color-loading_pendulum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
metadata-ingestion/src/datahub/ingestion/source/aws/s3_util.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Optional | ||
|
||
|
||
def make_s3_urn(s3_uri: str, env: str, suffix: Optional[str] = None) -> str: | ||
|
||
if not s3_uri.startswith("s3://"): | ||
raise ValueError("S3 URIs should begin with 's3://'") | ||
# remove S3 prefix (s3://) | ||
s3_name = s3_uri[5:] | ||
|
||
if s3_name.endswith("/"): | ||
s3_name = s3_name[:-1] | ||
|
||
if suffix is not None: | ||
return f"urn:li:dataset:(urn:li:dataPlatform:s3,{s3_name}_{suffix},{env})" | ||
|
||
return f"urn:li:dataset:(urn:li:dataPlatform:s3,{s3_name},{env})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 40 additions & 38 deletions
78
metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionResult.pdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,53 @@ | ||
namespace com.linkedin.assertion | ||
|
||
import com.linkedin.timeseries.TimeseriesAspectBase | ||
import com.linkedin.common.ExternalReference | ||
import com.linkedin.common.Urn | ||
|
||
/** | ||
* The results of evaluating the assertion on the batch | ||
*/ | ||
@Aspect = { | ||
"name": "assertionResult", | ||
"type": "timeseries", | ||
} | ||
|
||
record AssertionResult includes TimeseriesAspectBase { | ||
|
||
/* | ||
* Urn of assertion which is evaluated | ||
*/ | ||
@TimeseriesField = {} | ||
assertionUrn: Urn | ||
record AssertionResult { | ||
|
||
/* | ||
* Urn of entity being asserted | ||
*/ | ||
//example - dataset urn, if dataset is being asserted | ||
@TimeseriesField = {} | ||
asserteeUrn: Urn | ||
|
||
/** | ||
* Specification of the batch whose data quality is evaluated | ||
* The final result, e.g. either SUCCESS or FAILURE. | ||
*/ | ||
batchSpec: optional BatchSpec | ||
type: enum AssertionResultType { | ||
/** | ||
* The Assertion Succeeded | ||
*/ | ||
SUCCESS | ||
/** | ||
* The Assertion Failed | ||
*/ | ||
FAILURE | ||
} | ||
|
||
/** | ||
* Results of assertion | ||
*/ | ||
@TimeseriesField = {} | ||
batchAssertionResult: BatchAssertionResult | ||
* Number of rows for evaluated batch | ||
*/ | ||
rowCount: optional long | ||
|
||
/** | ||
* Native Run identifier of platform evaluating the assertions | ||
*/ | ||
//Multiple assertions could occur in same evaluator run | ||
nativeEvaluatorRunId: optional string | ||
* Number of rows with missing value for evaluated batch | ||
*/ | ||
missingCount: optional long | ||
|
||
/** | ||
* Number of rows with unexpected value for evaluated batch | ||
*/ | ||
unexpectedCount: optional long | ||
|
||
/** | ||
* Runtime parameters of evaluation | ||
* Observed aggregate value for evaluated batch | ||
*/ | ||
runtimeContext: map[string, string] = { } | ||
actualAggValue: optional float | ||
|
||
/** | ||
* Other results of evaluation | ||
*/ | ||
nativeResults: optional map[string, string] | ||
|
||
/** | ||
* URL where full results are available | ||
*/ | ||
externalUrl: optional string | ||
|
||
/** | ||
* Runtime context for the evaluation | ||
*/ | ||
runtimeContext: optional map[string, string] | ||
} |
Oops, something went wrong.