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) #19166

Open
armitajli opened this issue Dec 23, 2024 · 0 comments
Open

Comments

@armitajli
Copy link

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 [SQL: /* {"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] [parameters: {'count_2': 1}] (Background on this error at: https://sqlalche.me/e/14/4xp6)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant