hemanth-gowda-12 commented on code in PR #7474:
URL: https://github.com/apache/hudi/pull/7474#discussion_r1051085879
##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieKey.java:
##########
@@ -53,6 +53,9 @@ public void setPartitionPath(String partitionPath) {
}
public String getPartitionPath() {
+ if (partitionPath.trim().startsWith("/")) {
Review Comment:
@nsivabalan , I'm using the Java Client and not Spark. I see that all key
generators extend directly or indirectly the Build-in key gen
[link](https://github.com/apache/hudi/blob/master/hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/keygen/BuiltinKeyGenerator.java)
which in turn implements SparkKeyGeneratorInterface.
**I'm using the Java Client and I want my implementation simple and without
any Spark dependency.**
As for _probably we should do it elsewhere once._ - I understand the
performance impact and is not ideal. Do you have a suggestion as to where else
the validation would be more suitable?
--
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]