Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nartal1 committed Jul 31, 2024
1 parent 03ed541 commit e348c84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions user_tools/src/spark_rapids_pytools/rapids/qualification.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,11 @@ def __build_global_report_summary(self,
unsupported_ops_obj = UnsupportedOpsStageDuration(self.ctxt.get_value('local', 'output',
'unsupportedOperators'))
# Generate the statistics report
stats_report = SparkQualificationStats(ctxt=self.ctxt)
stats_report.report_qualification_stats()
try:
stats_report = SparkQualificationStats(ctxt=self.ctxt)
stats_report.report_qualification_stats()
except Exception as e: # pylint: disable=broad-except
self.logger.error('Failed to generate the statistics report: %s', e)

# Calculate unsupported operators stage duration before grouping
all_apps = unsupported_ops_obj.prepare_apps_with_unsupported_stages(all_apps, unsupported_ops_df)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ local:
columns:
- 'App ID'
- 'SQL ID'
- 'Operator Name'
- 'Operator'
- 'Count'
- 'Stage Task Exec duration(seconds)'
- 'Impacted Stage duration(seconds)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _merge_dataframes(self) -> None:

agg_unsupported_df['Supported'] = False
final_df = agg_unsupported_df.rename(columns={
'Unsupported Operator': 'Operator Name',
'Unsupported Operator': 'Operator',
'Impacted_Stage_Duration': 'Impacted Stage duration(seconds)',
'Stage_Task_Duration': 'Stage Task Exec duration(seconds)'
})
Expand Down

0 comments on commit e348c84

Please sign in to comment.