diff --git a/src/main/java/net/snowflake/client/core/ObjectMapperFactory.java b/src/main/java/net/snowflake/client/core/ObjectMapperFactory.java index 2c6a3fbb1..c751d4d20 100644 --- a/src/main/java/net/snowflake/client/core/ObjectMapperFactory.java +++ b/src/main/java/net/snowflake/client/core/ObjectMapperFactory.java @@ -3,8 +3,6 @@ import com.fasterxml.jackson.core.StreamReadConstraints; import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; -import net.snowflake.client.log.SFLogger; -import net.snowflake.client.log.SFLoggerFactory; /** * Factor method used to create ObjectMapper instance. All object mapper in JDBC should be created @@ -15,11 +13,10 @@ public class ObjectMapperFactory { // Snowflake allows up to 16M string size and returns base64 encoded value that makes it up to 23M public static final int DEFAULT_MAX_JSON_STRING_LEN = 23_000_000; + @SnowflakeJdbcInternalApi public static final String MAX_JSON_STRING_LENGTH_JVM = "net.snowflake.jdbc.objectMapper.maxJsonStringLength"; - private static final SFLogger logger = SFLoggerFactory.getLogger(ObjectMapperFactory.class); - public static ObjectMapper getObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.configure(MapperFeature.OVERRIDE_PUBLIC_ACCESS_MODIFIERS, false);