You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it is needed to perform several sql batches with queries with are almost identical but differ in one parameter. For example:
- query: SELECT * FROM foo WHERE bar = 'Spark rocks!'
output: spark.csv
- query: SELECT * FROM foo WHERE bar = 'Impala rocks!'
output: impala.csv
- query: SELECT * FROM foo WHERE bar = 'Hadoop rocks!'
output: hadoop.csv
Especially for complex sql queries, it would be very useful to provide a mechanism in the YAML batch-sql config to define a for-loop and provide a placeholder in the query and output parameter.
There was some heavy refactoring, but the old construct you created for repeatable queries is still there. I think we should roll with it, and make it more comprehensive only when the need arises.
Sometimes it is needed to perform several sql batches with queries with are almost identical but differ in one parameter. For example:
Especially for complex sql queries, it would be very useful to provide a mechanism in the YAML batch-sql config to define a for-loop and provide a placeholder in the
query
andoutput
parameter.For example, we might follow the path that Ansible chose for loops:
The text was updated successfully, but these errors were encountered: