@@ -55,26 +55,16 @@ class TestSparkDataSource extends SparkClientFunctionalTestHarness {
55
55
56
56
@ ParameterizedTest
57
57
@ CsvSource (value = Array (
58
- " COPY_ON_WRITE|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
59
- " COPY_ON_WRITE|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
60
- " COPY_ON_WRITE|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
61
- " COPY_ON_WRITE|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
62
- " COPY_ON_WRITE|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
63
- " COPY_ON_WRITE|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
64
- " COPY_ON_WRITE|false|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
65
- " COPY_ON_WRITE|true|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
66
- " COPY_ON_WRITE|true|true|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
67
- " MERGE_ON_READ|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
68
- " MERGE_ON_READ|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
69
- " MERGE_ON_READ|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
70
- " MERGE_ON_READ|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
71
- " MERGE_ON_READ|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
72
- " MERGE_ON_READ|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
73
- " MERGE_ON_READ|false|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
74
- " MERGE_ON_READ|true|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
75
- " MERGE_ON_READ|true|true|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM"
58
+ " COPY_ON_WRITE|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
59
+ " COPY_ON_WRITE|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
60
+ " COPY_ON_WRITE|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
61
+ " MERGE_ON_READ|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
62
+ " MERGE_ON_READ|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
63
+ " MERGE_ON_READ|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM"
76
64
), delimiter = '|' )
77
- def testCoreFlow (tableType : String , isMetadataEnabledOnWrite : Boolean , isMetadataEnabledOnRead : Boolean , keyGenClass : String , indexType : String ): Unit = {
65
+ def testCoreFlow (tableType : String , keyGenClass : String , indexType : String ): Unit = {
66
+ val isMetadataEnabledOnWrite = true
67
+ val isMetadataEnabledOnRead = true
78
68
val partitionField = if (classOf [NonpartitionedKeyGenerator ].getName.equals(keyGenClass)) " " else " partition"
79
69
val options : Map [String , String ] = commonOpts +
80
70
(HoodieMetadataConfig .ENABLE .key -> String .valueOf(isMetadataEnabledOnWrite)) +
@@ -220,44 +210,22 @@ class TestSparkDataSource extends SparkClientFunctionalTestHarness {
220
210
221
211
@ ParameterizedTest
222
212
@ CsvSource (value = Array (
223
- " COPY_ON_WRITE|insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
224
- " COPY_ON_WRITE|insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
225
- " COPY_ON_WRITE|insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
226
- " COPY_ON_WRITE|insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
227
- " COPY_ON_WRITE|insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
228
- " COPY_ON_WRITE|insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
229
- " COPY_ON_WRITE|insert|false|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
230
- " COPY_ON_WRITE|insert|true|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
231
- " COPY_ON_WRITE|insert|true|true|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
232
- " MERGE_ON_READ|insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
233
- " MERGE_ON_READ|insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
234
- " MERGE_ON_READ|insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
235
- " MERGE_ON_READ|insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
236
- " MERGE_ON_READ|insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
237
- " MERGE_ON_READ|insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
238
- " MERGE_ON_READ|insert|false|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
239
- " MERGE_ON_READ|insert|true|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
240
- " MERGE_ON_READ|insert|true|true|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
241
- " COPY_ON_WRITE|bulk_insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
242
- " COPY_ON_WRITE|bulk_insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
243
- " COPY_ON_WRITE|bulk_insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
244
- " COPY_ON_WRITE|bulk_insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
245
- " COPY_ON_WRITE|bulk_insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
246
- " COPY_ON_WRITE|bulk_insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
247
- " COPY_ON_WRITE|bulk_insert|false|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
248
- " COPY_ON_WRITE|bulk_insert|true|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
249
- " COPY_ON_WRITE|bulk_insert|true|true|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
250
- " MERGE_ON_READ|bulk_insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
251
- " MERGE_ON_READ|bulk_insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
252
- " MERGE_ON_READ|bulk_insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
253
- " MERGE_ON_READ|bulk_insert|false|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
254
- " MERGE_ON_READ|bulk_insert|true|false|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
255
- " MERGE_ON_READ|bulk_insert|true|true|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
256
- " MERGE_ON_READ|bulk_insert|false|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
257
- " MERGE_ON_READ|bulk_insert|true|false|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
258
- " MERGE_ON_READ|bulk_insert|true|true|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM"
213
+ " COPY_ON_WRITE|insert|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
214
+ " COPY_ON_WRITE|insert|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
215
+ " COPY_ON_WRITE|insert|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
216
+ " MERGE_ON_READ|insert|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
217
+ " MERGE_ON_READ|insert|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
218
+ " MERGE_ON_READ|insert|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
219
+ " COPY_ON_WRITE|bulk_insert|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
220
+ " COPY_ON_WRITE|bulk_insert|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
221
+ " COPY_ON_WRITE|bulk_insert|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM" ,
222
+ " MERGE_ON_READ|bulk_insert|org.apache.hudi.keygen.SimpleKeyGenerator|BLOOM" ,
223
+ " MERGE_ON_READ|bulk_insert|org.apache.hudi.keygen.SimpleKeyGenerator|SIMPLE" ,
224
+ " MERGE_ON_READ|bulk_insert|org.apache.hudi.keygen.NonpartitionedKeyGenerator|GLOBAL_BLOOM"
259
225
), delimiter = '|' )
260
- def testImmutableUserFlow (tableType : String , operation : String , isMetadataEnabledOnWrite : Boolean , isMetadataEnabledOnRead : Boolean , keyGenClass : String , indexType : String ): Unit = {
226
+ def testImmutableUserFlow (tableType : String , operation : String , keyGenClass : String , indexType : String ): Unit = {
227
+ val isMetadataEnabledOnWrite = true
228
+ val isMetadataEnabledOnRead = true
261
229
val partitionField = if (classOf [NonpartitionedKeyGenerator ].getName.equals(keyGenClass)) " " else " partition"
262
230
val options : Map [String , String ] = commonOpts +
263
231
(HoodieMetadataConfig .ENABLE .key -> String .valueOf(isMetadataEnabledOnWrite)) +
0 commit comments