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

Fix Spark TPC-DS query 30 #16

Open
wants to merge 1 commit into
base: hdp3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spark-queries-tpcds/q30.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SELECT
c_birth_country,
c_login,
c_email_address,
c_last_review_date,
c_last_review_date_sk,
ctr_total_return
FROM customer_total_return ctr1, customer_address, customer
WHERE ctr1.ctr_total_return > (SELECT avg(ctr_total_return) * 1.2
Expand All @@ -31,5 +31,5 @@ WHERE ctr1.ctr_state = ctr2.ctr_state)
AND ctr1.ctr_customer_sk = c_customer_sk
ORDER BY c_customer_id, c_salutation, c_first_name, c_last_name, c_preferred_cust_flag
, c_birth_day, c_birth_month, c_birth_year, c_birth_country, c_login, c_email_address
, c_last_review_date, ctr_total_return
, c_last_review_date_sk, ctr_total_return
LIMIT 100