You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by cg...@apache.org on 2022/09/14 13:48:16 UTC

[drill] branch master updated: DRILL-8271: Make Storage and Format Config Case Insensitive (#2612)

This is an automated email from the ASF dual-hosted git repository.

cgivre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git


The following commit(s) were added to refs/heads/master by this push:
     new b3777ce9dc DRILL-8271: Make Storage and Format Config Case Insensitive (#2612)
b3777ce9dc is described below

commit b3777ce9dcb7ce6ad0761568de7a71e96547202a
Author: Charles S. Givre <cg...@apache.org>
AuthorDate: Wed Sep 14 09:48:09 2022 -0400

    DRILL-8271: Make Storage and Format Config Case Insensitive (#2612)
---
 .../main/java/org/apache/drill/common/logical/FormatPluginConfig.java   | 2 ++
 .../main/java/org/apache/drill/common/logical/StoragePluginConfig.java  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/logical/src/main/java/org/apache/drill/common/logical/FormatPluginConfig.java b/logical/src/main/java/org/apache/drill/common/logical/FormatPluginConfig.java
index b0d11802cd..940e11284f 100644
--- a/logical/src/main/java/org/apache/drill/common/logical/FormatPluginConfig.java
+++ b/logical/src/main/java/org/apache/drill/common/logical/FormatPluginConfig.java
@@ -17,6 +17,7 @@
  */
 package org.apache.drill.common.logical;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
 
 /**
@@ -33,5 +34,6 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
  * in {@see StoragePluginConfig}s.
  */
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonFormat(with = JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
 public interface FormatPluginConfig {
 }
diff --git a/logical/src/main/java/org/apache/drill/common/logical/StoragePluginConfig.java b/logical/src/main/java/org/apache/drill/common/logical/StoragePluginConfig.java
index a93dbec7be..87c4229e93 100644
--- a/logical/src/main/java/org/apache/drill/common/logical/StoragePluginConfig.java
+++ b/logical/src/main/java/org/apache/drill/common/logical/StoragePluginConfig.java
@@ -18,6 +18,7 @@
 package org.apache.drill.common.logical;
 
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
 import com.fasterxml.jackson.annotation.JsonProperty;
@@ -33,6 +34,7 @@ import org.slf4j.LoggerFactory;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 @JsonInclude(JsonInclude.Include.NON_DEFAULT)
+@JsonFormat(with = JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
 public abstract class StoragePluginConfig {
 
   Logger logger = LoggerFactory.getLogger(StoragePluginConfig.class);