Skip to content

Conversation

@shollyman
Copy link
Contributor

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)

@shollyman shollyman requested review from pongad and tswast May 10, 2018 22:49
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 10, 2018
Copy link
Contributor

@tswast tswast left a 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.

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.

@shollyman shollyman merged commit f1a0d3b into googleapis:master May 22, 2018
@shollyman shollyman deleted the morestuff branch May 22, 2018 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants