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

Create DuckDB internal schema #29

Open
Tracked by #28
akvlad opened this issue Aug 13, 2024 · 1 comment
Open
Tracked by #28

Create DuckDB internal schema #29

akvlad opened this issue Aug 13, 2024 · 1 comment
Assignees

Comments

@akvlad
Copy link
Contributor

akvlad commented Aug 13, 2024

What

Every quackpipe instance should have an internal tables describing the created "merged parquet" tables.

The tables should contain

  • table name
  • table base folder path on HD
  • table fields and types
  • table order by expression

How

Add the create table logic on quackpipe startup:

CREATE TABLE tables (
  name VARCHAR PRIMARY KEY, 
  path VARCHAR,
  field_names VARCHAR[],
  field_types VARCHAR[],
  order_by VARCHAR[],
  engine VARCHAR[],
  timestamp_field: VARCHAR[],
  timestamp_precision: VARCHAR[],
  partition_by: VARCHAR[],
);

The table should be created on startup if it does not exist

The table should persist between restarts

Test the logic:

  • start a quackpipe instance. Table should be created
  • insert some data into the table
  • restart the instance. The table should contain the inserted data
Copy link

Thanks for opening an Issue! Please star this repository to motivate developers! ⭐

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

No branches or pull requests

2 participants