Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Source versioning #693

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

[WIP] Source versioning #693

wants to merge 2 commits into from

Conversation

bobbyiliev
Copy link
Contributor

Currently on-hold but this is the initial implementation for the source versioning refactor as per #646

The main changes to consider:

  • Marking the table attribute as optional and deprecated for both the MySQL and Postgres sources
  • Introduced a new all_tables bool attribute for the MySQL and the Loadgen sources, as in the past this was defaulting always using FOR ALL TABLES in the load gen sources (auction, marketing, tpch) and in the MySQL case whenever no table blocks were defined, we defaulted to FOR ALL TABLES. This all_tables bool attribute allows us to create sources without any tables defined as per the source versioning work
  • Introducing the new materialize_source_table_{mysql|postgres|load_generator} resource which allows us to do CREATE TABLE ... FROM SOURCE ...

Things that are still pending: #646

Currently missing tests for the webhook source.

Fixes #686
Fixes #602

Covers most of the tasks under #646

@bobbyiliev bobbyiliev force-pushed the wip-source-versioning branch from 910e645 to e4eb70d Compare January 17, 2025 12:51
Use source table instead of table from source

MySQL source: separate for tables and all tables

Loadgen source: add all tables bool attr

Add tests

Add more tests for mysql and loadgen

Add ignore columns for MySQL

Add source_id logic

Add source table migration guide

Ignore text columns for load gen source tables

Refactor source table for individual sources

Add datasource

Format examples

Add Kafka source table resource

Review updates

Update guide migration guide

Update guide migration guide

Add import examples for Kafka source tables

Add upstream mysql and postgres table names

PR change requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for CREATE TABLE ... FROM WEBHOOK Implement SQL parsing for CREATE TABLE .. FROM SOURCE
1 participant