-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1553624 - structured types bindings test all types #1841
base: master
Are you sure you want to change the base?
Conversation
ErrorCode.FEATURE_UNSUPPORTED, | ||
"Can't construct array for data type: " + columnSubType); | ||
} | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we inverse the condition and skip then else to make less changes here?
src/main/java/net/snowflake/client/core/arrow/MapConverter.java
Outdated
Show resolved
Hide resolved
src/main/java/net/snowflake/client/jdbc/SnowflakePreparedStatementV1.java
Outdated
Show resolved
Hide resolved
src/test/java/net/snowflake/client/jdbc/BindingAndInsertingArraysStructuredTypesLatestIT.java
Outdated
Show resolved
Hide resolved
public Connection init() throws SQLException { | ||
Connection conn = BaseJDBCTest.getConnection(BaseJDBCTest.DONT_INJECT_SOCKET_TIMEOUT); | ||
try (Statement stmt = conn.createStatement()) { | ||
stmt.execute("alter session set ENABLE_STRUCTURED_TYPES_IN_CLIENT_RESPONSE = true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we change the alter session to update all parameters in one call?
stmt.executeUpdate(); | ||
|
||
try (ResultSet resultSet = statement.executeQuery("SELECT * from array_of_varchars"); ) { | ||
resultSet.next(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's wrap next
calls with assertTrue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
src/test/java/net/snowflake/client/jdbc/BindingAndInsertingArraysStructuredTypesLatestIT.java
Outdated
Show resolved
Hide resolved
6f9c168
to
39b7927
Compare
39b7927
to
5631aa7
Compare
14ddc4e
to
ae00e43
Compare
* statement; if a database access error occurs or this method is called on a closed <code> | ||
* PreparedStatement</code> | ||
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method | ||
* @since 1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it copied from the JDBC docs? we should validate that since the info here may be misleading
/** | ||
* Sets the designated parameter to the given Map instance. | ||
* | ||
* @param parameterIndex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add some description for the parameters
0ed5b76
to
e50d465
Compare
Overview
SNOW-1553624
Pre-review self checklist
master
branchmvn -P check-style validate
)mvn verify
and inspecttarget/japicmp/japicmp.html
)SNOW-XXXX:
External contributors - please answer these questions before submitting a pull request. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Issue: #NNNN
Fill out the following pre-review checklist:
@SnowflakeJdbcInternalApi
(note that public/protected methods/fields in classes marked with this annotation are already internal)Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.