dlt._workspace.helpers.dashboard.utils.data_quality
Data quality dashboard helpers: controls, section widget, and raw table display.
create_dq_controls
def create_dq_controls(
pipeline: dlt.Pipeline
) -> Tuple[
Optional[mo.ui.checkbox],
Optional[mo.ui.dropdown],
Optional[mo.ui.slider],
Optional[pyarrow.Table],
]
Create data quality filter controls by importing from dlthub.
Returns (show_failed_filter, table_filter, rate_filter, checks_arrow). All None on failure or if dlthub is not available.
build_dq_section
def build_dq_section(
pipeline: dlt.Pipeline, show_failed_filter: Optional[mo.ui.checkbox],
table_filter: Optional[mo.ui.dropdown],
rate_filter: Optional[mo.ui.slider], checks_arrow: Optional[pyarrow.Table]
) -> Tuple[List[mo.Html], Optional[mo.ui.switch]]
Build the data quality widget section.
Returns (result_widgets, raw_table_switch). raw_table_switch is None when there is no data or on error.
build_dq_raw_table
def build_dq_raw_table(
pipeline: dlt.Pipeline, get_result: Callable[[], pyarrow.Table],
set_result: Callable[[pyarrow.Table], None]) -> List[mo.Html]
Build the raw data quality checks table.
Returns list of widgets to display.