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-1844765 Make createArrayOf case-insensitive #2010

Merged

Conversation

sfc-gh-mkubik
Copy link
Contributor

@sfc-gh-mkubik sfc-gh-mkubik commented Dec 19, 2024

Overview

SNOW-1844765

As noticed in #1982 - apache spark may turn the type name lowerCase. This behaviour is incompatible with the current createArrayOf implementation in SnowflakeConnectionV1 since it infers the JDBCType from the exact string type name.

  • This change adds toUpperCase call to JDBCType.valueOf invocation to allow passing lower/random case strings as type names.
  • Adds unit tests to emphasise that this is a desired behaviour

@sfc-gh-mkubik sfc-gh-mkubik marked this pull request as ready for review December 19, 2024 09:42
@sfc-gh-mkubik sfc-gh-mkubik requested a review from a team as a code owner December 19, 2024 09:42
@sfc-gh-mkubik sfc-gh-mkubik merged commit 0251382 into master Dec 19, 2024
139 of 142 checks passed
@sfc-gh-mkubik sfc-gh-mkubik deleted the SNOW-1844765-make-createArrayOf-case-insensitive branch December 19, 2024 14:23
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 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.

4 participants