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

Add Second_Of_Minute Function As An Alias Of The Second Function #197

Conversation

GabeFernandez310
Copy link

Description

Adds support for the second_of_minute function as an alias for the second function which currently exists in opensearch

Issues Resolved

#722

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

❗ No coverage uploaded for pull request base (integ-add-second_of_minute-function@7edc72e). Click here to learn what that means.
The diff coverage is n/a.

@@                          Coverage Diff                           @@
##             integ-add-second_of_minute-function     #197   +/-   ##
======================================================================
  Coverage                                       ?   95.82%           
  Complexity                                     ?     3542           
======================================================================
  Files                                          ?      356           
  Lines                                          ?     9400           
  Branches                                       ?      674           
======================================================================
  Hits                                           ?     9008           
  Misses                                         ?      334           
  Partials                                       ?       58           
Flag Coverage Δ
query-workbench 62.76% <0.00%> (?)
sql-engine 98.31% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
@GabeFernandez310 GabeFernandez310 marked this pull request as ready for review December 21, 2022 15:48
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
@GabeFernandez310 GabeFernandez310 requested a review from a team December 27, 2022 18:08
@@ -831,6 +831,63 @@ public void second() {
assertEquals("second(DATETIME '2020-08-17 01:02:03')", expression.toString());
}

public void testSecondOfMinute(FunctionExpression dateExpression, int second, String testExpr) {

Choose a reason for hiding this comment

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

Seems like both this method and testInvalidSecondOfMinute could be private.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed in 2b2f8b8

@GabeFernandez310 GabeFernandez310 requested a review from a team December 29, 2022 21:07
docs/user/dql/functions.rst Outdated Show resolved Hide resolved
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
@GabeFernandez310 GabeFernandez310 force-pushed the dev-add-second_of_minute-function branch from 166189c to 4767c53 Compare December 30, 2022 19:28
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Comment on lines 907 to 913




}


Choose a reason for hiding this comment

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

Please, delete extra blanks

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>
@GabeFernandez310 GabeFernandez310 merged commit c1f9a83 into integ-add-second_of_minute-function Jan 5, 2023
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.

6 participants