Skip to content

Commit

Permalink
Merge pull request rapidsai#107 from Christian8491/blaz_q02_remove_or…
Browse files Browse the repository at this point in the history
…derby_tstamp

[REVIEW] BlazingSQL: Q02 - Remove ORDER BY tstamp
  • Loading branch information
beckernick authored Sep 21, 2020
2 parents 255d60b + 1d70baa commit bb38ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tpcx_bb/queries/q02/tpcx_bb_query_02_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def main(data_dir, client, bc, config):

query_1 = """
SELECT
CAST( wcs_user_sk AS INTEGER) AS wcs_user_sk,
CAST( wcs_item_sk AS INTEGER) AS wcs_item_sk,
CAST(wcs_user_sk AS INTEGER) AS wcs_user_sk,
CAST(wcs_item_sk AS INTEGER) AS wcs_item_sk,
(wcs_click_date_sk * 86400 + wcs_click_time_sk) AS tstamp_inSec
FROM web_clickstreams
WHERE wcs_item_sk IS NOT NULL
AND wcs_user_sk IS NOT NULL
ORDER BY wcs_user_sk, tstamp_inSec
ORDER BY wcs_user_sk
"""
wcs_result = bc.sql(query_1)

Expand Down

0 comments on commit bb38ddf

Please sign in to comment.