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-802269 Add regextract signum subindex collectlist functions #142

Conversation

sfc-gh-sjayabalan
Copy link
Collaborator

  • Added regexp_extract,signum,substring_index,collect_list
  1. Added regexp_extract,signum,substring_index,collect_list to functions.scala . 2) Added test cases for the same
  • Added examples and updated the description

  • Fixed format

  • formatted the comments

  • Added java functions and unit test cases for java

  • Added sign function

  • Modified the alignment

  • Added examples

  • adjusted comments

  • Update Functions.java


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 #NNNN

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

    Replace this with a short description of how your code change solves the related issue.

Pre-review checklist

(For Snowflake employees)

  • This change has passed precommit
  • I have reviewed code coverage report for my PR in (Sonarqube)

* Added regexp_extract,signum,substring_index,collect_list

1) Added regexp_extract,signum,substring_index,collect_list to functions.scala .
2) Added test cases for the same

* Added examples and updated the description

* Fixed format

* formatted the comments

* Added java functions and unit test cases for java

* Added sign function

* Modified the alignment

* Added examples

* adjusted comments

* Update Functions.java

---------

Co-authored-by: sfc-gh-mrojas <[email protected]>
@sfc-gh-sjayabalan sfc-gh-sjayabalan changed the title SNOW-802269 Sfc gh sjayabalan sma regextract signum subindex collectlist (#141) SNOW-802269 Sfc gh sjayabalan sma regextract signum subindex collectlist Aug 13, 2024
@sfc-gh-bli
Copy link
Collaborator

sfc-gh-bli commented Aug 13, 2024

Can you give it meaningful title? for example Add regextract, signum, subindex, and collectlist functions

BTW, please reformat your code by mvn clean compile. all merging gates failed.

@sfc-gh-sjayabalan sfc-gh-sjayabalan changed the title SNOW-802269 Sfc gh sjayabalan sma regextract signum subindex collectlist SNOW-802269 Add regextract signum subindex collectlist functions Aug 13, 2024
@sfc-gh-sjayabalan
Copy link
Collaborator Author

Can you give it meaningful title? for example Add regextract, signum, subindex, and collectlist functions

BTW, please reformat your code by mvn clean compile. all merging gates failed.

  • I did clean compile.Could you please validate

* ---------
* }</pr>
*
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* ----------------------------------
* }</pr>
*
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* ----------------------------------
* }</pr>
*
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* count is negative, every to the right of the final delimiter (counting from the right) is
* returned. substring_index performs a case-sensitive match when searching for delim.
*
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* "RESULT" [ 1, 2, 3 ]
* }</pre>
*
* @since 1.10.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* ---------
*</pr>
* Note: non-greedy tokens such as are not supported
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* |-1 |1 |0 |
* ----------------------------------
* </pr>
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* |-1 |1 |0 |
* ----------------------------------
* </pr>
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* NOTE: if string values are provided snowflake will attempts to cast.
* If it casts correctly, returns the calculation,
* if not an error will be thrown
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* is returned. If count is negative, every to the right of the
* final delimiter (counting from the right) is returned.
* substring_index performs a case-sensitive match when searching for delim.
* @since 1.12.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* |] |
* ------------
* </pr>
* @since 1.10.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

* | 3 |
* |] |
* ------------
* @since 1.10.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@since 1.14.0

Copy link
Collaborator

@sfc-gh-bli sfc-gh-bli left a comment

Choose a reason for hiding this comment

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

1, please update all @since to 1.14.0, which is the next release.
2, Please check the merging gate, you have several tests failed.
3, Please verify your Java doc, that merging gate failed too. you can build java doc from your laptop via scripts/generateJavaDoc.sh.

Copy link
Collaborator

@sfc-gh-bli sfc-gh-bli left a comment

Choose a reason for hiding this comment

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

LGTM

@sfc-gh-sjayabalan sfc-gh-sjayabalan merged commit a1babb3 into main Aug 20, 2024
16 checks passed
@sfc-gh-sjayabalan sfc-gh-sjayabalan deleted the sfc-gh-sjayabalansfc-gh-sjayabalan-sma-regextract-signum-subindex-collectlist branch August 20, 2024 16:47
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.

2 participants