e47f6345f10568dd43b8d28c096870a03e70b7b3,google/datalab/contrib/bigquery/commands/_bigquery.py,,_get_execute_parameters,#Any#Any#Any#Any#Any#,175

Before Change


      if "mode" in bq_pipeline_output_config:
          execute_task_config["mode"] = bq_pipeline_output_config["mode"]

    execute_task_config["parameters"] = []
    if bq_pipeline_parameters_config:
      execute_task_config["parameters"].extend(bq_pipeline_parameters_config)
    // We merge the parameters with the airflow macros so that users can specify airflow macro
    // names (like "@ds") in sql
    airflow_macros_list = [{"name": key, "type": "STRING", "value": value}
                           for key, value in Pipeline.airflow_macros.items()]
    execute_task_config["parameters"].extend(airflow_macros_list)

    return execute_task_config

After Change


      // name conflicts.
      merged_query_parameters.update(user_defined_query_parameters)

    execute_task_config["parameters"] = [
      {"name": name, "type": type, "value": value}
      for name, (value, type) in merged_query_parameters.items()
    ]

    if bq_pipeline_output_config:
      if "table" in bq_pipeline_output_config:
        execute_task_config["table"] = bq_pipeline_output_config["table"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: googledatalab/pydatalab
Commit Name: e47f6345f10568dd43b8d28c096870a03e70b7b3
Time: 2017-12-12
Author: 4618540+rajivpb@users.noreply.github.com
File Name: google/datalab/contrib/bigquery/commands/_bigquery.py
Class Name:
Method Name: _get_execute_parameters


Project Name: tensorflow/datasets
Commit Name: 41f1eda45f6a55b792c66314c3c82118afe1ea02
Time: 2019-10-24
Author: epot@google.com
File Name: setup.py
Class Name:
Method Name:


Project Name: kubeflow/kubeflow
Commit Name: dfd8b2bd90e621aeac7c2b2ff3d9637d8b46bc12
Time: 2019-11-04
Author: 39319471+richardsliu@users.noreply.github.com
File Name: py/kubeflow/kubeflow/ci/kfctl_e2e_workflow.py
Class Name: Builder
Method Name: build