AWS Glue

2025/08/21 - AWS Glue - 9 updated api methods

Changes  Added support for preprocessing queries in Data Quality operations through new DataQualityGlueTable structure.

BatchGetDataQualityResult (updated) Link ¶
Changes (response)
{'Results': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                     'CatalogId': 'string',
                                                     'ConnectionName': 'string',
                                                     'DatabaseName': 'string',
                                                     'PreProcessingQuery': 'string',
                                                     'TableName': 'string'}}}}

Retrieves a list of data quality results for the specified result IDs.

See also: AWS API Documentation

Request Syntax

client.batch_get_data_quality_result(
    ResultIds=[
        'string',
    ]
)
type ResultIds:

list

param ResultIds:

[REQUIRED]

A list of unique result IDs for the data quality results.

  • (string) --

rtype:

dict

returns:

Response Syntax

{
    'Results': [
        {
            'ResultId': 'string',
            'ProfileId': 'string',
            'Score': 123.0,
            'DataSource': {
                'GlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    }
                },
                'DataQualityGlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    },
                    'PreProcessingQuery': 'string'
                }
            },
            'RulesetName': 'string',
            'EvaluationContext': 'string',
            'StartedOn': datetime(2015, 1, 1),
            'CompletedOn': datetime(2015, 1, 1),
            'JobName': 'string',
            'JobRunId': 'string',
            'RulesetEvaluationRunId': 'string',
            'RuleResults': [
                {
                    'Name': 'string',
                    'Description': 'string',
                    'EvaluationMessage': 'string',
                    'Result': 'PASS'|'FAIL'|'ERROR',
                    'EvaluatedMetrics': {
                        'string': 123.0
                    },
                    'EvaluatedRule': 'string',
                    'RuleMetrics': {
                        'string': 123.0
                    }
                },
            ],
            'AnalyzerResults': [
                {
                    'Name': 'string',
                    'Description': 'string',
                    'EvaluationMessage': 'string',
                    'EvaluatedMetrics': {
                        'string': 123.0
                    }
                },
            ],
            'Observations': [
                {
                    'Description': 'string',
                    'MetricBasedObservation': {
                        'MetricName': 'string',
                        'StatisticId': 'string',
                        'MetricValues': {
                            'ActualValue': 123.0,
                            'ExpectedValue': 123.0,
                            'LowerLimit': 123.0,
                            'UpperLimit': 123.0
                        },
                        'NewRules': [
                            'string',
                        ]
                    }
                },
            ],
            'AggregatedMetrics': {
                'TotalRowsProcessed': 123.0,
                'TotalRowsPassed': 123.0,
                'TotalRowsFailed': 123.0,
                'TotalRulesProcessed': 123.0,
                'TotalRulesPassed': 123.0,
                'TotalRulesFailed': 123.0
            }
        },
    ],
    'ResultsNotFound': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • Results (list) --

      A list of DataQualityResult objects representing the data quality results.

      • (dict) --

        Describes a data quality result.

        • ResultId (string) --

          A unique result ID for the data quality result.

        • ProfileId (string) --

          The Profile ID for the data quality result.

        • Score (float) --

          An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.

        • DataSource (dict) --

          The table associated with the data quality result, if any.

          • GlueTable (dict) --

            An Glue table.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

          • DataQualityGlueTable (dict) --

            An Glue table for Data Quality Operations.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

            • PreProcessingQuery (string) --

              SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

        • RulesetName (string) --

          The name of the ruleset associated with the data quality result.

        • EvaluationContext (string) --

          In the context of a job in Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the evaluationContext can differentiate the nodes.

        • StartedOn (datetime) --

          The date and time when this data quality run started.

        • CompletedOn (datetime) --

          The date and time when this data quality run completed.

        • JobName (string) --

          The job name associated with the data quality result, if any.

        • JobRunId (string) --

          The job run ID associated with the data quality result, if any.

        • RulesetEvaluationRunId (string) --

          The unique run ID for the ruleset evaluation for this data quality result.

        • RuleResults (list) --

          A list of DataQualityRuleResult objects representing the results for each rule.

          • (dict) --

            Describes the result of the evaluation of a data quality rule.

            • Name (string) --

              The name of the data quality rule.

            • Description (string) --

              A description of the data quality rule.

            • EvaluationMessage (string) --

              An evaluation message.

            • Result (string) --

              A pass or fail status for the rule.

            • EvaluatedMetrics (dict) --

              A map of metrics associated with the evaluation of the rule.

              • (string) --

                • (float) --

            • EvaluatedRule (string) --

              The evaluated rule.

            • RuleMetrics (dict) --

              A map containing metrics associated with the evaluation of the rule based on row-level results.

              • (string) --

                • (float) --

        • AnalyzerResults (list) --

          A list of DataQualityAnalyzerResult objects representing the results for each analyzer.

          • (dict) --

            Describes the result of the evaluation of a data quality analyzer.

            • Name (string) --

              The name of the data quality analyzer.

            • Description (string) --

              A description of the data quality analyzer.

            • EvaluationMessage (string) --

              An evaluation message.

            • EvaluatedMetrics (dict) --

              A map of metrics associated with the evaluation of the analyzer.

              • (string) --

                • (float) --

        • Observations (list) --

          A list of DataQualityObservation objects representing the observations generated after evaluating the rules and analyzers.

          • (dict) --

            Describes the observation generated after evaluating the rules and analyzers.

            • Description (string) --

              A description of the data quality observation.

            • MetricBasedObservation (dict) --

              An object of type MetricBasedObservation representing the observation that is based on evaluated data quality metrics.

              • MetricName (string) --

                The name of the data quality metric used for generating the observation.

              • StatisticId (string) --

                The Statistic ID.

              • MetricValues (dict) --

                An object of type DataQualityMetricValues representing the analysis of the data quality metric value.

                • ActualValue (float) --

                  The actual value of the data quality metric.

                • ExpectedValue (float) --

                  The expected value of the data quality metric according to the analysis of historical data.

                • LowerLimit (float) --

                  The lower limit of the data quality metric value according to the analysis of historical data.

                • UpperLimit (float) --

                  The upper limit of the data quality metric value according to the analysis of historical data.

              • NewRules (list) --

                A list of new data quality rules generated as part of the observation based on the data quality metric value.

                • (string) --

        • AggregatedMetrics (dict) --

          A summary of DataQualityAggregatedMetrics objects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.

          • TotalRowsProcessed (float) --

            The total number of rows that were processed during the data quality evaluation.

          • TotalRowsPassed (float) --

            The total number of rows that passed all applicable data quality rules.

          • TotalRowsFailed (float) --

            The total number of rows that failed one or more data quality rules.

          • TotalRulesProcessed (float) --

            The total number of data quality rules that were evaluated.

          • TotalRulesPassed (float) --

            The total number of data quality rules that passed their evaluation criteria.

          • TotalRulesFailed (float) --

            The total number of data quality rules that failed their evaluation criteria.

    • ResultsNotFound (list) --

      A list of result IDs for which results were not found.

      • (string) --

GetDataQualityResult (updated) Link ¶
Changes (response)
{'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                         'CatalogId': 'string',
                                         'ConnectionName': 'string',
                                         'DatabaseName': 'string',
                                         'PreProcessingQuery': 'string',
                                         'TableName': 'string'}}}

Retrieves the result of a data quality rule evaluation.

See also: AWS API Documentation

Request Syntax

client.get_data_quality_result(
    ResultId='string'
)
type ResultId:

string

param ResultId:

[REQUIRED]

A unique result ID for the data quality result.

rtype:

dict

returns:

Response Syntax

{
    'ResultId': 'string',
    'ProfileId': 'string',
    'Score': 123.0,
    'DataSource': {
        'GlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
        'DataQualityGlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            },
            'PreProcessingQuery': 'string'
        }
    },
    'RulesetName': 'string',
    'EvaluationContext': 'string',
    'StartedOn': datetime(2015, 1, 1),
    'CompletedOn': datetime(2015, 1, 1),
    'JobName': 'string',
    'JobRunId': 'string',
    'RulesetEvaluationRunId': 'string',
    'RuleResults': [
        {
            'Name': 'string',
            'Description': 'string',
            'EvaluationMessage': 'string',
            'Result': 'PASS'|'FAIL'|'ERROR',
            'EvaluatedMetrics': {
                'string': 123.0
            },
            'EvaluatedRule': 'string',
            'RuleMetrics': {
                'string': 123.0
            }
        },
    ],
    'AnalyzerResults': [
        {
            'Name': 'string',
            'Description': 'string',
            'EvaluationMessage': 'string',
            'EvaluatedMetrics': {
                'string': 123.0
            }
        },
    ],
    'Observations': [
        {
            'Description': 'string',
            'MetricBasedObservation': {
                'MetricName': 'string',
                'StatisticId': 'string',
                'MetricValues': {
                    'ActualValue': 123.0,
                    'ExpectedValue': 123.0,
                    'LowerLimit': 123.0,
                    'UpperLimit': 123.0
                },
                'NewRules': [
                    'string',
                ]
            }
        },
    ],
    'AggregatedMetrics': {
        'TotalRowsProcessed': 123.0,
        'TotalRowsPassed': 123.0,
        'TotalRowsFailed': 123.0,
        'TotalRulesProcessed': 123.0,
        'TotalRulesPassed': 123.0,
        'TotalRulesFailed': 123.0
    }
}

