-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor source harness and GitHub action to add source-mysql (#25036)
* refactor to add source-mysql * refactor to add source-mysql * refactor to add source-mysql * test * Automated Change * fix if condition * try multiline * new db * add mysql catalogs --------- Co-authored-by: rodireich <rodireich@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
539 additions
and
10 deletions.
There are no files selected for viewing
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
161 changes: 161 additions & 0 deletions
161
...tors-performance/source-harness/src/main/resources/catalogs/source-mysql/10m_catalog.json
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,161 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "purchases", | ||
"namespace": "performance_10m", | ||
"json_schema": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"user_id": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"product_id": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"returned_at": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_with_timezone" | ||
}, | ||
"purchased_at": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_with_timezone" | ||
}, | ||
"added_to_cart_at": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_with_timezone" | ||
} | ||
} | ||
}, | ||
"default_cursor_field": [], | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"primary_key": [["id"]], | ||
"cursor_field": ["id"], | ||
"destination_sync_mode": "append" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "users", | ||
"namespace": "performance_10m", | ||
"json_schema": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"age": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"gender": { | ||
"type": "string" | ||
}, | ||
"height": { | ||
"type": "number" | ||
}, | ||
"weight": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"language": { | ||
"type": "string" | ||
}, | ||
"telephone": { | ||
"type": "string" | ||
}, | ||
"blood_type": { | ||
"type": "string" | ||
}, | ||
"created_at": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_with_timezone" | ||
}, | ||
"occupation": { | ||
"type": "string" | ||
}, | ||
"updated_at": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_with_timezone" | ||
}, | ||
"nationality": { | ||
"type": "string" | ||
}, | ||
"academic_degree": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"default_cursor_field": [], | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"primary_key": [["id"]], | ||
"cursor_field": ["updated_at"], | ||
"destination_sync_mode": "append" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "products", | ||
"namespace": "performance_10m", | ||
"json_schema": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "number", | ||
"airbyte_type": "integer" | ||
}, | ||
"make": { | ||
"type": "string" | ||
}, | ||
"year": { | ||
"type": "string" | ||
}, | ||
"model": { | ||
"type": "string" | ||
}, | ||
"price": { | ||
"type": "number" | ||
}, | ||
"created_at": { | ||
"type": "string", | ||
"format": "date-time", | ||
"airbyte_type": "timestamp_with_timezone" | ||
} | ||
} | ||
}, | ||
"default_cursor_field": [], | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"primary_key": [["id"]], | ||
"cursor_field": ["created_at"], | ||
"destination_sync_mode": "append" | ||
} | ||
] | ||
} |
Oops, something went wrong.