-
Couldn't load subscription status.
- Fork 1.7k
Minor: Consolidate UDF tests #7704
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
Conversation
| let actual = execute(&ctx, sql).await; | ||
| let expected = vec![vec!["0.6584408483418833"]]; | ||
| assert_float_eq(&expected, &actual); | ||
| let actual = plan_and_collect(&ctx, sql).await.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was using a (very) old style to execute
| Ok(()) | ||
| } | ||
|
|
||
| #[tokio::test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to user defined tests
| Ok(()) | ||
| } | ||
|
|
||
| #[tokio::test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was randomly in the file for testing exprs when it is actually an (user defined) aggregate query 😕
| pub mod timestamp; | ||
| pub mod udf; | ||
|
|
||
| fn assert_float_eq<T>(expected: &[Vec<T>], received: &[Vec<String>]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
|
Thanks @yjshen ! |
* Minor: Consolidate user defined functions * cleanup * move more tests * more * cleanup use
Which issue does this PR close?
Rationale for this change
When evaluating coverage of our user defined functions (UDFs) I found that some tests were in sql_integration, and some were in other places.
What changes are included in this PR?
Consolidate them all into the aptly named
user_defined_integrationso they are easier to find.Are these changes tested?
all tests
Are there any user-facing changes?