ethereum-etl-airflow icon indicating copy to clipboard operation
ethereum-etl-airflow copied to clipboard

Add parser with type seed for creating tables with seed data

Open medvedev1088 opened this issue 4 years ago • 0 comments

For some parsers contract_address is a static list of addresses which is duplicated in other definitions https://github.com/blockchain-etl/ethereum-etl-airflow/pull/94/files#diff-f0b9ae4effce038c22ca6abf7dfec316R28.

Similar to dbt we can have a table definition with seed parser:

{
  "parser": {
    "type": "seed",
    "header": ["address"],
    "data": [['0xa'], ['0xb']]
  }
}

Then it can be used as a reference in other table definitions.

medvedev1088 avatar May 21 '20 08:05 medvedev1088