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

citibike_jinja example doesn't work #176

Open
romaain opened this issue May 10, 2023 · 2 comments
Open

citibike_jinja example doesn't work #176

romaain opened this issue May 10, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@romaain
Copy link

romaain commented May 10, 2023

When I try to include the create_schema.j2 i get the following error:

Traceback (most recent call last):
File "/usr/local/bin/schemachange", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/schemachange/cli.py", line 865, in main
deploy_command(config)
File "/usr/local/lib/python3.8/site-packages/schemachange/cli.py", line 528, in deploy_command
content = jinja_processor.render(jinja_processor.relpath(script['script_full_path']), config['vars'], config['verbose'])
File "/usr/local/lib/python3.8/site-packages/schemachange/cli.py", line 132, in render
content = template.render(**vars).strip()
File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/builds/pts/data-products/bi-products/dwh/01_snowflake/schemachange/V1.3__deploy_addition_api_at.sql", line 3, in top-level template code
{% extends 'create_stage.j2' %}
jinja2.exceptions.TemplateNotFound: create_stage.j2

I would like to add files from modules wich are placed in a folder structure:

  • modules
    • db
      • tables
        • tabA.sql
@sfc-gh-tmathew
Copy link
Collaborator

Hello @romaain

Thank you for raising the issue with the demo example.

Let us know if you are able to rerun the code based on the issue referred above.

@sfc-gh-tmathew sfc-gh-tmathew self-assigned this Sep 26, 2023
@sfc-gh-tmathew sfc-gh-tmathew added the question Further information is requested label Sep 26, 2023
@afeld
Copy link

afeld commented Dec 18, 2024

This may help: #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants