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

Remove tests from sql_integration that were ported to sqllogictest #4836

Merged
merged 5 commits into from
Jan 9, 2023

Conversation

matthewwillian
Copy link
Contributor

@matthewwillian matthewwillian commented Jan 7, 2023

Which issue does this PR close?

Closes #4498

Rationale for this change

What changes are included in this PR?

  • Removes arrow_typeof.rs
  • Deletes a number of tests in aggegates.rs
  • Uncomments tests in aggregate.slt that worked without any substantial changes

Are these changes tested?

Unit-tests pass

Are there any user-facing changes?

No

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jan 7, 2023
@matthewwillian matthewwillian changed the title delete tests duplicated between sqllogictests and aggregates / arrow_… Remove tests from sql_integration that were ported to sqllogictest Jan 7, 2023
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

The newly added sqllogicaltest does not cover all the removed tests.

@alamb
Copy link
Contributor

alamb commented Jan 7, 2023

Thanks @matthewwillian and @jackwener -- I plan to review this PR tomorrow as well.

@matthewwillian
Copy link
Contributor Author

Thanks @jackwener. One of the aggregates tests and all of the arrow_typeof tests are duplicates of tests that already exist.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @matthewwillian -- this looks great to me. I double checked the tests and 👍

Deleting code is a wonderful first contribution 🎉

@@ -20,24 +20,6 @@ use datafusion::scalar::ScalarValue;
use datafusion::test_util::scan_empty;
use datafusion_common::cast::as_float64_array;

#[tokio::test]
async fn csv_query_avg_multi_batch() -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -846,26 +846,23 @@ SELECT count(1 + 1)
----
1

# FIX: "CSV Writer does not support List(Field { name: \"item\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }) data type")
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -976,6 +973,7 @@ select max(c1) from d_table
----
110.009

# FIX: doesn't check datatype
Copy link
Contributor

Choose a reason for hiding this comment

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

This is tracked by #4499

}

#[tokio::test]
async fn arrow_typeof_boolean() -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

@alamb
Copy link
Contributor

alamb commented Jan 8, 2023

It appears there are some CI checks failing on this PR

Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

Thanks @jackwener. One of the aggregates tests and all of the arrow_typeof tests are duplicates of tests that already exist.

Looks great to me, cleanup the useless code is great to me.

I have checked the tests. Thanks @matthewwillian.

@alamb alamb merged commit 42f7dd5 into apache:master Jan 9, 2023
@ursabot
Copy link

ursabot commented Jan 9, 2023

Benchmark runs are scheduled for baseline = c4f4dff and contender = 42f7dd5. 42f7dd5 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove tests from sql_integration that were ported to sqllogictest
4 participants