-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-bigquery-batch: Option 'Discover Views'
- Loading branch information
1 parent
1f1e7be
commit eb7a1fc
Showing
7 changed files
with
357 additions
and
15 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
source-bigquery-batch/.snapshots/TestCaptureFromView-Capture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ================================ | ||
# Collection "acmeCo/test/capturefromview_194890": 23 Documents | ||
# ================================ | ||
{"_meta":{"polled":"<TIMESTAMP>","index":0,"row_id":0},"id":0,"name":"Row 0","updated_at":"2025-02-13T12:00:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":1,"row_id":1},"id":1,"name":"Row 1","updated_at":"2025-02-13T12:01:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":2,"row_id":2},"id":2,"name":"Row 2","updated_at":"2025-02-13T12:02:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":3,"row_id":3},"id":3,"name":"Row 3","updated_at":"2025-02-13T12:03:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":4,"row_id":4},"id":4,"name":"Row 4","updated_at":"2025-02-13T12:04:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":5,"row_id":5},"id":5,"name":"Row 5","updated_at":"2025-02-13T12:05:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":6,"row_id":6},"id":6,"name":"Row 6","updated_at":"2025-02-13T12:06:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":7,"row_id":7},"id":7,"name":"Row 7","updated_at":"2025-02-13T12:07:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":8,"row_id":8},"id":8,"name":"Row 8","updated_at":"2025-02-13T12:08:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":9,"row_id":9},"id":9,"name":"Row 9","updated_at":"2025-02-13T12:09:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":0,"row_id":10},"id":10,"name":"Row 10","updated_at":"2025-02-13T12:10:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":1,"row_id":11},"id":11,"name":"Row 11","updated_at":"2025-02-13T12:11:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":2,"row_id":12},"id":12,"name":"Row 12","updated_at":"2025-02-13T12:12:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":3,"row_id":13},"id":13,"name":"Row 13","updated_at":"2025-02-13T12:13:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":4,"row_id":14},"id":14,"name":"Row 14","updated_at":"2025-02-13T12:14:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":5,"row_id":15},"id":15,"name":"Row 15","updated_at":"2025-02-13T12:15:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":6,"row_id":16},"id":16,"name":"Row 16","updated_at":"2025-02-13T12:16:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":7,"row_id":17},"id":17,"name":"Row 17","updated_at":"2025-02-13T12:17:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":8,"row_id":18},"id":18,"name":"Row 18","updated_at":"2025-02-13T12:18:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":9,"row_id":19},"id":19,"name":"Row 19","updated_at":"2025-02-13T12:19:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":0,"row_id":20},"id":3,"name":"Row 3","updated_at":"2025-02-13T12:20:00Z","visible":true} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":1,"row_id":21},"id":4,"name":"Row 4","updated_at":"2025-02-13T12:20:00Z","visible":false} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":2,"row_id":22},"id":2,"name":"Row 2","updated_at":"2025-02-13T12:20:00Z","visible":false} | ||
# ================================ | ||
# Collection "acmeCo/test/capturefromview_227836": 11 Documents | ||
# ================================ | ||
{"_meta":{"polled":"<TIMESTAMP>","index":0,"row_id":0},"id":0,"name":"Row 0","updated_at":"2025-02-13T12:00:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":1,"row_id":1},"id":2,"name":"Row 2","updated_at":"2025-02-13T12:02:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":2,"row_id":2},"id":4,"name":"Row 4","updated_at":"2025-02-13T12:04:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":3,"row_id":3},"id":6,"name":"Row 6","updated_at":"2025-02-13T12:06:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":4,"row_id":4},"id":8,"name":"Row 8","updated_at":"2025-02-13T12:08:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":0,"row_id":5},"id":10,"name":"Row 10","updated_at":"2025-02-13T12:10:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":1,"row_id":6},"id":12,"name":"Row 12","updated_at":"2025-02-13T12:12:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":2,"row_id":7},"id":14,"name":"Row 14","updated_at":"2025-02-13T12:14:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":3,"row_id":8},"id":16,"name":"Row 16","updated_at":"2025-02-13T12:16:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":4,"row_id":9},"id":18,"name":"Row 18","updated_at":"2025-02-13T12:18:00Z"} | ||
{"_meta":{"polled":"<TIMESTAMP>","index":0,"row_id":10},"id":3,"name":"Row 3","updated_at":"2025-02-13T12:20:00Z"} | ||
# ================================ | ||
# Final State Checkpoint | ||
# ================================ | ||
{"bindingStateV1":{"capturefromview_194890":{"CursorNames":["updated_at"],"CursorValues":["2025-02-13T12:20:00Z"],"DocumentCount":23,"LastPolled":"<TIMESTAMP>"},"capturefromview_227836":{"CursorNames":["updated_at"],"CursorValues":["2025-02-13T12:20:00Z"],"DocumentCount":11,"LastPolled":"<TIMESTAMP>"}}} | ||
|
137 changes: 137 additions & 0 deletions
137
source-bigquery-batch/.snapshots/TestCaptureFromView-DiscoveryWithViews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
Binding 0: | ||
{ | ||
"resource_config_json": { | ||
"name": "capturefromview_194890", | ||
"schema": "testdata", | ||
"table": "capturefromview_194890" | ||
}, | ||
"resource_path": [ | ||
"capturefromview_194890" | ||
], | ||
"collection": { | ||
"name": "acmeCo/test/capturefromview_194890", | ||
"read_schema_json": { | ||
"type": "object", | ||
"required": [ | ||
"_meta" | ||
], | ||
"properties": { | ||
"_meta": { | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/estuary/connectors/source-bigquery-batch/document-metadata", | ||
"properties": { | ||
"polled": { | ||
"type": "string", | ||
"format": "date-time", | ||
"title": "Polled Timestamp", | ||
"description": "The time at which the update query which produced this document as executed." | ||
}, | ||
"index": { | ||
"type": "integer", | ||
"title": "Result Index", | ||
"description": "The index of this document within the query execution which produced it." | ||
}, | ||
"row_id": { | ||
"type": "integer", | ||
"title": "Row ID", | ||
"description": "Row ID of the Document" | ||
}, | ||
"op": { | ||
"type": "string", | ||
"enum": [ | ||
"c", | ||
"u", | ||
"d" | ||
], | ||
"title": "Change Operation", | ||
"description": "Operation type (c: Create / u: Update / d: Delete)", | ||
"default": "u" | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"polled", | ||
"index", | ||
"row_id" | ||
] | ||
} | ||
}, | ||
"x-infer-schema": true | ||
}, | ||
"key": [ | ||
"/_meta/polled", | ||
"/_meta/index" | ||
], | ||
"projections": null | ||
}, | ||
"state_key": "capturefromview_194890" | ||
} | ||
Binding 1: | ||
{ | ||
"resource_config_json": { | ||
"name": "capturefromview_227836", | ||
"schema": "testdata", | ||
"table": "capturefromview_227836" | ||
}, | ||
"resource_path": [ | ||
"capturefromview_227836" | ||
], | ||
"collection": { | ||
"name": "acmeCo/test/capturefromview_227836", | ||
"read_schema_json": { | ||
"type": "object", | ||
"required": [ | ||
"_meta" | ||
], | ||
"properties": { | ||
"_meta": { | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/estuary/connectors/source-bigquery-batch/document-metadata", | ||
"properties": { | ||
"polled": { | ||
"type": "string", | ||
"format": "date-time", | ||
"title": "Polled Timestamp", | ||
"description": "The time at which the update query which produced this document as executed." | ||
}, | ||
"index": { | ||
"type": "integer", | ||
"title": "Result Index", | ||
"description": "The index of this document within the query execution which produced it." | ||
}, | ||
"row_id": { | ||
"type": "integer", | ||
"title": "Row ID", | ||
"description": "Row ID of the Document" | ||
}, | ||
"op": { | ||
"type": "string", | ||
"enum": [ | ||
"c", | ||
"u", | ||
"d" | ||
], | ||
"title": "Change Operation", | ||
"description": "Operation type (c: Create / u: Update / d: Delete)", | ||
"default": "u" | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"polled", | ||
"index", | ||
"row_id" | ||
] | ||
} | ||
}, | ||
"x-infer-schema": true | ||
}, | ||
"key": [ | ||
"/_meta/polled", | ||
"/_meta/index" | ||
], | ||
"projections": null | ||
}, | ||
"state_key": "capturefromview_227836" | ||
} | ||
|
69 changes: 69 additions & 0 deletions
69
source-bigquery-batch/.snapshots/TestCaptureFromView-DiscoveryWithoutViews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Binding 0: | ||
{ | ||
"resource_config_json": { | ||
"name": "capturefromview_194890", | ||
"schema": "testdata", | ||
"table": "capturefromview_194890" | ||
}, | ||
"resource_path": [ | ||
"capturefromview_194890" | ||
], | ||
"collection": { | ||
"name": "acmeCo/test/capturefromview_194890", | ||
"read_schema_json": { | ||
"type": "object", | ||
"required": [ | ||
"_meta" | ||
], | ||
"properties": { | ||
"_meta": { | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/estuary/connectors/source-bigquery-batch/document-metadata", | ||
"properties": { | ||
"polled": { | ||
"type": "string", | ||
"format": "date-time", | ||
"title": "Polled Timestamp", | ||
"description": "The time at which the update query which produced this document as executed." | ||
}, | ||
"index": { | ||
"type": "integer", | ||
"title": "Result Index", | ||
"description": "The index of this document within the query execution which produced it." | ||
}, | ||
"row_id": { | ||
"type": "integer", | ||
"title": "Row ID", | ||
"description": "Row ID of the Document" | ||
}, | ||
"op": { | ||
"type": "string", | ||
"enum": [ | ||
"c", | ||
"u", | ||
"d" | ||
], | ||
"title": "Change Operation", | ||
"description": "Operation type (c: Create / u: Update / d: Delete)", | ||
"default": "u" | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"polled", | ||
"index", | ||
"row_id" | ||
] | ||
} | ||
}, | ||
"x-infer-schema": true | ||
}, | ||
"key": [ | ||
"/_meta/polled", | ||
"/_meta/index" | ||
], | ||
"projections": null | ||
}, | ||
"state_key": "capturefromview_194890" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.