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

Control writing specific output in yaml file #426

Open
akizminet opened this issue May 28, 2021 · 1 comment
Open

Control writing specific output in yaml file #426

akizminet opened this issue May 28, 2021 · 1 comment

Comments

@akizminet
Copy link

I have some jobs that need to output multiple dataframes. However, I also want to control output by using environment variables. Is there any option available for controlling writing dataframes?

@lucabem
Copy link

lucabem commented Aug 10, 2022

Rigth now you could force using environment varaibles such as boolean to create empty dataframes. For example, you could query your dataframe as

SELECT *
FROM <your_data_frame>
WHERE ${create_dataframe} = 'true'

And in job_config.yaml you could create this var as

variables:
  create_dataframe: true

Finally, on output options set protectFromEmptyOutput to true

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