Skip to content

SNOW-2314365: Added support for conditional expression functions#3767

Merged
sfc-gh-aherreraaguilar merged 29 commits into
mainfrom
feature/aherrera/SNOW-2314365-conditional-expression-functions
Sep 19, 2025
Merged

SNOW-2314365: Added support for conditional expression functions#3767
sfc-gh-aherreraaguilar merged 29 commits into
mainfrom
feature/aherrera/SNOW-2314365-conditional-expression-functions

Conversation

@sfc-gh-aherreraaguilar

@sfc-gh-aherreraaguilar sfc-gh-aherreraaguilar commented Sep 11, 2025

Copy link
Copy Markdown
Contributor
  1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-2314365

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
      • If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am adding new credentials
    • I am adding a new dependency
    • If this is a new feature/behavior, I'm adding the Local Testing parity changes.
    • I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: Thread-safe Developer Guidelines
    • If adding any arguments to public Snowpark APIs or creating new public Snowpark APIs, I acknowledge that I have ensured my changes include AST support. Follow the link for more information: AST Support Guidelines
  3. Please describe how your code solves the related issue.

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

    • Added support for the following scalar functions in functions.py:
  • booland
  • boolnot
  • boolor
  • boolxor
  • decode
  • greatest_ignore_nulls
  • least_ignore_nulls
  • nullif
  • nvl2
  • regr_valx

Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
…nditional-expression-functions' into feature/aherrera/SNOW-2314365-conditional-expression-functions
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
@sfc-gh-aherreraaguilar sfc-gh-aherreraaguilar changed the title Added support for conditional expression functions SNOW-2314365: Added support for conditional expression functions Sep 11, 2025
…ditional-expression-functions

# Conflicts:
#	CHANGELOG.md
#	src/snowflake/snowpark/_functions/scalar_functions.py
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated

@sfc-gh-mvegaalvarez sfc-gh-mvegaalvarez left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

code looks good,
added several comments regarding documentation of methods, should use a consistent way to document all the methods

my suggestion:

Args:
    <argName> (<type>): <description of the arg, without references to the type no> 
Returns:
    <returnType>: <description of return value, without reference to the type>

Comment thread CHANGELOG.md
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
@sfc-gh-aherreraaguilar

Copy link
Copy Markdown
Contributor Author

@sfc-gh-mvegaalvarez comments solved

@sfc-gh-mvegaalvarez sfc-gh-mvegaalvarez left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

Comment thread CHANGELOG.md Outdated
@sfc-gh-aling

Copy link
Copy Markdown
Collaborator

oops looks like local testing failed due to the new function support

@github-actions github-actions Bot added the local testing Local Testing issues/PRs label Sep 18, 2025
@sfc-gh-aherreraaguilar

Copy link
Copy Markdown
Contributor Author

Hello @sfc-gh-aling, I made some updates to fix the local testing failure. Please take a look. Thanks!

Comment thread src/snowflake/snowpark/_functions/scalar_functions.py Outdated
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py
Comment thread src/snowflake/snowpark/_functions/scalar_functions.py
…pression-functions

# Conflicts:
#	docs/source/snowpark/functions.rst
#	src/snowflake/snowpark/_functions/scalar_functions.py
@sfc-gh-aherreraaguilar sfc-gh-aherreraaguilar merged commit 3618118 into main Sep 19, 2025
29 checks passed
@sfc-gh-aherreraaguilar sfc-gh-aherreraaguilar deleted the feature/aherrera/SNOW-2314365-conditional-expression-functions branch September 19, 2025 13:03
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

local testing Local Testing issues/PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants