Skip to content

Conversation

@sfc-gh-nkumar
Copy link
Contributor

@sfc-gh-nkumar sfc-gh-nkumar commented Oct 27, 2025

Please answer these questions before submitting your pull requests. Thanks!

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

    Fixes SNOW-2464063

  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 adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

We added INTERVAL YEAR TO MONTH type in Private preview for Interval data types. Now in Public preview (not released yet) we are adding two more types INTERVAL YEAR and INTERVAL MONTH. All of these 3 types are represented by same logical_type INTERVAL_YEAR_MONTH. And we use scale column Metadata field to represent the subtype in this case
scale = 0 -> interval year to month
scale = 1 -> interval year
scale = 2 -> interval month
We had this logic in connector to convert this interval year-month to string which only works correctly for interval year to month. This PR updates it to look at scale to fetch correct subtype and create string presentation accordingly.

  1. (Optional) PR for stored-proc connector:

@sfc-gh-nkumar sfc-gh-nkumar requested a review from a team as a code owner October 27, 2025 17:46
@sfc-gh-nkumar sfc-gh-nkumar force-pushed the nkumar-SNOW-2464063-year-month-foramt branch from 5388f75 to 6c6411d Compare October 27, 2025 17:46
@sfc-gh-nkumar sfc-gh-nkumar force-pushed the nkumar-SNOW-2464063-year-month-foramt branch from 691a3e5 to b8691f1 Compare October 28, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants