Skip to content

[GLUTEN-8738] Update GlutenSQLQueryTestSuite to match with the original file#8837

Merged
marin-ma merged 3 commits intoapache:mainfrom
marin-ma:update-GlutenSQLQueryTestSuite
Mar 2, 2025
Merged

[GLUTEN-8738] Update GlutenSQLQueryTestSuite to match with the original file#8837
marin-ma merged 3 commits intoapache:mainfrom
marin-ma:update-GlutenSQLQueryTestSuite

Conversation

@marin-ma
Copy link
Copy Markdown
Contributor

GlutenSQLQueryTestSuite.scala originates from org.apache.spark.sql.SQLQueryTestSuite, but the content of the file is not aligned with spark. It seems like the file was created by simply copying and pasting from the old file from spark33/spark34 shim when supporting new Spark versions in Gluten.

Update the content of GlutenSQLQueryTestSuite.scala and mark the modifications for Gluten. Developers who will be working on supporting future Spark versions should pay attention to the content changes in the original file in Spark.

@github-actions github-actions bot added CORE works for Gluten Core VELOX labels Feb 26, 2025
@github-actions
Copy link
Copy Markdown

#8738

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

Copy link
Copy Markdown
Member

@zhouyuan zhouyuan left a comment

Choose a reason for hiding this comment

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

Thanks! Indeed we did not verify the unit tests files when upgrading from Spark-34 -> Spark-35

import org.apache.gluten.utils.{BackendTestSettings, BackendTestUtils}

import org.apache.spark.{SparkConf, SparkException, SparkThrowable}
import org.apache.spark.{SparkConf, SparkException, SparkThrowable, TestUtils}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this copied from Spark-352 code?
it seems we are upgrading to Spark-354, does this mean we should upgrade this file for future updates?
#8597

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just checked the file contents are identical for spark3.5.2 and spark3.5.4.

@marin-ma marin-ma merged commit 24a1dcd into apache:main Mar 2, 2025
zhouyuan pushed a commit to GlutenPerfBot/gluten that referenced this pull request Mar 2, 2025
@GlutenPerfBot
Copy link
Copy Markdown
Contributor

===== Performance report for TPCDS SF2000 with Velox backend, for reference only ====

query log/native_master_03_02_2025_time.csv log/native_master_03_01_2025_4aff8d58cf_time.csv difference percentage
q1 11.26 10.89 -0.365 96.75%
q2 11.88 12.50 0.618 105.20%
q3 2.57 3.21 0.634 124.62%
q4 50.52 52.92 2.401 104.75%
q5 9.66 8.54 -1.124 88.36%
q6 4.70 4.35 -0.344 92.68%
q7 5.64 3.99 -1.654 70.67%
q8 4.79 3.39 -1.405 70.70%
q9 14.31 13.19 -1.116 92.20%
q10 12.38 11.24 -1.144 90.76%
q11 27.52 29.65 2.126 107.72%
q12 1.89 2.74 0.851 144.91%
q13 6.49 4.96 -1.535 76.37%
q14a 45.10 44.38 -0.724 98.40%
q14b 39.32 38.40 -0.928 97.64%
q15 3.31 3.79 0.480 114.50%
q16 4.87 5.97 1.104 122.69%
q17 5.52 5.37 -0.149 97.31%
q18 8.77 7.81 -0.964 89.01%
q19 3.07 3.70 0.630 120.52%
q20 1.69 1.74 0.045 102.65%
q21 0.77 0.89 0.121 115.63%
q22 3.54 4.40 0.863 124.39%
q23a 62.01 63.08 1.070 101.72%
q23b 73.40 72.44 -0.953 98.70%
q24a 69.90 70.25 0.354 100.51%
q24b 66.13 69.33 3.200 104.84%
q25 5.39 5.08 -0.313 94.20%
q26 2.59 3.06 0.474 118.29%
q27 2.42 3.43 1.006 141.54%
q28 17.35 17.34 -0.007 99.96%
q29 8.01 7.70 -0.310 96.13%
q30 5.16 6.09 0.928 117.98%
q31 8.64 8.05 -0.595 93.12%
q32 1.53 1.69 0.155 110.09%
q33 3.45 4.20 0.753 121.80%
q34 3.27 3.06 -0.212 93.52%
q35 7.79 7.99 0.207 102.66%
q36 2.44 2.40 -0.046 98.13%
q37 3.94 3.02 -0.924 76.56%
q38 11.57 12.26 0.696 106.02%
q39a 4.39 3.96 -0.430 90.22%
q39b 4.10 3.56 -0.540 86.84%
q40 3.65 3.56 -0.093 97.45%
q41 0.68 0.63 -0.048 92.93%
q42 0.97 0.52 -0.457 53.06%
q43 2.88 2.21 -0.675 76.59%
q44 5.89 6.02 0.136 102.30%
q45 4.53 2.98 -1.544 65.90%
q46 4.27 4.38 0.112 102.63%
q47 9.78 9.67 -0.113 98.84%
q48 4.33 3.48 -0.852 80.31%
q49 5.53 5.25 -0.283 94.88%
q50 17.58 17.48 -0.096 99.46%
q51 7.47 7.38 -0.094 98.74%
q52 0.95 1.00 0.052 105.46%
q53 1.75 2.41 0.660 137.76%
q54 5.93 6.53 0.602 110.16%
q55 0.90 0.87 -0.029 96.78%
q56 4.33 4.27 -0.067 98.45%
q57 6.79 6.08 -0.710 89.54%
q58 3.57 2.72 -0.851 76.15%
q59 4.31 4.21 -0.109 97.48%
q60 4.37 4.07 -0.297 93.21%
q61 5.35 4.63 -0.725 86.46%
q62 2.65 3.40 0.744 128.03%
q63 1.80 1.57 -0.223 87.58%
q64 36.55 35.67 -0.883 97.58%
q65 11.70 11.09 -0.616 94.73%
q66 3.32 3.04 -0.286 91.39%
q67 57.28 58.73 1.454 102.54%
q68 3.07 3.29 0.222 107.26%
q69 4.83 5.03 0.199 104.12%
q70 6.38 6.24 -0.138 97.84%
q71 6.16 5.21 -0.956 84.50%
q72 21.55 20.52 -1.037 95.19%
q73 2.48 2.90 0.426 117.21%
q74 17.51 17.37 -0.144 99.18%
q75 23.22 22.97 -0.250 98.92%
q76 7.03 7.10 0.072 101.03%
q77 2.43 3.14 0.709 129.16%
q78 33.14 33.15 0.015 100.05%
q79 4.35 3.97 -0.383 91.20%
q80 9.83 12.55 2.722 127.70%
q81 6.63 7.50 0.875 113.20%
q82 5.69 5.56 -0.128 97.74%
q83 1.41 1.76 0.351 124.88%
q84 3.02 2.64 -0.378 87.49%
q85 5.84 6.32 0.480 108.22%
q86 2.14 2.15 0.015 100.72%
q87 12.25 11.81 -0.443 96.38%
q88 15.09 15.55 0.465 103.08%
q89 2.43 1.96 -0.466 80.80%
q90 1.97 2.35 0.375 118.99%
q91 4.49 5.01 0.517 111.50%
q92 2.08 1.92 -0.155 92.52%
q93 24.52 23.18 -1.338 94.54%
q94 8.05 8.52 0.467 105.80%
q9 55.93 54.98 -0.948 98.30%
q5 2.09 2.09 -0.003 99.86%
q96 10.74 10.57 -0.167 98.45%
q97 3.11 2.41 -0.704 77.37%
q98 5.33 5.55 0.222 104.17%
q99 0.34 0.65 0.305 189.38%
total 1177.33 1175.77 -1.561 99.87%

@GlutenPerfBot
Copy link
Copy Markdown
Contributor

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query log/native_master_03_02_2025_time.csv log/native_master_03_01_2025_4aff8d58cf_time.csv difference percentage
q1 24.56 25.01 0.450 101.83%
q2 27.13 26.92 -0.211 99.22%
q3 33.16 32.79 -0.372 98.88%
q4 27.83 27.22 -0.608 97.81%
q5 60.35 61.13 0.782 101.30%
q6 10.90 13.25 2.347 121.52%
q7 40.21 41.08 0.872 102.17%
q8 62.62 65.06 2.446 103.91%
q9 97.09 101.05 3.960 104.08%
q10 38.21 41.31 3.094 108.10%
q11 15.78 16.39 0.614 103.89%
q12 16.53 17.13 0.599 103.62%
q13 24.37 24.46 0.094 100.38%
q14 12.36 12.53 0.178 101.44%
q15 25.31 24.98 -0.331 98.69%
q16 12.86 12.51 -0.344 97.32%
q17 74.58 75.48 0.907 101.22%
q18 114.53 115.37 0.838 100.73%
q19 20.71 20.18 -0.530 97.44%
q20 23.53 23.60 0.076 100.32%
q21 174.25 178.50 4.250 102.44%
q22 10.82 10.19 -0.626 94.21%
total 947.68 966.16 18.485 101.95%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLICKHOUSE CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants