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

An 5714/traces2 hotswap sei #90

Merged
merged 5 commits into from
Jan 28, 2025
Merged

Conversation

sam-xyz
Copy link
Member

@sam-xyz sam-xyz commented Jan 24, 2025

Hotswap of traces2 to traces

  1. change models that refer to silver__traces to the new gold traces table.
  2. Only change necessary columns like eth_value -> value . Columns like tx_status remain unchanged.
  3. old models are renamed to have _old suffix
  4. Also removed traces2 workflow and commented out fix model
  5. All gold tests and change silver tests
  6. Rename traces2 workflow if applicable

need to run these statements:
ALTER TABLE sei.silver_evm.traces RENAME TO sei.silver_evm.traces_old;
ALTER TABLE sei.core_evm.fact_traces RENAME TO sei.core_evm.fact_traces_old;

ALTER TABLE sei.silver_evm.traces2 RENAME TO sei.silver_evm.traces;
ALTER TABLE sei.silver_evm.fact_traces2 RENAME TO sei.core_evm.fact_traces;

Requires running dbt run -m models/evm/gold/core/tests/traces models/evm/silver/core/tests/traces --full-refresh to create gold tests

@austinFlipside austinFlipside merged commit 63539b0 into main Jan 28, 2025
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.

2 participants