The profiler fails because it queries a CREATE_TIME column from SYS.M_TABLES that doesn't exist
Affected module Profiler
Describe the bug The profiler fails because it queries a CREATE_TIME column from SYS.M_TABLES that doesn't exist in Customer's database. Version details attached and it meets the prerequisites.
Profiler crashed on the missing CREATE_TIME column. Error: [2026-03-13T06:30:10.813240Z] WARNING - profiler_interface.py:196 - Error trying to compute profile for tt_fin_glpos_c: (hdbcli.dbapi.ProgrammingError) (260, 'invalid column name: CREATE_TIME: line 2 col 69 (at pos 121)')
Adding the table inclusion filter for SYS schema did not improve the behavior. Errors continued appearing. This is expected because OMD internally references SYS.M_TABLES for metrics regardless of user-defined filters.
DQ test case notes — Apart from profiling the KNA1 table, we are also creating DQ test cases for the KNA1 table. We experience the following behavior:
when creating out-of-the-box queries on table level or on column level, it works as expected. when creating customer queries, the test case is aborted with apparently the same error as during profiling (see attached screen print). This is not what we expected. Pls note, the custom test-query itself is valid. We know this because if the test-query is invalid, OMD returns another error message.
To Reproduce I was unable to replicate the issue on my local instance. I can see that the Profiler is not generating statistics on the table I created based on customers DDL and sample data, but it is not erroring out with missing column as well. The CREATE_TIME column does not exist on my db table.
Expected behavior Profiler runs successfully and handle the Create_time column gracefully.
Version:
- OS: [e.g. iOS]
- Python version:
- OpenMetadata version: [e.g. 0.8]
- OpenMetadata Ingestion package version: [e.g.
openmetadata-ingestion[docker]==XYZ]
Additional context Add any other context about the problem here.
Hey @umavepachedu-collate and @IceS2, I would like to try working on this issue
Hey @umavepachedu-collate @IceS2 , Please Assign this Problem to me. Here is my approach:
The Bug: Hardcoded CREATE_TIME queries crashed the profiler and DQ tests on SAP HANA versions missing this column.
Smart Querying: Added a utility to verify if a column exists before querying SYS.M_TABLES, making CREATE_TIME optional.
Graceful Fallback: Added a try/except block to catch ProgrammingError and fall back to generic profiling without crashing.
Complete Coverage: Applied the fix to the shared SAPHanaTableMetricComputer so both standard Profiling and custom DQ tests are protected.
Unit Tested: Added tests to prove the fallback works and that core metrics (like row count and size) still compute safely.
hey @IceS2 @umavepachedu-collate , I wanna to work on this issue and this would be my approach :
In SAPHanaTableMetricComputer.compute, wrap the SYS.M_TABLES query in try/except for DBAPI programming/operational errors that indicate missing CREATE_TIME.
On that specific failure, rerun a reduced query without CREATE_TIME (keep RECORD_COUNT and TABLE_SIZE), and keep existing fallback to base logic when rowCount is null/0 for views.
Keep the handling connector-scoped (SAP HANA only), so no cross-dialect behavior changes.
Add/extend unit tests in test_table_metric_computer.py:244 to assert graceful fallback when CREATE_TIME is unavailable.
Add/extend DQ row-count test coverage around tableCustomSQLQuery.py:320 to ensure custom SQL validation no longer aborts due to this metadata-column mismatch.
Please assign this issue to me .
Hy folks, sorry. I was already working on the issue. Did not see your comments in time. My bad!