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

Storage Usage Explore, field "Stage Bytes" #10

Open
ysmx-github opened this issue Jul 12, 2020 · 0 comments
Open

Storage Usage Explore, field "Stage Bytes" #10

ysmx-github opened this issue Jul 12, 2020 · 0 comments

Comments

@ysmx-github
Copy link

This is the error:
SQL Syntax Error: SQL compilation error: error line 14 at position 1 invalid identifier 'STORAGE_USAGE.STAGE_BYTES'

If database_id or database_name is selected when it switches to DATABASE_STORAGE_USAGE_HISTORY table, something goes wrong with stage_bytes. All other similar fields in storage_usage_core have something like this:

sql: {% if database_name._in_query or database_id._in_query %}
${TABLE}.AVERAGE_FAILSAFE_BYTES
{% else %}
${TABLE}.FAILSAFE_BYTES
 {% endif %};;
description: "Number of bytes of data in Fail-safe"

but stage_bytes is simply:

dimension: stage_bytes {
type: number
sql: ${TABLE}.stage_bytes ;;
description: "Number of bytes of stage storage used by files in all internal stages (named, table, and user)"
}

@ysmx-github ysmx-github changed the title Storage Usage Explore, Stage Bytes field Storage Usage Explore, field "Stage Bytes" Jul 12, 2020
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