Response Structure

  • (dict) --

    The response for the data quality result.

    • ResultId (string) --

      A unique result ID for the data quality result.

    • ProfileId (string) --

      The Profile ID for the data quality result.

    • Score (float) --

      An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.

    • DataSource (dict) --

      The table associated with the data quality result, if any.

      • GlueTable (dict) --

        An Glue table.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

      • DataQualityGlueTable (dict) --

        An Glue table for Data Quality Operations.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

        • PreProcessingQuery (string) --

          SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

    • RulesetName (string) --

      The name of the ruleset associated with the data quality result.

    • EvaluationContext (string) --

      In the context of a job in Glue Studio, each node in the canvas is typically assigned some sort of name and data quality nodes will have names. In the case of multiple nodes, the evaluationContext can differentiate the nodes.

    • StartedOn (datetime) --

      The date and time when the run for this data quality result started.

    • CompletedOn (datetime) --

      The date and time when the run for this data quality result was completed.

    • JobName (string) --

      The job name associated with the data quality result, if any.

    • JobRunId (string) --

      The job run ID associated with the data quality result, if any.

    • RulesetEvaluationRunId (string) --

      The unique run ID associated with the ruleset evaluation.

    • RuleResults (list) --

      A list of DataQualityRuleResult objects representing the results for each rule.

      • (dict) --

        Describes the result of the evaluation of a data quality rule.

        • Name (string) --

          The name of the data quality rule.

        • Description (string) --

          A description of the data quality rule.

        • EvaluationMessage (string) --

          An evaluation message.

        • Result (string) --

          A pass or fail status for the rule.

        • EvaluatedMetrics (dict) --

          A map of metrics associated with the evaluation of the rule.

          • (string) --

            • (float) --

        • EvaluatedRule (string) --

          The evaluated rule.

        • RuleMetrics (dict) --

          A map containing metrics associated with the evaluation of the rule based on row-level results.

          • (string) --

            • (float) --

    • AnalyzerResults (list) --

      A list of DataQualityAnalyzerResult objects representing the results for each analyzer.

      • (dict) --

        Describes the result of the evaluation of a data quality analyzer.

        • Name (string) --

          The name of the data quality analyzer.

        • Description (string) --

          A description of the data quality analyzer.

        • EvaluationMessage (string) --

          An evaluation message.

        • EvaluatedMetrics (dict) --

          A map of metrics associated with the evaluation of the analyzer.

          • (string) --

            • (float) --

    • Observations (list) --

      A list of DataQualityObservation objects representing the observations generated after evaluating the rules and analyzers.

      • (dict) --

        Describes the observation generated after evaluating the rules and analyzers.

        • Description (string) --

          A description of the data quality observation.

        • MetricBasedObservation (dict) --

          An object of type MetricBasedObservation representing the observation that is based on evaluated data quality metrics.

          • MetricName (string) --

            The name of the data quality metric used for generating the observation.

          • StatisticId (string) --

            The Statistic ID.

          • MetricValues (dict) --

            An object of type DataQualityMetricValues representing the analysis of the data quality metric value.

            • ActualValue (float) --

              The actual value of the data quality metric.

            • ExpectedValue (float) --

              The expected value of the data quality metric according to the analysis of historical data.

            • LowerLimit (float) --

              The lower limit of the data quality metric value according to the analysis of historical data.

            • UpperLimit (float) --

              The upper limit of the data quality metric value according to the analysis of historical data.

          • NewRules (list) --

            A list of new data quality rules generated as part of the observation based on the data quality metric value.

            • (string) --

    • AggregatedMetrics (dict) --

      A summary of DataQualityAggregatedMetrics objects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.

      • TotalRowsProcessed (float) --

        The total number of rows that were processed during the data quality evaluation.

      • TotalRowsPassed (float) --

        The total number of rows that passed all applicable data quality rules.

      • TotalRowsFailed (float) --

        The total number of rows that failed one or more data quality rules.

      • TotalRulesProcessed (float) --

        The total number of data quality rules that were evaluated.

      • TotalRulesPassed (float) --

        The total number of data quality rules that passed their evaluation criteria.

      • TotalRulesFailed (float) --

        The total number of data quality rules that failed their evaluation criteria.

GetDataQualityRuleRecommendationRun (updated) Link ¶
Changes (response)
{'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                         'CatalogId': 'string',
                                         'ConnectionName': 'string',
                                         'DatabaseName': 'string',
                                         'PreProcessingQuery': 'string',
                                         'TableName': 'string'}}}

Gets the specified recommendation run that was used to generate rules.

See also: AWS API Documentation

Request Syntax

client.get_data_quality_rule_recommendation_run(
    RunId='string'
)
type RunId:

string

param RunId:

[REQUIRED]

The unique run identifier associated with this run.

rtype:

dict

returns:

Response Syntax

{
    'RunId': 'string',
    'DataSource': {
        'GlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
        'DataQualityGlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            },
            'PreProcessingQuery': 'string'
        }
    },
    'Role': 'string',
    'NumberOfWorkers': 123,
    'Timeout': 123,
    'Status': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
    'ErrorString': 'string',
    'StartedOn': datetime(2015, 1, 1),
    'LastModifiedOn': datetime(2015, 1, 1),
    'CompletedOn': datetime(2015, 1, 1),
    'ExecutionTime': 123,
    'RecommendedRuleset': 'string',
    'CreatedRulesetName': 'string',
    'DataQualitySecurityConfiguration': 'string'
}

Response Structure

  • (dict) --

    The response for the Data Quality rule recommendation run.

    • RunId (string) --

      The unique run identifier associated with this run.

    • DataSource (dict) --

      The data source (an Glue table) associated with this run.

      • GlueTable (dict) --

        An Glue table.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

      • DataQualityGlueTable (dict) --

        An Glue table for Data Quality Operations.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

        • PreProcessingQuery (string) --

          SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

    • Role (string) --

      An IAM role supplied to encrypt the results of the run.

    • NumberOfWorkers (integer) --

      The number of G.1X workers to be used in the run. The default is 5.

    • Timeout (integer) --

      The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

    • Status (string) --

      The status for this run.

    • ErrorString (string) --

      The error strings that are associated with the run.

    • StartedOn (datetime) --

      The date and time when this run started.

    • LastModifiedOn (datetime) --

      A timestamp. The last point in time when this data quality rule recommendation run was modified.

    • CompletedOn (datetime) --

      The date and time when this run was completed.

    • ExecutionTime (integer) --

      The amount of time (in seconds) that the run consumed resources.

    • RecommendedRuleset (string) --

      When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member has those rules in Data Quality Definition Language (DQDL) format.

    • CreatedRulesetName (string) --

      The name of the ruleset that was created by the run.

    • DataQualitySecurityConfiguration (string) --

      The name of the security configuration created with the data quality encryption option.

GetDataQualityRulesetEvaluationRun (updated) Link ¶
Changes (response)
{'AdditionalDataSources': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                    'CatalogId': 'string',
                                                    'ConnectionName': 'string',
                                                    'DatabaseName': 'string',
                                                    'PreProcessingQuery': 'string',
                                                    'TableName': 'string'}},
 'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                         'CatalogId': 'string',
                                         'ConnectionName': 'string',
                                         'DatabaseName': 'string',
                                         'PreProcessingQuery': 'string',
                                         'TableName': 'string'}}}

Retrieves a specific run where a ruleset is evaluated against a data source.

See also: AWS API Documentation

Request Syntax

client.get_data_quality_ruleset_evaluation_run(
    RunId='string'
)
type RunId:

string

param RunId:

[REQUIRED]

The unique run identifier associated with this run.

rtype:

dict

returns:

Response Syntax

{
    'RunId': 'string',
    'DataSource': {
        'GlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
        'DataQualityGlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            },
            'PreProcessingQuery': 'string'
        }
    },
    'Role': 'string',
    'NumberOfWorkers': 123,
    'Timeout': 123,
    'AdditionalRunOptions': {
        'CloudWatchMetricsEnabled': True|False,
        'ResultsS3Prefix': 'string',
        'CompositeRuleEvaluationMethod': 'COLUMN'|'ROW'
    },
    'Status': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
    'ErrorString': 'string',
    'StartedOn': datetime(2015, 1, 1),
    'LastModifiedOn': datetime(2015, 1, 1),
    'CompletedOn': datetime(2015, 1, 1),
    'ExecutionTime': 123,
    'RulesetNames': [
        'string',
    ],
    'ResultIds': [
        'string',
    ],
    'AdditionalDataSources': {
        'string': {
            'GlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                }
            },
            'DataQualityGlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                },
                'PreProcessingQuery': 'string'
            }
        }
    }
}

Response Structure

  • (dict) --

    • RunId (string) --

      The unique run identifier associated with this run.

    • DataSource (dict) --

      The data source (an Glue table) associated with this evaluation run.

      • GlueTable (dict) --

        An Glue table.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

      • DataQualityGlueTable (dict) --

        An Glue table for Data Quality Operations.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

        • PreProcessingQuery (string) --

          SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

    • Role (string) --

      An IAM role supplied to encrypt the results of the run.

    • NumberOfWorkers (integer) --

      The number of G.1X workers to be used in the run. The default is 5.

    • Timeout (integer) --

      The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

    • AdditionalRunOptions (dict) --

      Additional run options you can specify for an evaluation run.

      • CloudWatchMetricsEnabled (boolean) --

        Whether or not to enable CloudWatch metrics.

      • ResultsS3Prefix (string) --

        Prefix for Amazon S3 to store results.

      • CompositeRuleEvaluationMethod (string) --

        Set the evaluation method for composite rules in the ruleset to ROW/COLUMN

    • Status (string) --

      The status for this run.

    • ErrorString (string) --

      The error strings that are associated with the run.

    • StartedOn (datetime) --

      The date and time when this run started.

    • LastModifiedOn (datetime) --

      A timestamp. The last point in time when this data quality rule recommendation run was modified.

    • CompletedOn (datetime) --

      The date and time when this run was completed.

    • ExecutionTime (integer) --

      The amount of time (in seconds) that the run consumed resources.

    • RulesetNames (list) --

      A list of ruleset names for the run. Currently, this parameter takes only one Ruleset name.

      • (string) --

    • ResultIds (list) --

      A list of result IDs for the data quality results for the run.

      • (string) --

    • AdditionalDataSources (dict) --

      A map of reference strings to additional data sources you can specify for an evaluation run.

      • (string) --

        • (dict) --

          A data source (an Glue table) for which you want data quality results.

          • GlueTable (dict) --

            An Glue table.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

          • DataQualityGlueTable (dict) --

            An Glue table for Data Quality Operations.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

            • PreProcessingQuery (string) --

              SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

ListDataQualityResults (updated) Link ¶
Changes (request, response)
Request
{'Filter': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                    'CatalogId': 'string',
                                                    'ConnectionName': 'string',
                                                    'DatabaseName': 'string',
                                                    'PreProcessingQuery': 'string',
                                                    'TableName': 'string'}}}}
Response
{'Results': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                     'CatalogId': 'string',
                                                     'ConnectionName': 'string',
                                                     'DatabaseName': 'string',
                                                     'PreProcessingQuery': 'string',
                                                     'TableName': 'string'}}}}

Returns all data quality execution results for your account.

See also: AWS API Documentation

Request Syntax

client.list_data_quality_results(
    Filter={
        'DataSource': {
            'GlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                }
            },
            'DataQualityGlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                },
                'PreProcessingQuery': 'string'
            }
        },
        'JobName': 'string',
        'JobRunId': 'string',
        'StartedAfter': datetime(2015, 1, 1),
        'StartedBefore': datetime(2015, 1, 1)
    },
    NextToken='string',
    MaxResults=123
)
type Filter:

dict

param Filter:

The filter criteria.

  • DataSource (dict) --

    Filter results by the specified data source. For example, retrieving all results for an Glue table.

    • GlueTable (dict) --

      An Glue table.

      • DatabaseName (string) -- [REQUIRED]

        A database name in the Glue Data Catalog.

      • TableName (string) -- [REQUIRED]

        A table name in the Glue Data Catalog.

      • CatalogId (string) --

        A unique identifier for the Glue Data Catalog.

      • ConnectionName (string) --

        The name of the connection to the Glue Data Catalog.

      • AdditionalOptions (dict) --

        Additional options for the table. Currently there are two keys supported:

        • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

        • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

        • (string) --

          • (string) --

    • DataQualityGlueTable (dict) --

      An Glue table for Data Quality Operations.

      • DatabaseName (string) -- [REQUIRED]

        A database name in the Glue Data Catalog.

      • TableName (string) -- [REQUIRED]

        A table name in the Glue Data Catalog.

      • CatalogId (string) --

        A unique identifier for the Glue Data Catalog.

      • ConnectionName (string) --

        The name of the connection to the Glue Data Catalog.

      • AdditionalOptions (dict) --

        Additional options for the table. Currently there are two keys supported:

        • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

        • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

        • (string) --

          • (string) --

      • PreProcessingQuery (string) --

        SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

  • JobName (string) --

    Filter results by the specified job name.

  • JobRunId (string) --

    Filter results by the specified job run ID.

  • StartedAfter (datetime) --

    Filter results by runs that started after this time.

  • StartedBefore (datetime) --

    Filter results by runs that started before this time.

type NextToken:

string

param NextToken:

A paginated token to offset the results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return.

rtype:

dict

returns:

Response Syntax

{
    'Results': [
        {
            'ResultId': 'string',
            'DataSource': {
                'GlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    }
                },
                'DataQualityGlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    },
                    'PreProcessingQuery': 'string'
                }
            },
            'JobName': 'string',
            'JobRunId': 'string',
            'StartedOn': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Results (list) --

      A list of DataQualityResultDescription objects.

      • (dict) --

        Describes a data quality result.

        • ResultId (string) --

          The unique result ID for this data quality result.

        • DataSource (dict) --

          The table name associated with the data quality result.

          • GlueTable (dict) --

            An Glue table.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

          • DataQualityGlueTable (dict) --

            An Glue table for Data Quality Operations.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

            • PreProcessingQuery (string) --

              SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

        • JobName (string) --

          The job name associated with the data quality result.

        • JobRunId (string) --

          The job run ID associated with the data quality result.

        • StartedOn (datetime) --

          The time that the run started for this data quality result.

    • NextToken (string) --

      A pagination token, if more results are available.

ListDataQualityRuleRecommendationRuns (updated) Link ¶
Changes (request, response)
Request
{'Filter': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                    'CatalogId': 'string',
                                                    'ConnectionName': 'string',
                                                    'DatabaseName': 'string',
                                                    'PreProcessingQuery': 'string',
                                                    'TableName': 'string'}}}}
Response
{'Runs': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                  'CatalogId': 'string',
                                                  'ConnectionName': 'string',
                                                  'DatabaseName': 'string',
                                                  'PreProcessingQuery': 'string',
                                                  'TableName': 'string'}}}}

