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 a schema.sql shortcut file #28

Open
wants to merge 2 commits into
base: lts
Choose a base branch
from
Open

Conversation

ruf-io
Copy link
Contributor

@ruf-io ruf-io commented Apr 27, 2022

Sometimes I want to just create all the sources, views, matviews right away.

I think it'd be nice to standardize by creating a schema.sql file for each demo that lets you do that.

A couple open questions:

  1. Does this create some annoying SQL duplication issues between readme and file?
  2. Is there a way to execute a SQL file through the provided docker containerized CLI? (so users dont need psql installed)

@morsapaes
Copy link
Contributor

morsapaes commented Apr 27, 2022

That's a great idea!

Is there a way to execute a SQL file through the provided docker containerized CLI? (so users dont need psql installed)

You can boot Materialize using a .sql script and mzcli (see this example). So, we should be able to just provide the docker run command that does this if folks want to get everything created for them.

@morsapaes
Copy link
Contributor

Ah, we'll want to test this through, since there might be an issue with this method: https://materializecommunity.slack.com/archives/C015KDVS7EV/p1650629278433099

@morsapaes
Copy link
Contributor

morsapaes commented May 2, 2022

Turns out the issue above was related to misconfigured healthchecks!

@bobbyiliev
Copy link
Contributor

Maybe closing this PR and reworking this to use the new dbt init feature that @dehume worked on?

@dehume
Copy link
Contributor

dehume commented Oct 17, 2023

Maybe closing this PR and reworking this to use the new dbt init feature that @dehume worked on?

If you still want to the demo to use the red panda infrastructure, it won't really line up with the dbt init. The dbt init is much more self contained and just uses load generators.

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.

4 participants