4d812aeda5ae9235f239a3a766f07c11b499606b,tools/hive-bigquery/hive_component.py,HiveComponent,execute_query,#HiveComponent#Any#,67

Before Change


        try:
            cursor.execute(query)
        except Exception as error:
            logger.error("Hive Query %s execution failed with exception %s",
                         query, error)
        return cursor.fetchall()

    def check_database_exists(self, database_name):
        Checks whether the Hive database exists

After Change


                                  logging.CRITICAL)
                    raise
        except exc.OperationalError:
            print_and_log("Hive Query %s execution failed" % str(query_cmds),
                          logging.CRITICAL)
            raise

    def check_database_exists(self, database_name):
        Checks whether the Hive database exists
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/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


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