Skip to content

Commit

Permalink
fix testMergeOnReadSnapshotRelationWithDeltaLogsFallback()(TestParque…
Browse files Browse the repository at this point in the history
…tColumnProjection) and Test Call repair_overwrite_hoodie_props Procedure
  • Loading branch information
Jonathan Vexler committed Oct 17, 2024
1 parent 25897cb commit 9119372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.hudi.functional

import org.apache.hudi.HoodieBaseRelation.projectSchema
import org.apache.hudi.common.config.{HoodieMetadataConfig, HoodieStorageConfig}
import org.apache.hudi.common.config.{HoodieMetadataConfig, HoodieStorageConfig, RecordMergeMode}
import org.apache.hudi.common.model.{HoodieRecord, OverwriteNonDefaultsWithLatestAvroPayload}
import org.apache.hudi.common.table.HoodieTableConfig
import org.apache.hudi.common.testutils.{HadoopMapRedUtils, HoodieTestDataGenerator}
Expand Down Expand Up @@ -183,6 +183,7 @@ class TestParquetColumnProjection extends SparkClientFunctionalTestHarness with
// being queried by the Spark, and we currently have no way figuring out what these fields are, therefore
// we fallback to read whole row
val overriddenOpts = defaultWriteOpts ++ Map(
HoodieWriteConfig.RECORD_MERGE_MODE.key() -> RecordMergeMode.CUSTOM.name(),
HoodieWriteConfig.WRITE_PAYLOAD_CLASS_NAME.key -> classOf[OverwriteNonDefaultsWithLatestAvroPayload].getName
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ class TestRepairsProcedure extends HoodieSparkProcedureTestBase {
// overwrite hoodie props
val expectedOutput ="""
|[hoodie.archivelog.folder,archived,archive]
|[hoodie.compaction.payload.class,org.apache.hudi.common.model.DefaultHoodieRecordPayload,null]
|[hoodie.database.name,default,null]
|[hoodie.datasource.write.drop.partition.columns,false,false]
|[hoodie.datasource.write.hive_style_partitioning,true,null]
|[hoodie.datasource.write.partitionpath.urlencode,false,null]
|[hoodie.record.merge.custom.strategy,eeb8d96f-b1e4-49fd-bbf8-28ac514178e5,null]
|[hoodie.record.merge.mode,EVENT_TIME_ORDERING,null]
|[hoodie.table.checksum,,]
|[hoodie.table.create.schema,,]
Expand Down

0 comments on commit 9119372

Please sign in to comment.