4d812aeda5ae9235f239a3a766f07c11b499606b,tools/hive-bigquery/hive_component.py,HiveComponent,get_table_location,#HiveComponent#Any#Any#,112

Before Change


        cursor.execute("set hive.ddl.output.format=json")
        cursor.execute("USE %s" % database_name)
        cursor.execute("desc extended %s " % table_name)
        results = json.loads(cursor.fetchall()[0][0])
        location = results["tableInfo"]["sd"]["location"]
        return location

    def drop_hive_table(self, table_name):

After Change


        

        queries = ["set hive.ddl.output.format=json",
                   "desc extended %s.%s" % (database_name, table_name)]
        results = self.execute_query(queries)
        location = json.loads(results[0][0])["tableInfo"]["sd"]["location"]
        return location
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: get_table_location


Project Name: biolab/orange3
Commit Name: f66d5ef4c6fd35b1a7d099e0c93cbdfdbdbc7902
Time: 2014-06-18
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/feature/discretization.py
Class Name: EqualWidth
Method Name: __call__


Project Name: biolab/orange3
Commit Name: f66d5ef4c6fd35b1a7d099e0c93cbdfdbdbc7902
Time: 2014-06-18
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/feature/discretization.py
Class Name: EqualFreq
Method Name: __call__