Skip to content

Conversation

ecomodeller
Copy link
Member

@ecomodeller ecomodeller commented Jan 9, 2025

Experiment with storing the matched data of a Comparer in a duckdb file.

Pretty straightforward to inspect:

>>> import duckdb
>>> con = duckdb.connect("test.db")
>>> con.sql("SHOW TABLES")
┌─────────┐
│  name   │
│ varchar │
├─────────┤
│ data    │
└─────────┘

>>> con.sql("Select * from data")
┌─────────────────────┬─────────────┬────────┬────────┐
│        time         │ Observation │   m1   │   m2   │
│    timestamp_ns     │   double    │ double │ double │
├─────────────────────┼─────────────┼────────┼────────┤
│ 2019-01-01 00:00:00 │         1.0 │    1.5 │    1.1 │
│ 2019-01-02 00:00:00 │         2.0 │    2.4 │    2.2 │
│ 2019-01-03 00:00:00 │         3.0 │    3.6 │    3.1 │
│ 2019-01-04 00:00:00 │         4.0 │    4.9 │    4.2 │
│ 2019-01-05 00:00:00 │         5.0 │    5.6 │    4.9 │
└─────────────────────┴─────────────┴────────┴────────┘

@ecomodeller
Copy link
Member Author

Conclusion: not as easy as persisting to NetCDF. Closing this experiment.

@ecomodeller ecomodeller deleted the load_save_duckdb branch February 14, 2025 12:03
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.

1 participant