Lists the recommendation runs meeting the filter criteria.

See also: AWS API Documentation

Request Syntax

client.list_data_quality_rule_recommendation_runs(
    Filter={
        'DataSource': {
            'GlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                }
            },
            'DataQualityGlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                },
                'PreProcessingQuery': 'string'
            }
        },
        'StartedBefore': datetime(2015, 1, 1),
        'StartedAfter': datetime(2015, 1, 1)
    },
    NextToken='string',
    MaxResults=123
)
type Filter:

dict

param Filter:

The filter criteria.

  • DataSource (dict) -- [REQUIRED]

    Filter based on a specified data source (Glue table).

    • GlueTable (dict) --

      An Glue table.

      • DatabaseName (string) -- [REQUIRED]

        A database name in the Glue Data Catalog.

      • TableName (string) -- [REQUIRED]

        A table name in the Glue Data Catalog.

      • CatalogId (string) --

        A unique identifier for the Glue Data Catalog.

      • ConnectionName (string) --

        The name of the connection to the Glue Data Catalog.

      • AdditionalOptions (dict) --

        Additional options for the table. Currently there are two keys supported:

        • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

        • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

        • (string) --

          • (string) --

    • DataQualityGlueTable (dict) --

      An Glue table for Data Quality Operations.

      • DatabaseName (string) -- [REQUIRED]

        A database name in the Glue Data Catalog.

      • TableName (string) -- [REQUIRED]

        A table name in the Glue Data Catalog.

      • CatalogId (string) --

        A unique identifier for the Glue Data Catalog.

      • ConnectionName (string) --

        The name of the connection to the Glue Data Catalog.

      • AdditionalOptions (dict) --

        Additional options for the table. Currently there are two keys supported:

        • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

        • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

        • (string) --

          • (string) --

      • PreProcessingQuery (string) --

        SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

  • StartedBefore (datetime) --

    Filter based on time for results started before provided time.

  • StartedAfter (datetime) --

    Filter based on time for results started after provided time.

type NextToken:

string

param NextToken:

A paginated token to offset the results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return.

rtype:

dict

returns:

Response Syntax

{
    'Runs': [
        {
            'RunId': 'string',
            'Status': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
            'StartedOn': datetime(2015, 1, 1),
            'DataSource': {
                'GlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    }
                },
                'DataQualityGlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    },
                    'PreProcessingQuery': 'string'
                }
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Runs (list) --

      A list of DataQualityRuleRecommendationRunDescription objects.

      • (dict) --

        Describes the result of a data quality rule recommendation run.

        • RunId (string) --

          The unique run identifier associated with this run.

        • Status (string) --

          The status for this run.

        • StartedOn (datetime) --

          The date and time when this run started.

        • DataSource (dict) --

          The data source (Glue table) associated with the recommendation run.

          • GlueTable (dict) --

            An Glue table.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

          • DataQualityGlueTable (dict) --

            An Glue table for Data Quality Operations.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

            • PreProcessingQuery (string) --

              SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

    • NextToken (string) --

      A pagination token, if more results are available.

ListDataQualityRulesetEvaluationRuns (updated) Link ¶
Changes (request, response)
Request
{'Filter': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                    'CatalogId': 'string',
                                                    'ConnectionName': 'string',
                                                    'DatabaseName': 'string',
                                                    'PreProcessingQuery': 'string',
                                                    'TableName': 'string'}}}}
Response
{'Runs': {'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                  'CatalogId': 'string',
                                                  'ConnectionName': 'string',
                                                  'DatabaseName': 'string',
                                                  'PreProcessingQuery': 'string',
                                                  'TableName': 'string'}}}}

Lists all the runs meeting the filter criteria, where a ruleset is evaluated against a data source.

See also: AWS API Documentation

Request Syntax

client.list_data_quality_ruleset_evaluation_runs(
    Filter={
        'DataSource': {
            'GlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                }
            },
            'DataQualityGlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                },
                'PreProcessingQuery': 'string'
            }
        },
        'StartedBefore': datetime(2015, 1, 1),
        'StartedAfter': datetime(2015, 1, 1)
    },
    NextToken='string',
    MaxResults=123
)
type Filter:

dict

param Filter:

