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

Clean up Snowflake type mapping code #21405

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Clean up Snowflake type mapping code #21405

merged 1 commit into from
Apr 12, 2024

Conversation

lxynov
Copy link
Member

@lxynov lxynov commented Apr 4, 2024

Description

Splitting #21012 into incremental ones. This is the first part of it.

Description:

  1. Replace maps with switch/case statements to avoid repetitive building of the maps.
  2. Re-order types so that the order is consistent with other connectors.
  3. Inlining/renaming some methods for better readability.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 4, 2024
@ebyhr
Copy link
Member

ebyhr commented Apr 4, 2024

/test-with-secrets sha=98fe1e1753ab733347114007af44dd971cd0966f

Copy link

github-actions bot commented Apr 4, 2024

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/8562287121

@ebyhr
Copy link
Member

ebyhr commented Apr 10, 2024

Please rebase on master to resolve conflicts.

@lxynov
Copy link
Member Author

lxynov commented Apr 12, 2024

@ebyhr Thanks for the review. Just addressed the comments. Added as a separate commit so please help squash them when merging.

@ebyhr
Copy link
Member

ebyhr commented Apr 12, 2024

/test-with-secrets sha=105a60a2b50baa7dab33873d684f39d2eda53cee

Copy link

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/8654894697

1. Replace maps with switch/case statements to avoid repetitive
   building of the maps.
2. Re-order types so that the order is consistent with other
   connectors.
3. Inlining/renaming some methods for better readability.
@ebyhr ebyhr merged commit b9cbf91 into trinodb:master Apr 12, 2024
2 of 14 checks passed
@github-actions github-actions bot added this to the 445 milestone Apr 12, 2024
@lxynov lxynov deleted the sf-0 branch April 12, 2024 01:23
@mosabua
Copy link
Member

mosabua commented Apr 12, 2024

Awesome @ebyhr and @lxynov .. on to the next one ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants