You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xtable.apache.org by "vinishjail97 (via GitHub)" <gi...@apache.org> on 2026/08/10 23:27:40 UTC

[I] Cover the Delta Kernel source and target in ITConversionController [incubator-xtable]

vinishjail97 opened a new issue, #886:
URL: https://github.com/apache/incubator-xtable/issues/886

   ### Feature Request / Improvement
   
   The Delta Kernel source and target are on `main` (#729, #801), but they are not exercised by the shared conversion harness. Today they are only covered by their own suites: `ITDeltaKernelConversionSource`, `TestDeltaKernelReadWriteIntegration`, `TestDeltaKernelSync`, plus the extractor, partition, schema and stats unit tests.
   
   `ITConversionController` is where every other source and target combination is validated for dataset equivalence across sync modes and partitioning, and the Kernel path does not appear in it at all.
   
   This came up on the dev@ thread for the Spark-free runtime, where the point was made that the dedicated suites are not the right bar and the shared harness is:
   https://lists.apache.org/thread/bx1xyh0ml30r60od1hdvhndyd16b375j
   
   Closing this gap is the precondition for making Kernel the default Delta path, so it needs doing regardless of how the packaging discussion lands.
   
   **Current state**
   
   `generateTestParametersForFormatsSyncModesAndPartitioning()` iterates source formats `HUDI, DELTA, ICEBERG, PAIMON`, crossed with `SyncMode.values()` and partitioned against unpartitioned.
   
   `getConversionSourceProvider(String sourceTableFormat)` switches on the format name and returns `DeltaConversionSourceProvider` for `DELTA`. There is no Kernel branch, and `DeltaKernelConversionSourceProvider` is not imported.
   
   On the target side, the implementation is chosen by `xtable.delta.target.use_kernel` in the target table's additional properties, which `DeltaConversionTargetConfig` reads and `ConversionTargetFactory` dispatches on. It defaults to `false`, so every existing case in this harness exercises Delta Standalone only.
   
   **Proposed scope**
   
   1. Cover Delta as a **source** through Kernel, so `DeltaKernelConversionSourceProvider` runs the same equivalence checks that `DeltaConversionSourceProvider` runs today, across both sync modes and both partitioning cases.
   2. Cover Delta as a **target** through Kernel, by setting `xtable.delta.target.use_kernel=true` in the target table properties for the Kernel variant, so both writers are validated.
   3. Keep the Standalone cases as they are. The goal is both implementations passing the same assertions, not replacing one with the other.
   4. Avoid doubling the whole matrix if it costs too much wall-clock time. A separate parameter, or a targeted subset of the existing cases, is fine as long as both sync modes and both partitioning cases are covered for each of source and target.
   
   **Out of scope, tracked separately**
   
   - Flipping the default of `xtable.delta.target.use_kernel`.
   - Re-verifying the recently reported Delta conversion issues against the Kernel path (#711, #779, #813, #860, #586, #641). Worth doing before the default changes, but it is not test-harness work.
   - Deletion vector parity for Kernel (#713).
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5572669213

   Two findings that I think belong in the prerequisite list, because they affect whether the flip is safe rather than whether it's at parity.
   
   **The kernel target never writes `delta.columnMapping.physicalName`.** `DeltaKernelSchemaExtractor.getFieldMetadata` (`DeltaKernelSchemaExtractor.java:391`) writes `delta.columnMapping.id`, the XTable logical-type marker and the comment. The read path handles `physicalName` at `:166`, so the asymmetry is in the write path only. Kernel rejects a schema in that state: `IllegalArgumentException: Both columnId and physicalName must be present if one is present.`
   
   **Tables the kernel target creates have column mapping disabled.** `getConfigurationsForDeltaSync` (`DeltaKernelConversionTarget.java:483`) sets `XTABLE_METADATA` and `DELTA_LOG_RETENTION_DURATION` and nothing else — never `delta.columnMapping.mode`. Kernel then refuses any commit carrying a schema on such a table, and it treats every `withSchema` call as schema evolution, not only the schema-changing ones.
   
   Together these mean schema evolution through the kernel target does not work today, with or without column mapping on the source. That's a behaviour difference from Standalone rather than a missing test, so it belongs alongside the #711 and #713 items above.
   
   Scope of what I checked: the two code readings are against current `main`. The Kernel-side errors I reproduced in a standalone harness against `delta-kernel` 4.1.0; this project pins 4.0.0 at `pom.xml:60` and I have not re-run the repro on 4.0.0. I have a local branch exploring a fix and can open it as a draft if that's useful.
   
   *This comment was created with AI assistance.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vaibhavk1992 (via GitHub)" <gi...@apache.org>.
vaibhavk1992 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5426472989

   @vinishjail97 regarding the prerequisite 2, did some validation 
     - #711 (column rename → wrong Iceberg field ID): root cause is in  IcebergSchemaSync.addUpdates (the sink, matches columns by name not field ID). Both Delta extractors already preserve field IDs correctly on the source side — the bug is downstream and format-agnostic. Fixing it once fixes both paths.                
     - #813 (_delta_log mistaken for a Hudi partition): this is Hudi's own filesystem-fallback listing behavior, triggered by any standards-compliant _delta_log directory. Kernel and Standalone produce identical log layouts, so  neither is more or less exposed.                                                   
     - #641 (Iceberg source NPE): crashes entirely on the Iceberg-source side     (IcebergColumnStatsConverter), before any Delta target code — Standalone or Kernel — ever runs. Doesn't belong in this list at all.                                   
                                                           


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vinishjail97 (via GitHub)" <gi...@apache.org>.
vinishjail97 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5373298826

   @vaibhavk1992 We can throw UnsupportedException or fall back to delta-core if kernel doesn't support schema evolution. You can push a PR with kernel as the default path and the gaps currently, we can discuss the follow-ups as part of PR review. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5379763728

   found somethgn similar also https://github.com/apache/incubator-xtable/issues/902


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vaibhavk1992 (via GitHub)" <gi...@apache.org>.
vaibhavk1992 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5386260502

   Hey @slachiewicz 
   Yes, [https://github.com/apache/incubator-xtable/pull/903](903) I am working on it.Reviewing your comments in the PR 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vinishjail97 (via GitHub)" <gi...@apache.org>.
vinishjail97 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5319968916

   @vaibhavk1992 You can start working on it..Github is not allowing to assign, will check why.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vaibhavk1992 (via GitHub)" <gi...@apache.org>.
vaibhavk1992 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5249229128

   Sure @vinishjail97 , please assign this to me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vaibhavk1992 (via GitHub)" <gi...@apache.org>.
vaibhavk1992 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5454776044

   Tested #779 against Kernel specifically — added ITDeltaLogTruncationSafetyCheck    
     (xtable-core/src/test/java/org/apache/xtable/) as a protocol-realistic repro:      
     enough commits to force a real Delta checkpoint (per PROTOCOL.md's "Metadata       
     cleanup," retention is required to always leave a checkpoint before deleting older 
     commit files), then deleting only the pre-checkpoint JSON files.                   
                                                                                        
     With that setup, Kernel's isIncrementalSyncSafeFrom correctly returns false — no   
     bug there. More importantly, I also tested the race where retention cleanup runs   
     after the safety check already passed (check says true while files still exist,    
     then they get deleted, then the actual read is attempted): Kernel throws           
     immediately with a clear, specific exception — timestamp is before the earliest    
     available version 10 — rather than proceeding with stale or incomplete data. So on 
     the Kernel path, #779 doesn't reproduce as a problem, under either the             
     straightforward or the race scenario.                                              
                                            


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cover the Delta Kernel source and target in ITConversionController [incubator-xtable]

Posted by "vinishjail97 (via GitHub)" <gi...@apache.org>.
vinishjail97 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5247207377

   @vaibhavk1992 Can you pick this up as you have worked on delta kernel? I'm tracking this as part of 0.5.0 release. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Set delta kernel as the default path for 0.5.0 release [incubator-xtable]

Posted by "vaibhavk1992 (via GitHub)" <gi...@apache.org>.
vaibhavk1992 commented on issue #886:
URL: https://github.com/apache/incubator-xtable/issues/886#issuecomment-5372972112

   Hi @vinishjail97 
   I am facing the schema evolution issues while creating the kernel target test cases in the ITconversioncontroller. This traces to an open upstream gap: [delta-io/delta#4305](https://github.com/delta-io/delta/issues/4305). Checked release notes v4.0.0 (our pin) through v4.4.0 — withSchema-for-updates on existing tables is never confirmed shipped, and the  sub-task for nested (array/struct) field-ID validation is still WIP. So this isn't fixable purely on our side right now. Please let me know your thoughts.  
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@xtable.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org