The filter criteria.

  • DataSource (dict) -- [REQUIRED]

    Filter based on a data source (an Glue table) associated with the run.

    • GlueTable (dict) --

      An Glue table.

      • DatabaseName (string) -- [REQUIRED]

        A database name in the Glue Data Catalog.

      • TableName (string) -- [REQUIRED]

        A table name in the Glue Data Catalog.

      • CatalogId (string) --

        A unique identifier for the Glue Data Catalog.

      • ConnectionName (string) --

        The name of the connection to the Glue Data Catalog.

      • AdditionalOptions (dict) --

        Additional options for the table. Currently there are two keys supported:

        • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

        • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

        • (string) --

          • (string) --

    • DataQualityGlueTable (dict) --

      An Glue table for Data Quality Operations.

      • DatabaseName (string) -- [REQUIRED]

        A database name in the Glue Data Catalog.

      • TableName (string) -- [REQUIRED]

        A table name in the Glue Data Catalog.

      • CatalogId (string) --

        A unique identifier for the Glue Data Catalog.

      • ConnectionName (string) --

        The name of the connection to the Glue Data Catalog.

      • AdditionalOptions (dict) --

        Additional options for the table. Currently there are two keys supported:

        • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

        • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

        • (string) --

          • (string) --

      • PreProcessingQuery (string) --

        SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

  • StartedBefore (datetime) --

    Filter results by runs that started before this time.

  • StartedAfter (datetime) --

    Filter results by runs that started after this time.

type NextToken:

string

param NextToken:

A paginated token to offset the results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return.

rtype:

dict

returns:

Response Syntax

{
    'Runs': [
        {
            'RunId': 'string',
            'Status': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT',
            'StartedOn': datetime(2015, 1, 1),
            'DataSource': {
                'GlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    }
                },
                'DataQualityGlueTable': {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    },
                    'PreProcessingQuery': 'string'
                }
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Runs (list) --

      A list of DataQualityRulesetEvaluationRunDescription objects representing data quality ruleset runs.

      • (dict) --

        Describes the result of a data quality ruleset evaluation run.

        • RunId (string) --

          The unique run identifier associated with this run.

        • Status (string) --

          The status for this run.

        • StartedOn (datetime) --

          The date and time when the run started.

        • DataSource (dict) --

          The data source (an Glue table) associated with the run.

          • GlueTable (dict) --

            An Glue table.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

          • DataQualityGlueTable (dict) --

            An Glue table for Data Quality Operations.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

            • PreProcessingQuery (string) --

              SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

    • NextToken (string) --

      A pagination token, if more results are available.

StartDataQualityRuleRecommendationRun (updated) Link ¶
Changes (request)
{'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                         'CatalogId': 'string',
                                         'ConnectionName': 'string',
                                         'DatabaseName': 'string',
                                         'PreProcessingQuery': 'string',
                                         'TableName': 'string'}}}

Starts a recommendation run that is used to generate rules when you don't know what rules to write. Glue Data Quality analyzes the data and comes up with recommendations for a potential ruleset. You can then triage the ruleset and modify the generated ruleset to your liking.

Recommendation runs are automatically deleted after 90 days.

See also: AWS API Documentation

Request Syntax

client.start_data_quality_rule_recommendation_run(
    DataSource={
        'GlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
        'DataQualityGlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            },
            'PreProcessingQuery': 'string'
        }
    },
    Role='string',
    NumberOfWorkers=123,
    Timeout=123,
    CreatedRulesetName='string',
    DataQualitySecurityConfiguration='string',
    ClientToken='string'
)
type DataSource:

dict

param DataSource:

[REQUIRED]

The data source (Glue table) associated with this run.

  • GlueTable (dict) --

    An Glue table.

    • DatabaseName (string) -- [REQUIRED]

      A database name in the Glue Data Catalog.

    • TableName (string) -- [REQUIRED]

      A table name in the Glue Data Catalog.

    • CatalogId (string) --

      A unique identifier for the Glue Data Catalog.

    • ConnectionName (string) --

      The name of the connection to the Glue Data Catalog.

    • AdditionalOptions (dict) --

      Additional options for the table. Currently there are two keys supported:

      • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

      • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

      • (string) --

        • (string) --

  • DataQualityGlueTable (dict) --

    An Glue table for Data Quality Operations.

    • DatabaseName (string) -- [REQUIRED]

      A database name in the Glue Data Catalog.

    • TableName (string) -- [REQUIRED]

      A table name in the Glue Data Catalog.

    • CatalogId (string) --

      A unique identifier for the Glue Data Catalog.

    • ConnectionName (string) --

      The name of the connection to the Glue Data Catalog.

    • AdditionalOptions (dict) --

      Additional options for the table. Currently there are two keys supported:

      • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

      • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

      • (string) --

        • (string) --

    • PreProcessingQuery (string) --

      SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

type Role:

string

param Role:

[REQUIRED]

An IAM role supplied to encrypt the results of the run.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of G.1X workers to be used in the run. The default is 5.

type Timeout:

integer

param Timeout:

The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

type CreatedRulesetName:

string

param CreatedRulesetName:

A name for the ruleset.

type DataQualitySecurityConfiguration:

string

param DataQualitySecurityConfiguration:

The name of the security configuration created with the data quality encryption option.

type ClientToken:

string

param ClientToken:

Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.

rtype:

dict

returns:

Response Syntax

{
    'RunId': 'string'
}

Response Structure

  • (dict) --

    • RunId (string) --

      The unique run identifier associated with this run.

