-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Port tests in timestamp.rs
to sqllogictest
#8216
Comments
Thank you. Can I have a try? |
Thank you @caicancai |
@alamb Hello, all tests are added to https://github.com/apache/arrow-datafusion/tree/main/datafusion/sqllogictest/test_files ? |
The number of tests seems to be quite large |
Thanks @caicancai
Yes perhaps in I think part of the reason there are many old tests is that the tests predate
Indeed -- perhaps you could pick one or two tests to port over initially rather than trying to it all in a single PR. That would let us provide incremental feedback along the way as well and make reviewing the PRs easier as well |
Thanks for the reply, I will try it |
Thank you very much @caicancai ❤️ |
I prefer to understand the code before developing it, so this takes a certain amount of time. This is a good project. |
Indeed -- I think this is a mark of a good software engineer |
Sorry, I didn't start this part of the work some time ago because I was busy with other things. I will complete this part of the work next week. |
@alamb Hello, excuse me, please allow me to ask a stupid question. I want to know how I test the results locally, cargo test timestamps.slt? But cargo test timestamps.slt doesn't show the correct result to me if the result is an error result |
Hi @caicancai -- no worry at all! To run sqllogictests tests locally, you need to run a command like cargo test --test sqllogictests -- timestamps.slt There is more information on how to run the tests is here: https://github.com/apache/arrow-datafusion/tree/main/datafusion/sqllogictest#running-tests-tldr-examples
No problem at all -- welcome to the community! The datafusion sqllogictest testing framework is not a standard rust test, which makes the bar higher |
Is your feature request related to a problem or challenge?
Part of #6195. We are trying to
Part of doing so is having a single location for most test coverage so new tests can be added easily and people can follow the existing patterns easily
Describe the solution you'd like
Port the tests in https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/tests/sql/timestamp.rs to
timestamp.slt
in https://github.com/apache/arrow-datafusion/tree/main/datafusion/sqllogictest/test_filesNote you can create catalogs and schema via SQL now
Catalogs: https://arrow.apache.org/datafusion/user-guide/sql/ddl.html#create-database
Schema: https://arrow.apache.org/datafusion/user-guide/sql/ddl.html#create-schema
Notes:
Describe alternatives you've considered
No response
Additional context
I think these are good first issues as they teach the contributor about the DataFusion codebase and tests, as well as see the end user apis in practice.
The text was updated successfully, but these errors were encountered: