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

[Backport 2.x] Add The TO_SECONDS Function To The SQL Plugin #1447

Merged

Conversation

GabeFernandez310
Copy link
Contributor

Manually backport d38a6ec FROM #1419.

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.

)

* Add The `TO_SECONDS` Function To The SQL Plugin (#232)

* Added Basic Tests

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added IT Test

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added Implementation

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Changed Integration Tests

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added Test For Time Type

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added Documentation

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Addressed PR Comments

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Fixed Docs and Implementation

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Fixed Checkstyle

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Changed DateTimeFormatter Priority

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added More Formatters

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Updated Docs

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Reworked Implementation For Formatters

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Cleanup

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added Test

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Fixed Implementation And Code Coverage

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Changed getFormatter Function

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Added Comments

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

---------

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

* Removed Unneeded Code

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>

---------

Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>
(cherry picked from commit d38a6ec)
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2023

Codecov Report

Merging #1447 (e1b5713) into 2.x (5f1747d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##                2.x    #1447   +/-   ##
=========================================
  Coverage     98.42%   98.42%           
- Complexity     3754     3767   +13     
=========================================
  Files           343      343           
  Lines          9312     9353   +41     
  Branches        597      599    +2     
=========================================
+ Hits           9165     9206   +41     
  Misses          142      142           
  Partials          5        5           
Flag Coverage Δ
sql-engine 98.42% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...c/main/java/org/opensearch/sql/expression/DSL.java 100.00% <100.00%> (ø)
...arch/sql/expression/datetime/DateTimeFunction.java 100.00% <100.00%> (ø)
...h/sql/expression/function/BuiltinFunctionName.java 100.00% <100.00%> (ø)
...a/org/opensearch/sql/utils/DateTimeFormatters.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@GabeFernandez310 GabeFernandez310 marked this pull request as ready for review March 16, 2023 20:57
@GabeFernandez310 GabeFernandez310 requested a review from a team as a code owner March 16, 2023 20:57
@dai-chen dai-chen added the enhancement New feature or request label Mar 16, 2023
@Yury-Fridlyand Yury-Fridlyand merged commit 5d01207 into opensearch-project:2.x Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants