nssalian commented on a change in pull request #3275:
URL: https://github.com/apache/iceberg/pull/3275#discussion_r727366182
##########
File path: core/src/main/java/org/apache/iceberg/jdbc/JdbcUtil.java
##########
@@ -99,4 +65,26 @@ public static Properties filterAndRemovePrefix(Map<String,
String> properties,
return result;
}
+
+ public static Map<String, String> convertJsonStringToMap(String jsonString) {
Review comment:
Makes sense I can use `JsonUtil.mapper()`.
##########
File path: core/src/main/java/org/apache/iceberg/jdbc/JdbcUtil.java
##########
@@ -99,4 +65,26 @@ public static Properties filterAndRemovePrefix(Map<String,
String> properties,
return result;
}
+
+ public static Map<String, String> convertJsonStringToMap(String jsonString) {
+ Map<String, String> resultMap;
+ try {
+ resultMap = objectMapper.readValue(
+ jsonString, new TypeReference<HashMap<String, String>>() {
+ });
+ } catch (JsonProcessingException e) {
+ throw new RuntimeException(e);
Review comment:
Will do.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]