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
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON for table to get delta logs for |
startTime | DateTime | Beginning of time window to filter to. Defaults to the 10 most recent delta logs. |
endTime | DateTime | End of time window to filter to. Defaults to the 10 most recent delta logs. |
first | Int | The number of items to return (default: 10). |
after | String | Cursor 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
getDeltaLogsDeltaLog
DeltaLogObject type. Represents a single entry in the table's Delta History
| Field | Type | Description |
|---|---|---|
version | Int! | Table version generated by the operation. |
timestamp | DateTime! | When this version was committed. |
userName | String | Name of the user that ran the operation. |
operation | String! | Name of the operation. |
operationMetrics | JSONString! | Metrics of the operation (for example, number of rows and files modified). |
DeltaLogConnection
DeltaLogConnectionObject type. Describes a page of DeltaLog results
| Field | Type | Description |
|---|---|---|
edges | [DeltaLogConnectionEdge]! | |
pageInfo | DeltaLogConnectionPageInfo! | Holds details of the current results page |
DeltaLogConnectionEdge
DeltaLogConnectionEdgeObject type. Describes each item in a paginated list of Delta Log results
| Field | Type | Description |
|---|---|---|
cursor | String! | A consistent identifier for each operation in the results list |
node | DeltaLog! | The Delta Log object representing a single operation |
DeltaLogConnectionPageInfo
DeltaLogConnectionPageInfoObject type. Information about the current page of Delta Log results
| Field | Type | Description |
|---|---|---|
endCursor | String | The last edge's identifier, can be passed as after argument |
hasNextPage | Boolean! | Whether there are more results to be fetched |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
