jonvex commented on code in PR #12380:
URL: https://github.com/apache/hudi/pull/12380#discussion_r1864252061
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieHadoopFsRelationFactory.scala:
##########
@@ -103,6 +103,21 @@ abstract class HoodieBaseHadoopFsRelationFactory(val
sqlContext: SQLContext,
// For older tables the partition type may not be available so falling
back to partition fields in those cases
tableConfig.getPartitionFields.orElse(Array.empty).toSeq
}
+ } else {
+ Seq.empty
+ }
+
+ protected lazy val partitionColumnsToRead: Seq[String] = (
+ shouldExtractPartitionValuesFromPartitionPath,
+ keygenTypeHasVariablePartitionCols,
+ partitionColumnsHasPrecombine
+ ) match {
+ case (true, _, _) => Seq.empty
+ case (false, true, false) => variableTimestampKeygenPartitionCols
+ case (false, true, true) if
variableTimestampKeygenPartitionCols.contains(preCombineFieldOpt.get) =>
variableTimestampKeygenPartitionCols
+ case (false, true, true) => variableTimestampKeygenPartitionCols :+
preCombineFieldOpt.get
Review Comment:
😂
--
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]