1818
1919package org .apache .hudi .connect .utils ;
2020
21- import com .google .protobuf .ByteString ;
22- import org .apache .hadoop .conf .Configuration ;
2321import org .apache .hudi .client .WriteStatus ;
2422import org .apache .hudi .common .config .TypedProperties ;
2523import org .apache .hudi .common .model .HoodieCommitMetadata ;
3634import org .apache .hudi .exception .HoodieException ;
3735import org .apache .hudi .keygen .BaseKeyGenerator ;
3836import org .apache .hudi .keygen .CustomAvroKeyGenerator ;
39- import org .apache .hudi .keygen .CustomKeyGenerator ;
4037import org .apache .hudi .keygen .KeyGenerator ;
4138import org .apache .hudi .keygen .constant .KeyGeneratorOptions ;
39+
40+ import com .google .protobuf .ByteString ;
41+ import org .apache .hadoop .conf .Configuration ;
4242import org .apache .kafka .clients .admin .AdminClient ;
4343import org .apache .kafka .clients .admin .DescribeTopicsResult ;
4444import org .apache .kafka .clients .admin .TopicDescription ;
@@ -185,8 +185,7 @@ public static String getRecordKeyColumns(KeyGenerator keyGenerator) {
185185 * @return partition columns Returns the partition columns separated by comma.
186186 */
187187 public static String getPartitionColumns (KeyGenerator keyGenerator , TypedProperties typedProperties ) {
188-
189- if (keyGenerator instanceof CustomKeyGenerator || keyGenerator instanceof CustomAvroKeyGenerator ) {
188+ if (keyGenerator instanceof CustomAvroKeyGenerator ) {
190189 return ((BaseKeyGenerator ) keyGenerator ).getPartitionPathFields ().stream ().map (
191190 pathField -> Arrays .stream (pathField .split (CustomAvroKeyGenerator .SPLIT_REGEX ))
192191 .findFirst ().orElse ("Illegal partition path field format: '$pathField' for ${c.getClass.getSimpleName}" ))
@@ -200,7 +199,6 @@ public static String getPartitionColumns(KeyGenerator keyGenerator, TypedPropert
200199 return typedProperties .getString (KeyGeneratorOptions .PARTITIONPATH_FIELD_NAME .key ());
201200 }
202201
203-
204202 /**
205203 * Get the Metadata from the latest commit file.
206204 *
0 commit comments