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

Add clickbench queries to sqllogictest coverage #6836

Merged
merged 6 commits into from
Jul 5, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jul 3, 2023

Which issue does this PR close?

Related to #6790

Closes #6790 (via test)

Rationale for this change

I would like test coverage for changes in #6827 (especially as it caused a regression that we didn't catch)

I also would like to ensure we don't break clickbench again

What changes are included in this PR?

  1. Add a sample clickbench data file (first 10 rows)
  2. Add clickbench.slt test file with data and queries

Are these changes tested?

They are ONLY tests

Are there any user-facing changes?

No

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jul 3, 2023
@alamb alamb marked this pull request as ready for review July 3, 2023 19:59
@alamb alamb mentioned this pull request Jul 3, 2023
SELECT "AdvEngineID", COUNT(*) FROM hits WHERE "AdvEngineID" <> 0 GROUP BY "AdvEngineID" ORDER BY COUNT(*) DESC;
----

# https://github.com/apache/arrow-datafusion/issues/6790
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are fixed by #6827

Copy link
Contributor

@Dandandan Dandandan left a comment

Choose a reason for hiding this comment

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

Can we rename datafusion/core/tests/data/clickbench_hits_10.parqet as well to parquet? Otherwise looks good :)

@alamb
Copy link
Contributor Author

alamb commented Jul 4, 2023

oh man, of course

@alamb alamb merged commit 91150c1 into apache:main Jul 5, 2023
2010YOUY01 pushed a commit to 2010YOUY01/arrow-datafusion that referenced this pull request Jul 5, 2023
* Add clickbench queries to sqllogictest coverage

* rowsort

* Update datafusion/core/tests/sqllogictests/test_files/clickbench.slt

Co-authored-by: Daniël Heres <[email protected]>

* fix typo -- 🤦

* Update queries now that they pass

---------

Co-authored-by: Daniël Heres <[email protected]>
alamb added a commit to alamb/datafusion that referenced this pull request Jul 6, 2023
* Add clickbench queries to sqllogictest coverage

* rowsort

* Update datafusion/core/tests/sqllogictests/test_files/clickbench.slt

Co-authored-by: Daniël Heres <[email protected]>

* fix typo -- 🤦

* Update queries now that they pass

---------

Co-authored-by: Daniël Heres <[email protected]>
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.

Schema error: No field named mytable."A". when table is named "MyTable"
2 participants