easy_sql.sql_processor.report

Module Contents

Classes

SqlProcessorReporter

StepReport

StepStatus

class easy_sql.sql_processor.report.SqlProcessorReporter(report_task_id, report_hdfs_path=None, report_es_url=None, report_es_index_prefix=None)

Bases: easy_sql.sql_processor.step.ReportCollector

digraph inheritance3541aaab57 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ReportCollector" [URL="../step/index.html#easy_sql.sql_processor.step.ReportCollector",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "SqlProcessorReporter" [URL="#easy_sql.sql_processor.report.SqlProcessorReporter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ReportCollector" -> "SqlProcessorReporter" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
Parameters
  • report_task_id (str) –

  • report_hdfs_path (Optional[str]) –

  • report_es_url (Optional[str]) –

  • report_es_index_prefix (Optional[str]) –

collect_report(self, step, status=None, message=None)
Parameters
get_report(self, verbose=False)
Parameters

verbose (bool) –

Return type

str

init(self, steps)
Parameters

steps (List[easy_sql.sql_processor.step.Step]) –

print_report(self, verbose=False)
Parameters

verbose (bool) –

class easy_sql.sql_processor.report.StepReport(step)
Parameters

step (easy_sql.sql_processor.step.Step) –

report_as_text(self, total_execution_time, verbose=False)
Parameters
  • total_execution_time (float) –

  • verbose (bool) –

update(self, status=None, message=None)
Parameters
  • status (Optional[str]) –

  • message (Optional[str]) –

Return type

StepReport

class easy_sql.sql_processor.report.StepStatus
FAILED = FAILED
NOT_STARTED = NOT_STARTED
RUNNING = RUNNING
SKIPPED = SKIPPED
SUCCEEDED = SUCCEEDED