The difference between 24.5638 and 24.560000 suggests that precision may have been lost during ingestion or an intermediate cast.
Adding trailing zeros does not restore the original value.
I would trace the data type at three stages:
Source database column definition.
DataFrame schema immediately after ingestion.
Delta table schema after writing.
For example, casting 24.5638 to DECIMAL(18,2) produces 24.56. Casting that result to DECIMAL(18,6) produces 24.560000, not the original 24.563800.
For values requiring four fractional digits, use an appropriate decimal type such as DECIMAL(18,4), provided it matches the source definition and required range.
Also inspect JDBC type mappings, explicit casts and transformation logic before the Delta write.
The key test is to compare the source value with the first DataFrame read. If precision is already missing there, changing the final table schema will not fix it.
Can you share the source column type and the schema immediately after ingestion?