Skip to content

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.

alamb and others added 2 commits August 18, 2023 12:44
Co-authored-by: Metehan Yıldırım <100111937+metesynnada@users.noreply.github.com>
@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
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