-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-34795][SQL][TESTS] Adds a new job in GitHub Actions to check the output of TPC-DS queries #31886
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
[SPARK-34795][SQL][TESTS] Adds a new job in GitHub Actions to check the output of TPC-DS queries #31886
Changes from all commits
c790de4
4189f42
ccc506c
a106423
14370cc
b1a700a
2b6ab3a
f60a7c4
4eab893
c8c103d
fc16a02
649a290
267dbed
0a19585
841005c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -428,3 +428,51 @@ jobs: | |
| - name: Build with SBT | ||
| run: | | ||
| ./build/sbt -Pyarn -Pmesos -Pkubernetes -Phive -Phive-thriftserver -Phadoop-cloud -Pkinesis-asl -Phadoop-2.7 compile test:compile | ||
|
|
||
| tpcds-1g: | ||
| name: Run TPC-DS queries with SF=1 | ||
| runs-on: ubuntu-20.04 | ||
| steps: | ||
| - name: Checkout Spark repository | ||
| uses: actions/checkout@v2 | ||
| - name: Cache TPC-DS generated data | ||
| id: cache-tpcds-sf-1 | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ./tpcds-sf-1 | ||
| key: tpcds-${{ hashFiles('tpcds-sf-1/.spark-tpcds-sf-1.md5') }} | ||
| restore-keys: | | ||
| tpcds- | ||
| - name: Checkout TPC-DS (SF=1) generated data repository | ||
| if: steps.cache-tpcds-sf-1.outputs.cache-hit != 'true' | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| repository: maropu/spark-tpcds-sf-1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we follow https://github.com/apache/spark/pull/31303/files#diff-48c0ee97c53013d18d6bbae44648f7fab9af2e0bf5b0dc1ca761e18ec5c478f2R458? I would be great if we can just stick to using the original repo with addressing https://github.com/apache/spark/pull/31303/files#r563236578. cc @wangyum FYI.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see. To generate table data for I've filed a ticket for this: databricks/spark-sql-perf#198 I'll make a PR for it when I have time later.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @maropu. Just to clarify, do you need databricks/spark-sql-perf#196 too?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea, the @wangyum PR looks useful when generating data.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, I will ping him offline to review
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, @HyukjinKwon ~ |
||
| ref: 6b660a53091bd6d23cbe58b0f09aae08e71cc667 | ||
| path: ./tpcds-sf-1 | ||
| - name: Cache Coursier local repository | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.cache/coursier | ||
| key: tpcds-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} | ||
| restore-keys: | | ||
| tpcds-coursier- | ||
| - name: Install Java 8 | ||
| uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 8 | ||
| - name: Run TPC-DS queries | ||
| run: | | ||
| SPARK_TPCDS_DATA=`pwd`/tpcds-sf-1 build/sbt "sql/testOnly org.apache.spark.sql.TPCDSQueryTestSuite" | ||
| - name: Upload test results to report | ||
| if: always() | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: test-results-tpcds--8-hadoop3.2-hive2.3 | ||
| path: "**/target/test-reports/*.xml" | ||
| - name: Upload unit tests log files | ||
| if: failure() | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: unit-tests-log-tpcds--8-hadoop3.2-hive2.3 | ||
| path: "**/target/unit-tests.log" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| -- Automatically generated by TPCDSQueryTestSuite | ||
|
|
||
| -- !query schema | ||
| struct<c_customer_id:string> | ||
| -- !query output | ||
| AAAAAAAAAAABBAAA | ||
| AAAAAAAAAAADBAAA | ||
| AAAAAAAAAAADBAAA | ||
| AAAAAAAAAAAKAAAA | ||
| AAAAAAAAAABDAAAA | ||
| AAAAAAAAAABHBAAA | ||
| AAAAAAAAAABLAAAA | ||
| AAAAAAAAAABMAAAA | ||
| AAAAAAAAAACHAAAA | ||
| AAAAAAAAAACMAAAA | ||
| AAAAAAAAAADDAAAA | ||
| AAAAAAAAAADGAAAA | ||
| AAAAAAAAAADGBAAA | ||
| AAAAAAAAAADGBAAA | ||
| AAAAAAAAAADPAAAA | ||
| AAAAAAAAAAEBAAAA | ||
| AAAAAAAAAAEFBAAA | ||
| AAAAAAAAAAEGBAAA | ||
| AAAAAAAAAAEIAAAA | ||
| AAAAAAAAAAEMAAAA | ||
| AAAAAAAAAAFAAAAA | ||
| AAAAAAAAAAFPAAAA | ||
| AAAAAAAAAAGGBAAA | ||
| AAAAAAAAAAGHBAAA | ||
| AAAAAAAAAAGJAAAA | ||
| AAAAAAAAAAGMAAAA | ||
| AAAAAAAAAAHEBAAA | ||
| AAAAAAAAAAHFBAAA | ||
| AAAAAAAAAAIEBAAA | ||
| AAAAAAAAAAJGBAAA | ||
| AAAAAAAAAAJHBAAA | ||
| AAAAAAAAAAKCAAAA | ||
| AAAAAAAAAAKCAAAA | ||
| AAAAAAAAAAKJAAAA | ||
| AAAAAAAAAAKMAAAA | ||
| AAAAAAAAAAKMAAAA | ||
| AAAAAAAAAALAAAAA | ||
| AAAAAAAAAALABAAA | ||
| AAAAAAAAAALGAAAA | ||
| AAAAAAAAAALHBAAA | ||
| AAAAAAAAAALJAAAA | ||
| AAAAAAAAAANHAAAA | ||
| AAAAAAAAAANHBAAA | ||
| AAAAAAAAAANJAAAA | ||
| AAAAAAAAAANMAAAA | ||
| AAAAAAAAAANMAAAA | ||
| AAAAAAAAAANNAAAA | ||
| AAAAAAAAAAOBBAAA | ||
| AAAAAAAAAAODBAAA | ||
| AAAAAAAAAAOLAAAA | ||
| AAAAAAAAAAPGBAAA | ||
| AAAAAAAAABAAAAAA | ||
| AAAAAAAAABAEAAAA | ||
| AAAAAAAAABAEBAAA | ||
| AAAAAAAAABAFBAAA | ||
| AAAAAAAAABAIAAAA | ||
| AAAAAAAAABAOAAAA | ||
| AAAAAAAAABBDBAAA | ||
| AAAAAAAAABCFAAAA | ||
| AAAAAAAAABCHBAAA | ||
| AAAAAAAAABDHAAAA | ||
| AAAAAAAAABENAAAA | ||
| AAAAAAAAABFEBAAA | ||
| AAAAAAAAABFGAAAA | ||
| AAAAAAAAABFMAAAA | ||
| AAAAAAAAABFPAAAA | ||
| AAAAAAAAABGFAAAA | ||
| AAAAAAAAABGFBAAA | ||
| AAAAAAAAABGJAAAA | ||
| AAAAAAAAABIBBAAA | ||
| AAAAAAAAABICBAAA | ||
| AAAAAAAAABIIAAAA | ||
| AAAAAAAAABJNAAAA | ||
| AAAAAAAAABKGBAAA | ||
| AAAAAAAAABLOAAAA | ||
| AAAAAAAAABLPAAAA | ||
| AAAAAAAAABMABAAA | ||
| AAAAAAAAABMPAAAA | ||
| AAAAAAAAABNAAAAA | ||
| AAAAAAAAABNCBAAA | ||
| AAAAAAAAABNEBAAA | ||
| AAAAAAAAABNLAAAA | ||
| AAAAAAAAABNOAAAA | ||
| AAAAAAAAABNPAAAA | ||
| AAAAAAAAABOAAAAA | ||
| AAAAAAAAABOFBAAA | ||
| AAAAAAAAABOOAAAA | ||
| AAAAAAAAABOPAAAA | ||
| AAAAAAAAABPEAAAA | ||
| AAAAAAAAACADAAAA | ||
| AAAAAAAAACAFAAAA | ||
| AAAAAAAAACAFAAAA | ||
| AAAAAAAAACAHBAAA | ||
| AAAAAAAAACAJAAAA | ||
| AAAAAAAAACBDAAAA | ||
| AAAAAAAAACBDAAAA | ||
| AAAAAAAAACBEBAAA | ||
| AAAAAAAAACBNAAAA | ||
| AAAAAAAAACBPAAAA | ||
| AAAAAAAAACCHAAAA |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| -- Automatically generated by TPCDSQueryTestSuite | ||
|
|
||
| -- !query schema | ||
| struct<cd_gender:string,cd_marital_status:string,cd_education_status:string,cnt1:bigint,cd_purchase_estimate:int,cnt2:bigint,cd_credit_rating:string,cnt3:bigint,cd_dep_count:int,cnt4:bigint,cd_dep_employed_count:int,cnt5:bigint,cd_dep_college_count:int,cnt6:bigint> | ||
| -- !query output | ||
| F D Advanced Degree 1 3000 1 High Risk 1 2 1 4 1 5 1 | ||
| F D Unknown 1 1500 1 Good 1 6 1 5 1 4 1 | ||
| M D College 1 8500 1 Low Risk 1 3 1 0 1 1 1 | ||
| M D Primary 1 7000 1 Unknown 1 2 1 1 1 1 1 | ||
| M W Unknown 1 4500 1 Good 1 5 1 0 1 1 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| -- Automatically generated by TPCDSQueryTestSuite | ||
|
|
||
| -- !query schema | ||
| struct<customer_preferred_cust_flag:string> | ||
| -- !query output | ||
| NULL | ||
| NULL | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| N | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y | ||
| Y |
Uh oh!
There was an error while loading. Please reload this page.