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

Refactor datetime functions docs and IT #787

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

LantaoJin
Copy link
Member

Description

https://github.com/opensearch-project/opensearch-spark/blob/73a6b77c00cf4d1f6c14f6ca7ba7be37bf0916e1/docs/ppl-lang/functions/ppl-datetime.md contains many unsupported datetime functions, such as

  1. SUBTIME, MAKETIME, DATETIME, TIME, TIMEDIFF, TIME_TO_SEC, TIMESTAMPADD, TIMESTAMPDIFF, UTC_TIME etc. because there is no Time data type in Spark
  2. MONTHNAM, DAYNAME, MAKETIMESTAMP, CONVERT_TIMEZONE, CURDATE, LOCALTIMESTAMP etc. because is present in Spark v4.0.0

Issues Resolved

#786

Check List

  • Updated documentation (ppl-spark-integration/README.md)
  • Implemented unit tests
  • Implemented tests for combination with other commands
  • 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.

@LantaoJin LantaoJin marked this pull request as ready for review October 17, 2024 13:11
@YANG-DB YANG-DB added Lang:PPL Pipe Processing Language support 0.6 labels Oct 17, 2024
@LantaoJin
Copy link
Member Author

ping @YANG-DB

@@ -605,31 +605,6 @@ class FlintSparkPPLBuiltinFunctionITSuite
comparePlans(logicalPlan, expectedPlan, checkAnalysis = false)
}

test("test time functions - from_unixtime and unix_timestamp") {
Copy link
Member

Choose a reason for hiding this comment

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

hi @LantaoJin
why did u remove this ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This test was moved to FlintSparkPPLBuiltInDateTimeFunctionITSuite.

@LantaoJin LantaoJin merged commit 8ab81ae into opensearch-project:main Oct 19, 2024
6 checks passed
kenrickyap pushed a commit to Bit-Quill/opensearch-spark that referenced this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.6 Lang:PPL Pipe Processing Language support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants