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

SQL scripts as models #239

Open
martin-traverse opened this issue Dec 15, 2022 · 0 comments
Open

SQL scripts as models #239

martin-traverse opened this issue Dec 15, 2022 · 0 comments
Milestone

Comments

@martin-traverse
Copy link
Contributor

SQL model steps take the form of update statements:

UPDATE input_1 SET field_1 = field_1 * 2 WHERE field_2 = "some_filter";

This injects a model into the chain whose output is the input dataset with the update operations applied. The input dataset is not modified - we use the update form because it is clearer than a select when there are a lot of columns, most of which are unchanged.

Implemented by converting into spark sql or operations on a pandas data frame, mostly used for overlays.

@martin-traverse martin-traverse added this to the 0.8 milestone Dec 15, 2022
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

1 participant