OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

MariaDB profiler error: MariaDBMedian._compute_sqa_fn() takes 4 positional arguments but 5 were given

Open harrydevforlife opened this issue 7 months ago • 3 comments

Affected module Ingestion Framework (Profiler) — MariaDB metrics computation

⸻

Describe the bug When running the profiler against a MariaDB table, the profiling workflow fails during metric computation. Specifically, the median metric calculation throws a runtime exception indicating a mismatch in the function signature for MariaDBMedian._compute_sqa_fn().

The error occurs during window metric computation in the MariaDB profiler interface and causes the entire profiling job to fail.

Error message:

TypeError: MariaDBMedian._compute_sqa_fn() takes 4 positional arguments but 5 were given RuntimeError: MariaDBMedian._compute_sqa_fn() takes 4 positional arguments but 5 were given

This appears to be related to the median metric implementation for MariaDB in the profiler.

⸻

To Reproduce 1. Configure a MariaDB database service in OpenMetadata 2. Enable table profiling 3. Run the ingestion/profiler workflow (e.g., via Airflow) 4. The profiler fails during metric computation

Stack trace excerpt:

File ".../profiler_interface.py", line 74, in _compute_window_metrics
    [metric(column).fn() for metric in metrics]

File ".../metrics/window/median.py", line 87, in fn
    return self._compute_sqa_fn()

TypeError: MariaDBMedian._compute_sqa_fn() takes 4 positional arguments but 5 were given

⸻

Expected behavior The profiler should compute metrics (including median) successfully for MariaDB tables without raising an exception, and the profiling workflow should complete normally.

⸻

Version: • OS: Linux • Python version: default by docker image • OpenMetadata version: 1.12.1 • OpenMetadata Ingestion package version: openmetadata-ingestion==1.12.1 • Database: MariaDB • Profiler execution environment: Airflow

⸻

Additional context • The issue occurs specifically when profiling tables in MariaDB • The failure happens during metric computation, likely related to the median window metric • No custom metrics are configured • The error originates from:

metadata/profiler/metrics/window/median.py metadata/profiler/interface/sqlalchemy/mariadb/profiler_interface.py

Potential root cause hypothesis: • Function signature mismatch introduced in a recent version • Incompatibility between OpenMetadata server version and ingestion package version • Bug in MariaDB-specific median metric implementation

Image

harrydevforlife avatar Apr 09 '26 11:04 harrydevforlife

hey @harrydevforlife could you assign it to me

AshutoshIIT1234 avatar Apr 10 '26 14:04 AshutoshIIT1234

hi @harrydevforlife could you assign me?

Sngithub12 avatar Apr 12 '26 02:04 Sngithub12

@pmbrull hey man, can someone assign this ?

harrydevforlife avatar Apr 13 '26 10:04 harrydevforlife