rahil-c commented on code in PR #8885: URL: https://github.com/apache/hudi/pull/8885#discussion_r1224742161
########## hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/BaseFileOnlyRelation.scala: ########## @@ -66,17 +66,21 @@ case class BaseFileOnlyRelation(override val sqlContext: SQLContext, // NOTE: This override has to mirror semantic of whenever this Relation is converted into [[HadoopFsRelation]], // which is currently done for all cases, except when Schema Evolution is enabled override protected val shouldExtractPartitionValuesFromPartitionPath: Boolean = - internalSchemaOpt.isEmpty + internalSchemaOpt.isEmpty override lazy val mandatoryFields: Seq[String] = Seq.empty + // Before Spark 3.4.0: PartitioningAwareFileIndex.BASE_PATH_PARAM + // Since Spark 3.4.0: FileIndexOptions.BASE_PATH_PARAM + val BASE_PATH_PARAM = "basePath" + override def updatePrunedDataSchema(prunedSchema: StructType): Relation = this.copy(prunedDataSchema = Some(prunedSchema)) override def imbueConfigs(sqlContext: SQLContext): Unit = { super.imbueConfigs(sqlContext) // TODO Issue with setting this to true in spark 332 - if (!HoodieSparkUtils.gteqSpark3_3_2) { + if (HoodieSparkUtils.gteqSpark3_4 || !HoodieSparkUtils.gteqSpark3_3_2) { Review Comment: I think if we sync I can try to help you get past this error for the other spark version. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org