mirror of
https://github.com/apache/impala.git
synced 2026-01-05 12:01:11 -05:00
Added execution summary, modified benchmark to handle JSON
- Added execution summary to the beeswax client and QueryResult - Modified report-benchmark-results to handle JSON and perform execution summary comparison between runs - Added comments to the new workload runner Change-Id: I9c3c5f2fdc5d8d1e70022c4077334bc44e3a2d1d Reviewed-on: http://gerrit.ent.cloudera.com:8080/3598 Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com> Tested-by: jenkins (cherry picked from commit fd0b1406be2511c202e02fa63af94fbbe5e18eee) Reviewed-on: http://gerrit.ent.cloudera.com:8080/3618
This commit is contained in:
committed by
jenkins
parent
3bed0be1df
commit
e94de02469
@@ -20,9 +20,9 @@ class PerfResultDataStore(object):
|
||||
(username, password, host, database_name)
|
||||
self.connection = MySQLdb.connect(host, username, password, database_name)
|
||||
|
||||
def get_file_format_id(self, file_format, compression):
|
||||
def get_file_format_id(self, file_format, compression_codec, compression_type):
|
||||
""" Gets the file_format_id for the fiven file_format/compression codec"""
|
||||
return self.__get_file_format_id(file_format, compression)
|
||||
return self.__get_file_format_id(file_format, compression_codec, compression_type)
|
||||
|
||||
def get_query_id(self, query_name, query):
|
||||
""" Gets the query_id for the given query name and query text """
|
||||
@@ -70,12 +70,8 @@ class PerfResultDataStore(object):
|
||||
|
||||
# Internal methods
|
||||
@cursor_wrapper
|
||||
def __get_file_format_id(self, file_format, compression, cursor):
|
||||
def __get_file_format_id(self, file_format, compression_codec, compression_type, cursor):
|
||||
""" Gets the file_format_id for the fiven file_format/compression codec"""
|
||||
if compression == 'none':
|
||||
compression_codec, compression_type = ['none', 'none']
|
||||
else:
|
||||
compression_codec, compression_type = compression.split('/')
|
||||
result = cursor.execute("select file_type_id from FileType where format=%s and "\
|
||||
"compression_codec=%s and compression_type=%s",
|
||||
(file_format, compression_codec, compression_type))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user