Skip to content

Commit

Permalink
CR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dheyman committed Mar 21, 2024
1 parent a90eb2e commit 5d0ed00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/snowflake/client/jdbc/SnowflakeType.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static SnowflakeType fromString(String name) {
}

public static JavaDataType getJavaType(SnowflakeType type) {
// TODO structuredType fill for Array and Map
// TODO structuredType fill for Array and Map: SNOW-1234216, SNOW-1234214
switch (type) {
case TEXT:
return JavaDataType.JAVA_STRING;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/net/snowflake/client/AbstractDriverIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ public static Connection getConnection(
properties.put("ssl", params.get("ssl"));

properties.put("internal", Boolean.TRUE.toString()); // TODO: do we need this?
properties.put("insecureMode", false); // use OCSP for all tests.

if (injectSocketTimeout > 0) {
properties.put("injectSocketTimeout", String.valueOf(injectSocketTimeout));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import net.snowflake.client.RunningOnGithubAction;
import net.snowflake.client.ThrowingConsumer;
import net.snowflake.client.category.TestCategoryStructuredType;
import net.snowflake.client.core.SnowflakeJdbcInternalApi;
import net.snowflake.client.core.structs.SnowflakeObjectTypeFactories;
import org.junit.Assume;
import org.junit.Before;
Expand Down Expand Up @@ -438,6 +439,7 @@ private void withFirstRow(String sqlText, ThrowingConsumer<ResultSet, SQLExcepti
}
}

@SnowflakeJdbcInternalApi
enum ResultSetFormatType {
JSON("JSON"),
ARROW_WITH_JSON_STRUCTURED_TYPES("ARROW"),
Expand Down

0 comments on commit 5d0ed00

Please sign in to comment.