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 time functions test out of giant ZetaSqlDialectSpecTest #12219

Merged
merged 2 commits into from
Jul 10, 2020

Conversation

robinyqiu
Copy link
Contributor

Refactor test code for DATE/TIME/DATETIME/TIMESTAMP functions out of ZetaSqlDialectSpecTest since it has grown too big. We can also do this for other categories of functions (e.g String/Bytes functions) in the future.

Also cleaned up the code a bit. No functional change, other than turning on previously ignored test testTimeAddWithParameters which is now working.

r: @apilloud @ibzib (Consider factoring out UDF tests as well? I think technically they are an extension to ZetaSQL dialect, similar to StreamingSqlTest)
cc: @ZijieSong946

Post-Commit Tests Status (on master branch)

Lang SDK Dataflow Flink Samza Spark Twister2
Go Build Status --- Build Status --- Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status
Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
--- Build Status ---
XLang --- --- Build Status --- Build Status ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@robinyqiu
Copy link
Contributor Author

Run Java_Examples_Dataflow_Java11 PreCommit

@robinyqiu
Copy link
Contributor Author

Run Java PreCommit

Copy link
Contributor

@ibzib ibzib left a comment

Choose a reason for hiding this comment

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

Thanks Robin. I think separating certain features (including UDF) into their own test classes is a great idea.

Copy link
Contributor

@ibzib ibzib left a comment

Choose a reason for hiding this comment

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

LGTM

@robinyqiu robinyqiu merged commit fb21fe2 into apache:master Jul 10, 2020
@robinyqiu robinyqiu deleted the functions branch July 17, 2020 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants