Skip to content

Commit e9fc046

Browse files
authored
NO-SNOW Enable structured types in FDN tables (#2173)
1 parent 0cd1a33 commit e9fc046

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/java/net/snowflake/client/jdbc/DatabaseMetaDataResultSetLatestIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public void testGetObjectNotSupported() throws SQLException {
4444
public void testObjectColumn() throws SQLException {
4545
try (Connection connection = getConnection();
4646
Statement statement = connection.createStatement()) {
47+
statement.execute("ALTER SESSION SET ENABLE_STRUCTURED_TYPES_IN_FDN_TABLES = TRUE");
4748
statement.execute(
4849
"CREATE OR REPLACE TABLE TABLEWITHOBJECTCOLUMN ("
4950
+ " col OBJECT("

src/test/java/net/snowflake/client/jdbc/structuredtypes/ResultSetStructuredTypesLatestIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public Connection init(ResultSetFormatType format) throws SQLException {
7171
"alter session set jdbc_query_result_format = '"
7272
+ format.sessionParameterTypeValue
7373
+ "'");
74+
stmt.execute("ALTER SESSION SET ENABLE_STRUCTURED_TYPES_IN_FDN_TABLES = TRUE");
7475
if (format == ResultSetFormatType.NATIVE_ARROW) {
7576
stmt.execute("alter session set ENABLE_STRUCTURED_TYPES_NATIVE_ARROW_FORMAT = true");
7677
stmt.execute("alter session set FORCE_ENABLE_STRUCTURED_TYPES_NATIVE_ARROW_FORMAT = true");

0 commit comments

Comments
 (0)