[
https://issues.apache.org/jira/browse/HUDI-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17375302#comment-17375302
]
ASF GitHub Bot commented on HUDI-2009:
--------------------------------------
vinothchandar commented on a change in pull request #3075:
URL: https://github.com/apache/hudi/pull/3075#discussion_r660152303
##########
File path:
hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/DataSourceUtils.java
##########
@@ -111,6 +112,18 @@ public static HoodieRecordPayload createPayload(String
payloadClass, GenericReco
}
}
+ public static Map<String, String> getExtraMetadata(Map<String, String>
properties) {
+ Map<String, String> extraMetadataMap = new HashMap<>();
+ if
(properties.containsKey(DataSourceWriteOptions.COMMIT_METADATA_KEYPREFIX_OPT_KEY()))
{
+ for (Map.Entry<String, String> entry : properties.entrySet()) {
+ if
(entry.getKey().contains(properties.get(DataSourceWriteOptions.COMMIT_METADATA_KEYPREFIX_OPT_KEY())))
{
Review comment:
startsWith()?
--
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]
> Fix extra commit metadata in row writer path
> --------------------------------------------
>
> Key: HUDI-2009
> URL: https://issues.apache.org/jira/browse/HUDI-2009
> Project: Apache Hudi
> Issue Type: Bug
> Components: Writer Core
> Affects Versions: 0.8.0
> Reporter: sivabalan narayanan
> Assignee: sivabalan narayanan
> Priority: Major
> Labels: pull-request-available
>
> In regular path (write client), users can pass in extra commit metadata with
> help of a commit key prefix config. In row writer path, this was not
> addressed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)