Skip to content
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

Closed
wants to merge 16 commits into from

Conversation

sfc-gh-pmotacki
Copy link
Contributor

Overview

SNOW-XXXXX

Pre-review self checklist

  • PR branch is updated with all the changes from master branch
  • The code is correctly formatted (run mvn -P check-style validate)
  • New public API is not unnecessary exposed (run mvn verify and inspect target/japicmp/japicmp.html)
  • The pull request name is prefixed with SNOW-XXXX:

External contributors - please answer these questions before submitting a pull request. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency or upgrading an existing one
    • I am adding new public/protected component not marked with @SnowflakeJdbcInternalApi (note that public/protected methods/fields in classes marked with this annotation are already internal)
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

@sfc-gh-pmotacki sfc-gh-pmotacki force-pushed the delete_structured_type_flag branch from 3dff843 to e7409a8 Compare April 3, 2024 16:25
@sfc-gh-pmotacki sfc-gh-pmotacki marked this pull request as ready for review April 3, 2024 16:27
@sfc-gh-pmotacki sfc-gh-pmotacki requested a review from a team as a code owner April 3, 2024 16:27
@sfc-gh-pmotacki sfc-gh-pmotacki changed the title Delete structured type flag SNOW-XXXXX Delete structured type flag Apr 4, 2024
@sfc-gh-pmotacki sfc-gh-pmotacki force-pushed the delete_structured_type_flag branch from 7bb1ae1 to 1067bf7 Compare April 4, 2024 07:39
@sfc-gh-pmotacki sfc-gh-pmotacki changed the title SNOW-XXXXX Delete structured type flag SNOW-1299790 Delete structured type flag Apr 4, 2024
@@ -477,4 +477,9 @@ public List<Boolean> getIsAutoIncrementList() {
public List<SnowflakeColumnMetadata> getColumnMetadata() {
return columnMetadata;
}

public boolean isStructuredTypeColumn(int columnIndex) {
Copy link
Contributor

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"));
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@sfc-gh-pmotacki sfc-gh-pmotacki force-pushed the delete_structured_type_flag branch from 1660bfa to 21ff020 Compare April 6, 2024 11:19
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants