raminqaf commented on code in PR #30092:
URL: https://github.com/apache/flink/pull/30092#discussion_r4682615746


##########
flink-core/src/main/java/org/apache/flink/util/Utf8Utils.java:
##########


Review Comment:
   This isn't new code. `firstInvalidUtf8ByteIndex` moves from 
`StringUtf8Utils` to flink-core so that `VariantValidator` can reuse it, and 
`StringUtf8Utils` keeps a method that calls it. The modules depend on each 
other in this order:
   
   ```
   flink-table-runtime     ->  flink-table-common  ->  flink-core
   IsValidVariantFunction      StringUtf8Utils         VariantValidator
                                                       BinaryVariantUtil
                                                       Utf8Utils (new)
   ```
   
   flink-core can't depend on flink-table-common, so the validator can't call 
`StringUtf8Utils`.



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