vinishjail97 opened a new pull request, #13025: URL: https://github.com/apache/hudi/pull/13025
### Change Logs The tests were failing when hiveStylePartitioning && urlEncodePartitioning is true for 0.x spark reader and table version 6. [https://github.com/onehouseinc/hudi-internal/blob/master/hudi-spark-datasource/hud[…]/src/main/scala/org/apache/hudi/SparkHoodieTableFileIndex.scala](https://github.com/onehouseinc/hudi-internal/blob/master/hudi-spark-datasource/hud%5B%E2%80%A6%5D/src/main/scala/org/apache/hudi/SparkHoodieTableFileIndex.scala) ``` => org.sparkproject.guava.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: Cannot find columns: 'country:simple' in the schema[StructField(_hoodie_commit_time,StringType,true),StructField(_hoodie_commit_seqno,StringType,true),StructField(_hoodie_record_key,StringType,true),StructField(_hoodie_partition_path,StringType,true),StructField(_hoodie_file_name,StringType,true),StructField(key,StringType,true),StructField(country,StringType,true),StructField(ts,LongType,true),StructField(nested_record,StructType(StructField(nested_int,IntegerType,true)),true),StructField(record_map,MapType(StringType,StructType(StructField(nested_int,IntegerType,true)),true),true),StructField(primitive_map,MapType(StringType,StringType,true),true),StructField(primitive_array,ArrayType(IntegerType,true),true),StructField(int_date,DateType,true),StructField(long_timestamp_millis,TimestampType,true),StructField(long_timestamp_micros,TimestampType,true),StructField(long_timest amp_millis_local,LongType,true),StructField(long_timestamp_micros_local,LongType,true),StructField(bytes_decimal,DecimalType(4,2),true)] org.sparkproject.guava.cache.LocalCache$Segment.get(LocalCache.java:2263) org.sparkproject.guava.cache.LocalCache.get(LocalCache.java:4000) org.sparkproject.guava.cache.LocalCache$LocalManualCache.get(LocalCache.java:4789) org.apache.spark.sql.catalyst.catalog.SessionCatalog.getCachedPlan(SessionCatalog.scala:174) org.apache.spark.sql.execution.datasources.FindDataSourceTable.org$apache$spark$sql$execution$datasources$FindDataSourceTable$$readDataSourceTable(DataSourceStrategy.scala:240) [...] Caused by: java.lang.IllegalArgumentException: Cannot find columns: 'country:simple' in the schema[StructField(_hoodie_commit_time,StringType,true),StructField(_hoodie_commit_seqno,StringType,true),StructField(_hoodie_record_key,StringType,true),StructField(_hoodie_partition_path,StringType,true),StructField(_hoodie_file_name,StringType,true),StructField(key,StringType,true),StructField(country,StringType,true),StructField(ts,LongType,true),StructField(nested_record,StructType(StructField(nested_int,IntegerType,true)),true),StructField(record_map,MapType(StringType,StructType(StructField(nested_int,IntegerType,true)),true),true),StructField(primitive_map,MapType(StringType,StringType,true),true),StructField(primitive_array,ArrayType(IntegerType,true),true),StructField(int_date,DateType,true),StructField(long_timestamp_millis,TimestampType,true),StructField(long_timestamp_micros,TimestampType,true),StructField(long_timestamp_millis_local,LongType,true),StructField(long_timesta mp_micros_local,LongType,true),StructField(bytes_decimal,DecimalType(4,2),true)] org.apache.hudi.SparkHoodieTableFileIndex._partitionSchemaFromProperties$lzycompute(SparkHoodieTableFileIndex.scala:136) org.apache.hudi.SparkHoodieTableFileIndex._partitionSchemaFromProperties(SparkHoodieTableFileIndex.scala:110) org.apache.hudi.SparkHoodieTableFileIndex.partitionSchema(SparkHoodieTableFileIndex.scala:170) org.apache.hudi.BaseFileOnlyRelation.toHadoopFsRelation(BaseFileOnlyRelation.scala:156) org.apache.hudi.DefaultSource$.resolveBaseFileOnlyRelation(DefaultSource.scala:345) [...] ``` ### Impact Fix failures for backwards compatibility issues for 1.x binary + table version 6. ### Risk level (write none, low medium or high below) Medium ### Documentation Update None ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Change Logs and Impact were stated clearly - [x] Adequate tests were added if applicable - [x] CI passed -- 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]
