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

Soda Core Trino 3.3.3 and 3.1.1 : Metrics 'schema' were not computed for check 'schema' #2073

Open
preeti-taneja opened this issue May 2, 2024 · 1 comment

Comments

@preeti-taneja
Copy link

Checks file have this condition
Filter PRODUCT_USAGE_SESSION_ACTIVITY_DAY [daily]:
where: cat='ase' and dt='20240429'
checks for PRODUCT_USAGE_SESSION_ACTIVITY_DAY [daily]:

  • row_count:
    warn:
    when > 191394420

  • duplicate_count(session_id, device_id_v2, product_id, product_name) = 0

  • missing_count(session_id) = 0

  • missing_count(product_name) = 0

  • schema:
    name: Confirm that required columns are present
    warn:
    when required column missing: [session_id, device_id, user_device_composite_id]
    fail:
    when required column missing:
    - product_release_id
    - product_release_id_1

When I am running the scan command, I get below error:
[17:51:06] Metrics 'schema' were not computed for check 'schema'
[17:51:06] Scan summary:
[17:51:06] 3/5 checks PASSED:
[17:51:06] PRODUCT_USAGE_SESSION_ACTIVITY_DAY [daily] in hive
[17:51:06] duplicate_count(session_id, device_id_v2, product_id, product_name) = 0 [PASSED]
[17:51:06] missing_count(session_id) = 0 [PASSED]
[17:51:06] missing_count(product_name) = 0 [PASSED]
[17:51:06] 1/5 checks WARNED:
[17:51:06] PRODUCT_USAGE_SESSION_ACTIVITY_DAY [daily] in hive
[17:51:06] row_count warn when > 191394420 [WARNED]
[17:51:06] check_value: 191394428
[17:51:06] 1/5 checks NOT EVALUATED:
[17:51:06] PRODUCT_USAGE_SESSION_ACTIVITY_DAY [daily] in hive
[17:51:06] Confirm that required columns are present [NOT EVALUATED]
[17:51:06] schema_measured = []
[17:51:06] 1 checks not evaluated.
[17:51:06] 1 errors.
[17:51:06] Oops! 1 error. 0 failure. 1 warning. 3 pass.
ERRORS:
[17:51:06] Metrics 'schema' were not computed for check 'schema'
This is with soda-core-3.3.3 soda-core-trino-3.3.3. Got the same error with soda-core-trino 3.1.1.

@tools-soda
Copy link

SAS-3359

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

2 participants