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

Is it possible to use variables in SQL command or file? #267

Open
seanadkinson opened this issue Jun 12, 2017 · 1 comment
Open

Is it possible to use variables in SQL command or file? #267

seanadkinson opened this issue Jun 12, 2017 · 1 comment

Comments

@seanadkinson
Copy link

Hi there, thanks for creating this product.

I'd like to re-use the same SQL command across different pipelines, providing a simple variable to change how it works. Take for example:

-   step_type: extract-rds
    host_name: db
    database: mydb
    sql: |
        SELECT id, firstName, lastName
        FROM user u
        WHERE customer = '$CUSTOMER';

Is there a way for me to share this step across pipelines, and to provide $CUSTOMER?

Thank you!

@soobrosa
Copy link

We solved this in our ETL framework with Ruby. https://github.com/wunderlist/night-shift/

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