OpenMetadata
OpenMetadata copied to clipboard
Table Metric row count for MySQL8 InnoDB table not correct
Affected module Ingestion Framework
Describe the bug Table Metric row count is not correct for MySQL8 InnoDB Engine because it's just an extreme inaccurate approximation.
To Reproduce Check docs of MySQL8. It states for InnoDB engine a variation of table row count between 40 and 50%.
- https://dev.mysql.com/doc/refman/8.0/en/information-schema-tables-table.html
Expected behavior Offer additionally a option to enable an exact table row count calculation like SELECT count(*) FROM <table_name> instead of just using the approximated count from column ROW_COUNT of INFORMATION_SCHEMA.TABLES.
Version:
- OS: Windows 10
- Python version:
- OpenMetadata version: 1.3
- OpenMetadata Ingestion package version: [e.g.
openmetadata-ingestion[docker]==XYZ]
Additional context Add any other context about the problem here.
fixed in https://github.com/open-metadata/OpenMetadata/pull/15872