Skip to content

Commit

Permalink
Unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ritvikjaiswal committed Aug 7, 2018
1 parent 7c425dd commit f932272
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
val expected =
s"""
|SELECT *
|FROM (SELECT to_char(ffst0.stats_date, 'YYYYMMdd') "Day", to_char(ffst0.id) "Keyword ID", coalesce(ffst0."impresssions", 1) "Impressions", ao1."Advertiser Status" "Advertiser Status"
|FROM (SELECT to_char(ffst0.stats_date, 'YYYYMMdd') "Day", ffst0.id "Keyword ID", coalesce(ffst0."impresssions", 1) "Impressions", ao1."Advertiser Status" "Advertiser Status"
| FROM (SELECT
| advertiser_id, id, stats_date, SUM(impresssions) AS "impresssions"
| FROM fd_fact_s_term FactAlias
Expand Down Expand Up @@ -1630,7 +1630,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
val expected =
"""
| (SELECT * FROM (SELECT D.*, ROWNUM AS ROW_NUMBER FROM (SELECT *
| FROM (SELECT to_char(t0.id) "Keyword ID", t0.value "Keyword Value"
| FROM (SELECT t0.id "Keyword ID", t0.value "Keyword Value"
| FROM
| (SELECT value, id, advertiser_id
| FROM targetingattribute
Expand All @@ -1640,7 +1640,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
|
| )
| ) D )) UNION ALL (SELECT * FROM (SELECT D.*, ROWNUM AS ROW_NUMBER FROM (SELECT * FROM (SELECT *
| FROM (SELECT to_char(t0.id) "Keyword ID", t0.value "Keyword Value"
| FROM (SELECT t0.id "Keyword ID", t0.value "Keyword Value"
| FROM
| (SELECT value, id, advertiser_id
| FROM targetingattribute
Expand Down Expand Up @@ -1713,7 +1713,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA

val expected = s"""
| (SELECT * FROM (SELECT D.*, ROWNUM AS ROW_NUMBER FROM (SELECT *
| FROM (SELECT to_char(t0.id) "Keyword ID", t0.value "Keyword Value"
| FROM (SELECT t0.id "Keyword ID", t0.value "Keyword Value"
| FROM
| (SELECT id, value, advertiser_id
| FROM targetingattribute
Expand All @@ -1723,7 +1723,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
|
| )
| ) D )) UNION ALL (SELECT * FROM (SELECT D.*, ROWNUM AS ROW_NUMBER FROM (SELECT * FROM (SELECT *
| FROM (SELECT to_char(t0.id) "Keyword ID", t0.value "Keyword Value"
| FROM (SELECT t0.id "Keyword ID", t0.value "Keyword Value"
| FROM
| (SELECT id, value, advertiser_id
| FROM targetingattribute
Expand Down Expand Up @@ -2192,7 +2192,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
val expected =
s"""
|SELECT *
|FROM (SELECT to_char(ffst0.stats_date, 'YYYYMMdd') "Day", to_char(ffst0.id) "Keyword ID", coalesce(ffst0."impresssions", 1) "Impressions", ao1."Advertiser Status" "Advertiser Status"
|FROM (SELECT to_char(ffst0.stats_date, 'YYYYMMdd') "Day", ffst0.id "Keyword ID", coalesce(ffst0."impresssions", 1) "Impressions", ao1."Advertiser Status" "Advertiser Status"
| FROM (SELECT
| advertiser_id, id, stats_date, SUM(impresssions) AS "impresssions"
| FROM fd_fact_s_term FactAlias
Expand Down Expand Up @@ -2306,7 +2306,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
"""
|
| (SELECT * FROM (SELECT D.*, ROWNUM AS ROW_NUMBER FROM (SELECT *
| FROM (SELECT to_char(ago1.id) "Ad Group ID", to_char(co0.id) "Campaign ID", co0.campaign_name "Campaign Name"
| FROM (SELECT ago1.id "Ad Group ID", co0.id "Campaign ID", co0.campaign_name "Campaign Name"
| FROM
| ( (SELECT campaign_id, id, advertiser_id
| FROM ad_group_oracle
Expand All @@ -2322,7 +2322,7 @@ class DruidQueryExecutorTest extends FunSuite with Matchers with BeforeAndAfterA
|
| )
| ) D )) UNION ALL (SELECT * FROM (SELECT D.*, ROWNUM AS ROW_NUMBER FROM (SELECT * FROM (SELECT *
| FROM (SELECT to_char(ago1.id) "Ad Group ID", to_char(co0.id) "Campaign ID", co0.campaign_name "Campaign Name"
| FROM (SELECT ago1.id "Ad Group ID", co0.id "Campaign ID", co0.campaign_name "Campaign Name"
| FROM
| ( (SELECT campaign_id, id, advertiser_id
| FROM ad_group_oracle
Expand Down

0 comments on commit f932272

Please sign in to comment.