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

Document and scratch directory for sqllogictest and make test specific #7312

Merged
merged 6 commits into from
Aug 24, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Aug 16, 2023

Which issue does this PR close?

Follow on to #7283

Rationale for this change

@devinjdangelo added a neat scratch concept to sqllogictest but it is not yet documented. See discussion at #7283 (comment)

What changes are included in this PR?

  1. Change scratch dir to be test name specific (as the tests are run in parallel)
  2. Update copy.slt to use the specific direcotry
  3. Document scratch dir in README

Are these changes tested?

Yes

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Aug 16, 2023
@alamb alamb marked this pull request as ready for review August 16, 2023 18:17

Tests in the `.slt` file are a sequence of query record generally starting with `CREATE` statements to populate tables
and then further queries to test the populated data (arrow-datafusion exception).
For example, the `test_files/copy.slt` file should use scratch
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks great to me! I ran into some issues needing to make sure each table had a unique subpath betwen copy/insert tests in #7294, and this would simplify that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merged #7294 and I updated this PR with the changes from there

Copy link
Contributor

@metesynnada metesynnada left a comment

Choose a reason for hiding this comment

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

Small typos, other than LGTM.

datafusion/sqllogictest/README.md Outdated Show resolved Hide resolved
datafusion/sqllogictest/README.md Outdated Show resolved Hide resolved
@alamb
Copy link
Contributor Author

alamb commented Aug 23, 2023

@Dandandan / @jackwener / @liukun4515 here is another example where the PR is ready to merge but I can't merge it due to the check added in #7226

Can another committer please approve this PR?

@alamb
Copy link
Contributor Author

alamb commented Aug 24, 2023

Thanks @yjshen ❤️

@alamb alamb merged commit 283c4b5 into apache:main Aug 24, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants