-
Notifications
You must be signed in to change notification settings - Fork 1.1k
BigQuery: add missing query statistics. #3253
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
Conversation
tswast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but unsure on whether we need an enum for statement type.
| * CREATE_VIEW | ||
| * DROP_VIEW | ||
| */ | ||
| public String getStatementType() { return statementType; } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| private final TableId ddlTargetTable; | ||
| private final Long estimatedBytesProcessed; | ||
| private final Long numDmlAffectedRows; | ||
| private final List<TableId> referencedTables; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Plumb through statistics in the API representation for query statistics:
Statement Type: SELECT, INSERT, CREATE_TABLE, etc
DDL Target Table and Operation Performed (how DDL statements manipulate their target)
DML: number of affected rows (e.g. rows affected by a UPDATE ... WHERE ...)
Referenced Tables: which tables were referenced by a query.
Total Partitions Processed
Total slot-milliseconds (query cost from a computation standpoint)