DmlStats

Detailed statistics for DML statements

JSON representation
{"insertedRowCount":string,"deletedRowCount":string,"updatedRowCount":string,"dmlMode":enum (DmlMode),"fineGrainedDmlUnusedReason":enum (FineGrainedDmlUnusedReason)}
Fields
insertedRowCount

string (Int64Value format)

Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements

deletedRowCount

string (Int64Value format)

Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements.

updatedRowCount

string (Int64Value format)

Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements.

dmlMode

enum (DmlMode)

Output only. DML mode used.

fineGrainedDmlUnusedReason

enum (FineGrainedDmlUnusedReason)

Output only. Reason for disabling fine-grained DML if applicable.

DmlMode

Enum to specify the DML mode used.

Enums
DML_MODE_UNSPECIFIEDDefault value. This value is unused.
COARSE_GRAINED_DMLCoarse-grained DML was used.
FINE_GRAINED_DMLFine-grained DML was used.

FineGrainedDmlUnusedReason

Reason for disabling fine-grained DML. Additional values may be added in the future.

Enums
FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIEDDefault value. This value is unused.
MAX_PARTITION_SIZE_EXCEEDEDMax partition size threshold exceeded.Fine-grained DML Limitations
TABLE_NOT_ENROLLEDThe table is not enrolled for fine-grained DML.
DML_IN_MULTI_STATEMENT_TRANSACTIONThe DML statement is part of a multi-statement transaction.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.