-
Notifications
You must be signed in to change notification settings - Fork 171
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-1299790 Delete structured type flag #1698
Conversation
3dff843
to
e7409a8
Compare
7bb1ae1
to
1067bf7
Compare
src/main/java/net/snowflake/client/jdbc/SnowflakeBaseResultSet.java
Outdated
Show resolved
Hide resolved
@@ -477,4 +477,9 @@ public List<Boolean> getIsAutoIncrementList() { | |||
public List<SnowflakeColumnMetadata> getColumnMetadata() { | |||
return columnMetadata; | |||
} | |||
|
|||
public boolean isStructuredTypeColumn(int columnIndex) { |
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 there a situation where this throws IndexOutofBoundsException?
@@ -284,7 +283,7 @@ protected SfSqlArray getJsonArray(String obj, int columnIndex) throws SFExceptio | |||
int columnType = ColumnTypeHelper.getColumnType(columnSubType, session); | |||
int scale = fieldMetadata.getScale(); | |||
|
|||
ArrayNode arrayNode = (ArrayNode) OBJECT_MAPPER.readTree(obj); | |||
ArrayNode arrayNode = (ArrayNode) OBJECT_MAPPER.readTree(obj.replaceAll("undefined", "null")); |
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.
do we want to leave this?
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.
yes
1660bfa
to
21ff020
Compare
Overview
SNOW-XXXXX
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.
Fixes #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.