StartDataQualityRulesetEvaluationRun (updated) Link ¶
Changes (request)
{'AdditionalDataSources': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                                    'CatalogId': 'string',
                                                    'ConnectionName': 'string',
                                                    'DatabaseName': 'string',
                                                    'PreProcessingQuery': 'string',
                                                    'TableName': 'string'}},
 'DataSource': {'DataQualityGlueTable': {'AdditionalOptions': {'string': 'string'},
                                         'CatalogId': 'string',
                                         'ConnectionName': 'string',
                                         'DatabaseName': 'string',
                                         'PreProcessingQuery': 'string',
                                         'TableName': 'string'}}}

Once you have a ruleset definition (either recommended or your own), you call this operation to evaluate the ruleset against a data source (Glue table). The evaluation computes results which you can retrieve with the GetDataQualityResult API.

See also: AWS API Documentation

Request Syntax

client.start_data_quality_ruleset_evaluation_run(
    DataSource={
        'GlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
        'DataQualityGlueTable': {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            },
            'PreProcessingQuery': 'string'
        }
    },
    Role='string',
    NumberOfWorkers=123,
    Timeout=123,
    ClientToken='string',
    AdditionalRunOptions={
        'CloudWatchMetricsEnabled': True|False,
        'ResultsS3Prefix': 'string',
        'CompositeRuleEvaluationMethod': 'COLUMN'|'ROW'
    },
    RulesetNames=[
        'string',
    ],
    AdditionalDataSources={
        'string': {
            'GlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                }
            },
            'DataQualityGlueTable': {
                'DatabaseName': 'string',
                'TableName': 'string',
                'CatalogId': 'string',
                'ConnectionName': 'string',
                'AdditionalOptions': {
                    'string': 'string'
                },
                'PreProcessingQuery': 'string'
            }
        }
    }
)
type DataSource:

dict

param DataSource:

[REQUIRED]

The data source (Glue table) associated with this run.

  • GlueTable (dict) --

    An Glue table.

    • DatabaseName (string) -- [REQUIRED]

      A database name in the Glue Data Catalog.

    • TableName (string) -- [REQUIRED]

      A table name in the Glue Data Catalog.

    • CatalogId (string) --

      A unique identifier for the Glue Data Catalog.

    • ConnectionName (string) --

      The name of the connection to the Glue Data Catalog.

    • AdditionalOptions (dict) --

      Additional options for the table. Currently there are two keys supported:

      • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

      • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

      • (string) --

        • (string) --

  • DataQualityGlueTable (dict) --

    An Glue table for Data Quality Operations.

    • DatabaseName (string) -- [REQUIRED]

      A database name in the Glue Data Catalog.

    • TableName (string) -- [REQUIRED]

      A table name in the Glue Data Catalog.

    • CatalogId (string) --

      A unique identifier for the Glue Data Catalog.

    • ConnectionName (string) --

      The name of the connection to the Glue Data Catalog.

    • AdditionalOptions (dict) --

      Additional options for the table. Currently there are two keys supported:

      • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

      • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

      • (string) --

        • (string) --

    • PreProcessingQuery (string) --

      SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

type Role:

string

param Role:

[REQUIRED]

An IAM role supplied to encrypt the results of the run.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of G.1X workers to be used in the run. The default is 5.

type Timeout:

integer

param Timeout:

The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

type ClientToken:

string

param ClientToken:

Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.

type AdditionalRunOptions:

dict

param AdditionalRunOptions:

Additional run options you can specify for an evaluation run.

  • CloudWatchMetricsEnabled (boolean) --

    Whether or not to enable CloudWatch metrics.

  • ResultsS3Prefix (string) --

    Prefix for Amazon S3 to store results.

  • CompositeRuleEvaluationMethod (string) --

    Set the evaluation method for composite rules in the ruleset to ROW/COLUMN

type RulesetNames:

list

param RulesetNames:

[REQUIRED]

A list of ruleset names.

  • (string) --

type AdditionalDataSources:

dict

param AdditionalDataSources:

A map of reference strings to additional data sources you can specify for an evaluation run.

  • (string) --

    • (dict) --

      A data source (an Glue table) for which you want data quality results.

      • GlueTable (dict) --

        An Glue table.

        • DatabaseName (string) -- [REQUIRED]

          A database name in the Glue Data Catalog.

        • TableName (string) -- [REQUIRED]

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

      • DataQualityGlueTable (dict) --

        An Glue table for Data Quality Operations.

        • DatabaseName (string) -- [REQUIRED]

          A database name in the Glue Data Catalog.

        • TableName (string) -- [REQUIRED]

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

        • PreProcessingQuery (string) --

          SQL Query of SparkSQL format that can be used to pre-process the data for the table in Glue Data Catalog, before running the Data Quality Operation.

rtype:

dict

returns:

Response Syntax

{
    'RunId': 'string'
}

Response Structure

  • (dict) --

    • RunId (string) --

      The unique run identifier associated with this run.