Skip to content

feat: Snowflake source. fetch MAX in a single query #5387

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wckdman
Copy link
Contributor

@wckdman wckdman commented May 25, 2025

What this PR does / why we need it:

Default precision in Snowflake is 38 (Docs).
Current realisation executes a bunch of MAX(column) queries to check the exact precision.

This PR introduces a small optimisation to execute a single query for all columns.

Which issue(s) this PR fixes:

N/A

Misc

N/A

@wckdman wckdman requested a review from a team as a code owner May 25, 2025 15:50
Copy link
Collaborator

@HaoXuAI HaoXuAI left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Artem Petrov <58334441+wckdman@users.noreply.github.com>
@wckdman wckdman force-pushed the feat-snowflake-get-types-in-one-query branch from ea11ea0 to e80cf16 Compare May 31, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants