-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Clickhouse Schemas #150
Conversation
@marcus-snx how do we use these schemas to define the raw tables? Does this get included somehow when we define sources in dbt? I wouldn't think we need the |
These schemas get saved locally and are called when we start the indexer, and the (empty) tables get created in ClickHouse. Then, when the listener detects new data, it will insert it into these tables. |
These tables are then used as sources in dbt. |
Won't this result in these For example, what happens if an ABI suddenly changes and has one more field? It will create a new sql file, but it won't run because the table already exists. |
We would need to handle such migrations (for example by checking if a generated schema differs from an existing schema), but I think this would still be handled outside dbt? |
/parquet-data/indexers/schemas/{network_name}/{protocol_name}/{table_name}.sql
)