suryaprasanna opened a new pull request, #17946:
URL: https://github.com/apache/hudi/pull/17946

   ### Describe the issue this Pull Request addresses
   
   Fixes schema handling in SourceFormatAdapter when the original schema 
provider is neither FileBased nor SchemaRegistry-based.
   
   ### Summary and Changelog
   
   - Changed `Option.empty()` to 
`Option.ofNullable(r.getSchemaProvider().getTargetHoodieSchema())` in 
SourceFormatAdapter.java:210
   - This ensures JavaRDD is created with the target schema after 
transformation step
   - The code path occurs after transformation, so target schema is the correct 
choice
   
   ### Impact
   
   Ensures correct schema is used when creating JavaRDD for 
non-FileBased/SchemaRegistry providers after transformation.
   
   ### Risk Level
   
   Low - Fixes incorrect schema usage in a specific code path.
   
   ### Documentation Update
   
   None
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to