4d812aeda5ae9235f239a3a766f07c11b499606b,tools/hive-bigquery/gcs_storage_component.py,GCSStorageComponent,get_client,#GCSStorageComponent#,33

Before Change


        

        logger.debug("Getting GCS client")
        return storage.Client(project=self.project_id)

    def upload_file(self, bucket_name, file_name, blob_name):
        Uploads local file to GCS bucket

After Change


        try:
            client = storage.Client(project=self.project_id)
            return client
        except auth_exceptions.DefaultCredentialsError:
            print_and_log("Error while creating GCS client")

    def upload_file(self, bucket_name, file_name, blob_name):
        Uploads local file to GCS bucket
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/professional-services
Commit Name: 4d812aeda5ae9235f239a3a766f07c11b499606b
Time: 2019-01-03
Author: pkattamuri@google.com
File Name: tools/hive-bigquery/gcs_storage_component.py
Class Name: GCSStorageComponent
Method Name: get_client


Project Name: GoogleCloudPlatform/professional-services
Commit Name: 4d812aeda5ae9235f239a3a766f07c11b499606b
Time: 2019-01-03
Author: pkattamuri@google.com
File Name: tools/hive-bigquery/hive_component.py
Class Name: HiveComponent
Method Name: execute_query


Project Name: GoogleCloudPlatform/professional-services
Commit Name: 4d812aeda5ae9235f239a3a766f07c11b499606b
Time: 2019-01-03
Author: pkattamuri@google.com
File Name: tools/hive-bigquery/gcs_storage_component.py
Class Name: GCSStorageComponent
Method Name: check_bucket_exists