yihua commented on code in PR #18126:
URL: https://github.com/apache/hudi/pull/18126#discussion_r2824941282


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/SparkHoodieTableFileIndex.scala:
##########
@@ -222,10 +225,16 @@ class SparkHoodieTableFileIndex(spark: SparkSession,
   def listMatchingPartitionPaths(predicates: Seq[Expression]): 
Seq[PartitionPath] = {
     val resolve = spark.sessionState.analyzer.resolver
     val partitionColumnNames = getPartitionColumns
+    // Strip Spark's internal exprId suffix (e.g. #136) so nested_record#136 
matches nested_record.level

Review Comment:
   In Spark's `AttributeReference`, the `name` field doesn't include the 
`#exprId` suffix — that's stored as a separate field and only appears in 
`toString`. Is there a specific scenario where `ref` would actually contain 
`#digits` here? If not, this `replaceAll` might be misleading to future readers.



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