<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DeltaFileStatistics on a nested column (`created date.shipment`) cause filtering issues in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/deltafilestatistics-on-a-nested-column-created-date-shipment/m-p/160169#M54863</link>
    <description>&lt;P&gt;Environment&lt;BR /&gt;- Databricks Runtime version: 17.3 LTS&lt;BR /&gt;- Cloud: Azure&lt;BR /&gt;- Catalog: Unity Catalog&lt;BR /&gt;- Table format: Delta&lt;/P&gt;&lt;P&gt;Summary&lt;BR /&gt;We have a Delta table named `shipment` with a column `created date.shipment` (a column whose name contains a dot). Delta collects deltafilestatistics on this column. When filtering on this column, the filter does not behave correctly — it appears that files are being incorrectly skipped, so queries return incomplete/wrong results.&lt;/P&gt;&lt;P&gt;Steps we took to investigate&lt;BR /&gt;1. In production, a query filtering on `created date.shipment` returned incorrect/incomplete results while deltafilestatistics is present on that column.&lt;BR /&gt;2. To isolate the issue, we cloned the table into our sandbox environment.&lt;BR /&gt;3. In the sandbox, we removed / disabled the file statistics on this column. After doing so, filtering on `created date.shipment` worked correctly.&lt;BR /&gt;4. However, on the next scheduled run, the table was overwritten (full refresh / overwrite write).&lt;BR /&gt;5. After that overwrite, filtering worked correctly even with the data-skipping statistics present again.&lt;/P&gt;&lt;P&gt;Working hypothesis&lt;BR /&gt;It looks like stale or incorrectly computed data-skipping statistics were causing files to be wrongly skipped during predicate pushdown. The full overwrite recomputed fresh statistics, which resolved the problem.&lt;/P&gt;&lt;P&gt;Example (illustrative)&lt;BR /&gt;- Table `shipment`, filter: WHERE created_date.shipment = '2026-01-15'&lt;BR /&gt;- Expected: N matching rows&lt;BR /&gt;- Actual (with stale stats): zero rows, because files containing matches were skipped&lt;BR /&gt;- After removing stats OR after overwrite: correct N rows returned&lt;/P&gt;&lt;P&gt;Questions&lt;BR /&gt;1. Is this a known issue with deltafilestatistics on column names containing a dot?&lt;BR /&gt;2. Can stale/incorrect statistics persist and cause wrong results until a full overwrite recomputes them? If so, is that expected?&lt;BR /&gt;3. What is the recommended way to force a recompute of data-skipping statistics WITHOUT a full table overwrite?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reproducibility&lt;BR /&gt;We can reproduce the original incorrect behavior in our sandbox clone (before overwrite) and can provide query plans / EXPLAIN output and table history (DESCRIBE HISTORY) on request.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2026 03:24:27 GMT</pubDate>
    <dc:creator>Navinkumar_K</dc:creator>
    <dc:date>2026-06-23T03:24:27Z</dc:date>
    <item>
      <title>DeltaFileStatistics on a nested column (`created date.shipment`) cause filtering issues</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilestatistics-on-a-nested-column-created-date-shipment/m-p/160169#M54863</link>
      <description>&lt;P&gt;Environment&lt;BR /&gt;- Databricks Runtime version: 17.3 LTS&lt;BR /&gt;- Cloud: Azure&lt;BR /&gt;- Catalog: Unity Catalog&lt;BR /&gt;- Table format: Delta&lt;/P&gt;&lt;P&gt;Summary&lt;BR /&gt;We have a Delta table named `shipment` with a column `created date.shipment` (a column whose name contains a dot). Delta collects deltafilestatistics on this column. When filtering on this column, the filter does not behave correctly — it appears that files are being incorrectly skipped, so queries return incomplete/wrong results.&lt;/P&gt;&lt;P&gt;Steps we took to investigate&lt;BR /&gt;1. In production, a query filtering on `created date.shipment` returned incorrect/incomplete results while deltafilestatistics is present on that column.&lt;BR /&gt;2. To isolate the issue, we cloned the table into our sandbox environment.&lt;BR /&gt;3. In the sandbox, we removed / disabled the file statistics on this column. After doing so, filtering on `created date.shipment` worked correctly.&lt;BR /&gt;4. However, on the next scheduled run, the table was overwritten (full refresh / overwrite write).&lt;BR /&gt;5. After that overwrite, filtering worked correctly even with the data-skipping statistics present again.&lt;/P&gt;&lt;P&gt;Working hypothesis&lt;BR /&gt;It looks like stale or incorrectly computed data-skipping statistics were causing files to be wrongly skipped during predicate pushdown. The full overwrite recomputed fresh statistics, which resolved the problem.&lt;/P&gt;&lt;P&gt;Example (illustrative)&lt;BR /&gt;- Table `shipment`, filter: WHERE created_date.shipment = '2026-01-15'&lt;BR /&gt;- Expected: N matching rows&lt;BR /&gt;- Actual (with stale stats): zero rows, because files containing matches were skipped&lt;BR /&gt;- After removing stats OR after overwrite: correct N rows returned&lt;/P&gt;&lt;P&gt;Questions&lt;BR /&gt;1. Is this a known issue with deltafilestatistics on column names containing a dot?&lt;BR /&gt;2. Can stale/incorrect statistics persist and cause wrong results until a full overwrite recomputes them? If so, is that expected?&lt;BR /&gt;3. What is the recommended way to force a recompute of data-skipping statistics WITHOUT a full table overwrite?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reproducibility&lt;BR /&gt;We can reproduce the original incorrect behavior in our sandbox clone (before overwrite) and can provide query plans / EXPLAIN output and table history (DESCRIBE HISTORY) on request.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2026 03:24:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilestatistics-on-a-nested-column-created-date-shipment/m-p/160169#M54863</guid>
      <dc:creator>Navinkumar_K</dc:creator>
      <dc:date>2026-06-23T03:24:27Z</dc:date>
    </item>
  </channel>
</rss>

