Delta logs (GraphQL)

Related queries and mutations in Catalog and lineage. Each has its own section.

Queries

getDeltaLogs (query)

getDeltaLogs is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get Delta logs for the provided table. Due to Databricks' limitations, this query field only supports forwards pagination with first and after, but not backwards with last and before.

Arguments

ArgumentTypeDescription
mconString!MCON for table to get delta logs for
startTimeDateTimeBeginning of time window to filter to. Defaults to the 10 most recent delta logs.
endTimeDateTimeEnd of time window to filter to. Defaults to the 10 most recent delta logs.
firstIntThe number of items to return (default: 10).
afterStringCursor of the last item on the previous page

Returns

DeltaLogConnection

Example

query GetDeltaLogs($mcon: String!) {
  getDeltaLogs(mcon: $mcon) {
    edges {
      cursor
    }
  }
}

Types used only by getDeltaLogs

DeltaLog

Object type. Represents a single entry in the table's Delta History

FieldTypeDescription
versionInt!Table version generated by the operation.
timestampDateTime!When this version was committed.
userNameStringName of the user that ran the operation.
operationString!Name of the operation.
operationMetricsJSONString!Metrics of the operation (for example, number of rows and files modified).
DeltaLogConnection

Object type. Describes a page of DeltaLog results

FieldTypeDescription
edges[DeltaLogConnectionEdge]!
pageInfoDeltaLogConnectionPageInfo!Holds details of the current results page
DeltaLogConnectionEdge

Object type. Describes each item in a paginated list of Delta Log results

FieldTypeDescription
cursorString!A consistent identifier for each operation in the results list
nodeDeltaLog!The Delta Log object representing a single operation
DeltaLogConnectionPageInfo

Object type. Information about the current page of Delta Log results

FieldTypeDescription
endCursorStringThe last edge's identifier, can be passed as after argument
hasNextPageBoolean!Whether there are more results to be fetched

Related types

DateTime, JSONString

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.