Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple SQL queries in Dataproc SQL job (apache#44890)
* Send multiple queries on dataproc sql job DataProcJobBuilder.add_query(query) is misleading, cause it can make you think that you can call this function multiple times with different queries and then execute and it will send all queries, but it fact it will sent the last one since its override the queries. I've added set_queries function which takes a list of strings and send it. Dataproc supports queries list. * Append query to the queries sent to dataproc instead of replacing Requested by reviewer, instead of adding a function that sets a list of queries, just fix the original function add_query that will actually append query to the queries list send to dataproc job. * Send multiple queries on dataproc sql job DataProcJobBuilder.add_query(query) is misleading, cause it can make you think that you can call this function multiple times with different queries and then execute and it will send all queries, but it fact it will sent the last one since its override the queries. I've added set_queries function which takes a list of strings and send it. Dataproc supports queries list. * Append query to the queries sent to dataproc instead of replacing Requested by reviewer, instead of adding a function that sets a list of queries, just fix the original function add_query that will actually append query to the queries list send to dataproc job. * formatter --------- Co-authored-by: Amir Mor <[email protected]>
- Loading branch information