Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Executing Uniqueness Test in Data Quality for Columns (ORA-00937) #19170

Closed
armitajli opened this issue Dec 23, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working data quality

Comments

@armitajli
Copy link

Affected module
Backend

Describe the bug
I encountered an issue while running the data quality pipeline to test uniqueness for columns in Open Metadata. The pipeline fails to execute, and the following error appears in the logs:

(oracledb.exceptions.DatabaseError) ORA-00937: not a single-group group function

To Reproduce

Run the data quality pipeline to test uniqueness for columns of oracle in Open Metadata.
Observe the error in the logs:
/* {"app": "OpenMetadata", "version": "1.5.10.0"} */ SELECT anon_1."valuesCount", anon_1."uniqueCount" FROM (SELECT count(name) AS "valuesCount", (SELECT count(*) AS "uniqueCount" FROM (SELECT count(name) AS count_1 FROM "C##ALI"."TEST_DATA_QUALITY" GROUP BY name HAVING count(name) = :count_2) only_once) AS "uniqueCount" FROM "C##ALI"."TEST_DATA_QUALITY") anon_1 WHERE ROWNUM <= 1

Expected behavior
The data quality pipeline should execute successfully and return the counts of values and unique values without errors.

Version:

  • OS: Debian GNU/Linux 12
  • Python version: 3.10.14
  • OpenMetadata version: 1.5.10.0
  • OpenMetadata Ingestion package version: 1.5.10.0

Additional context
When I ran the query separately, I also encountered the same error. It seems that there is an issue with the subquery structure or how the aggregation functions are being used in the query.

@ayush-shah
Copy link
Member

closing as duplicate #17170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data quality
Projects
Status: No status
Development

No branches or pull requests

3 participants