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

   …raction
   
   After [HUDI-6960](https://issues.apache.org/jira/browse/HUDI-6960) is 
merged, there shouldExtractPartitionValuesFromPartitionPath will correctly 
ignore partition columns in requiredSchema.
   
   
   When using the configs below, there will be read errors.
   
   ```sql
   hoodie.datasource.read.extract.partition.values.from.path = true 
   hoodie.schema.on.read.enable = true 
   ```
    
   The query schema will be pruned to **NOT** contain any partition columns.
    
   When rebuilding parquet filters, file schema's columns are scanned against 
querySchema. However, Hudi files (file schema) might still contain partition 
columns. And when partition filters are being rebuilt with these file schema 
against query schema, it will lead to partition columns not being found.
    
   ```log
   Caused by: java.lang.IllegalArgumentException: cannot found filter col 
name:region from querySchema: table {
    5: id: optional int
    6: name: optional string
    7: ts: optional long
   }
   at 
org.apache.hudi.internal.schema.utils.InternalSchemaUtils.reBuildFilterName(InternalSchemaUtils.java:180)
   ```
   
   ### Change Logs
   Fixes schema evolution read error when partition values are extracted from 
path.
   _Describe context and summary for this change. Highlight if any code was 
copied._
   
   ### Impact
   None
   _Describe any public API or user-facing feature change or any performance 
impact._
   
   ### Risk level (write none, low medium or high below)
   
   _If medium or high, explain what verification was done to mitigate the 
risks._
   
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, 
config, or user-facing change_
   
   - _The config description must be updated if new configs are added or the 
default value of the configs are changed_
   - _Any new feature or user-facing change requires updating the Hudi website. 
Please create a Jira ticket, attach the
     ticket number here and follow the 
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to 
make
     changes to the website._
   
   ### Contributor's checklist
   
   - [X] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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