#34299·OpenMetadata

Auto-classification does not explain when sampled data is lost before recognition

Author: stout-yeomanCreated Sep 30, 2026Updated Oct 1, 2026
Labelsenhancement

Is your feature request related to a problem? Please describe.

Auto Classification can finish without showing why a column received no tag. A configured request for 60 rows can hand only 50 to classification; long values can be truncated; and a custom query can return an alias that does not map to a metadata column. In each case, relevant data may never reach a recognizer.

Describe the solution you'd like

Add diagnostics to ingestion pipeline logs. Report row counts per table and, where relevant, truncation and mapping details per column. Show configured rows requested, rows fetched, and rows handed to classification. When returned fields do not map, show both the returned field names and eligible metadata columns left without a sample. Field names may appear in logs; sampled values must not.

Attribute each loss to its earliest stage. The sampler already truncates long strings to 5,000 characters, so it must count that truncation. Preprocessing should not report the same value as truncated again.

Report a loss only when data was actually removed or left unmapped. Fetching fewer rows than requested because a table is small, or fetching 100 rows from a custom query before handing off a configured 50, should not produce a loss warning.

This request covers row handoff, text truncation, and field mapping. Binary-value exclusion, map keys, and repeated-value admission can be addressed separately.

Checks should confirm that:

  • Requesting 60 rows and handing off 50 reports the handoff loss.
  • A value longer than 5,000 characters reports one sampler truncation.
  • An aliased query reports the unmapped returned field and the column left unanalyzed.
  • An ordinary 50-row run produces no loss warning.
  • Enabling diagnostics does not change emitted tags.

Additional context

Parent: #33827. Related sampling work: #32942.

Pre-submission checklist

  • I searched for duplicate feature requests.

Source: open-metadata/OpenMetadata