wzx140 commented on code in PR #7003:
URL: https://github.com/apache/hudi/pull/7003#discussion_r1027296254
##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/spark/sql/HoodieCatalystExpressionUtils.scala:
##########
@@ -251,8 +252,16 @@ object HoodieCatalystExpressionUtils {
)
}
+ @tailrec
def existField(structType: StructType, name: String): Boolean = {
- structType.getFieldIndex(name).isDefined
+ if (name.contains(".")) {
Review Comment:
Ok. I just want to call `structType.getFieldIndex`. So I put this func in
`HoodieCatalystExpressionUtils`. I will move `HoodieInternalRowUtils` to
`spark.sql` package.
--
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]