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

   ### Change Logs
   
   This PR allows to process case when we have `StringData` income for 
partitioning by `TimestampBasedAvroKeyGenerator` with set 
`TimestampType.DATE_STRING`.
   
   ### Impact
   
   Before this fix with mentioned settings we get:
   ```text
   org.apache.hudi.exception.HoodieNotSupportedException: Unexpected type for 
partition field: org.apache.flink.table.data.binary.BinaryStringData
        at 
org.apache.hudi.keygen.TimestampBasedAvroKeyGenerator.getPartitionPath(TimestampBasedAvroKeyGenerator.java:207)
 ~[hudi-flink1.17-os-1-fb77b1da.jar:1.1.0-SNAPSHOT]
        at 
org.apache.hudi.sink.bulk.RowDataKeyGen.getPartitionPath(RowDataKeyGen.java:251)
 ~[hudi-flink1.17-os-1-fb77b1da.jar:1.1.0-SNAPSHOT]
        at 
org.apache.hudi.sink.bulk.RowDataKeyGen.getPartitionPath(RowDataKeyGen.java:160)
 ~[hudi-flink1.17-os-1-fb77b1da.jar:1.1.0-SNAPSHOT]
        at 
org.apache.hudi.sink.transform.RowDataToHoodieFunction.map(RowDataToHoodieFunction.java:50)
 ~[hudi-flink1.17-os-1-fb77b1da.jar:1.1.0-SNAPSHOT]
        at 
org.apache.hudi.sink.transform.RowDataToHoodieFunction.map(RowDataToHoodieFunction.java:33)
 ~[hudi-flink1.17-os-1-fb77b1da.jar:1.1.0-SNAPSHOT]
        at 
org.apache.flink.streaming.api.operators.StreamMap.processElement(StreamMap.java:45)
 ~[flink-dist-1.17.1.jar:1.17.1]
   ```
   
   ### Risk level (write none, low medium or high below)
   
   No
   
   ### Documentation Update
   
   No need
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Change Logs and Impact were stated clearly
   - [x] 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