satishkotha commented on a change in pull request #847:
URL: https://github.com/apache/parquet-mr/pull/847#discussion_r552980150
##########
File path:
parquet-tools/src/main/java/org/apache/parquet/tools/command/MergeCommand.java
##########
@@ -46,19 +47,34 @@
" <output> is the destination parquet file"
};
- private static final String DEFAULT_KEY_VALUE_MERGE_STRATEGY =
StrictKeyValueMetadataMergeStrategy.class.getName();
+ private static enum MergeStrategy {
+ STRICT,
+ CONCAT,
+ CUSTOM,
+ }
+
public static final Options OPTIONS;
static {
OPTIONS = new Options();
Option mergeStrategy = Option.builder("s")
.longOpt("mergeStrategy")
.desc("Strategy to merge (key, value) pairs in metadata if there are
multiple values for same key " +
- "(default: " + DEFAULT_KEY_VALUE_MERGE_STRATEGY + ")")
+ "(default: " + MergeStrategy.STRICT + "). You can provide your custom
implementation by specifying " +
Review comment:
Ok. Done.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]