syedahsn opened a new pull request, #40870:
URL: https://github.com/apache/airflow/pull/40870
The glue data quality system tests are failing recently. The issue seems to
be related to how the data is formatted.
The logs from a failed run show this:
```
[2024-07-18, 16:58:06 UTC] {glue.py:490} INFO - Name
Description Result
EvaluatedMetrics EvaluationMessage
0 Rule_1 RowCount between 2 and 8 PASS
{'Dataset.*.RowCount': 4.0}
NaN
1 Rule_2 IsComplete "name" PASS
{'Column.name.Completeness': 1.0}
NaN
2 Rule_3 Uniqueness "name" > 0.95 PASS
{'Column.name.Uniqueness': 1.0}
NaN
3 Rule_4 ColumnLength "name" between 3 and 14 PASS
{'Column.name.MaximumLength': 13.0, 'Column.name.MinimumLength': 4.0}
NaN
4 Rule_5 Completeness "age" >= 0.32 PASS
{'Column.age.Completeness': 0.75}
NaN
5 Rule_6 StandardDeviation "age" between 2.8 and 3.09 PASS
{'Column.age.StandardDeviation': 2.943920288775949}
NaN
6 Rule_7 ColumnValues "age" between 22 and 31 FAIL
{'Column.age.Maximum': 30.0, 'Column.age.Minimum': 23.0} Value: NULL does not
meet the constraint requirement!
[2024-07-18, 16:58:06 UTC] {glue.py:524} INFO - AWS Glue data quality
ruleset evaluation run, total number of rules failed: 1
```
Note: The row count is listed as 4, even though only data points are given.
Reformatting the sample data seems to solve the issue.
```
[2024-07-18, 17:10:00 UTC] {glue.py:490} INFO - Name
Description Result
EvaluatedMetrics
0 Rule_1 RowCount between 1 and 6 PASS
{'Dataset.*.RowCount': 3.0}
1 Rule_2 IsComplete "name" PASS
{'Column.name.Completeness': 1.0}
2 Rule_3 Uniqueness "name" > 0.95 PASS
{'Column.name.Uniqueness': 1.0}
3 Rule_4 ColumnLength "name" between 4 and 14 PASS
{'Column.name.MaximumLength': 13.0, 'Column.name.MinimumLength': 5.0}
```
@gopidesupavan If you want to have a look and see if this is accurate or
not, I'd appreciate it.
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--
Thank you for contributing! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
Feel free to ping committers for the review!
In case of an existing issue, reference it using one of the following:
closes: #ISSUE
related: #ISSUE
How to write a good git commit message:
http://chris.beams.io/posts/git-commit/
-->
<!-- Please keep an empty line above the dashes. -->
---
**^ Add meaningful description above**
Read the **[Pull Request
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
for more information.
In case of fundamental code changes, an Airflow Improvement Proposal
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party
License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in a
newsfragment file, named `{pr_number}.significant.rst` or
`{issue_number}.significant.rst`, in
[newsfragments](https://github.com/apache/airflow/tree/main/newsfragments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]