You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`SELECT (COUNT(*)) AS temp__measure1 , (SUM(total)) AS temp__measure2 , (dimension1) AS temp__dimension1, (DATE_TRUNC('month', order_date)) AS temp__dimension2 FROM (SELECT * FROM TABLE_1)`
88
+
`SELECT COUNT(*) AS temp__measure1 , SUM(total) AS temp__measure2 , dimension1 AS temp__dimension1, DATE_TRUNC('month', order_date) AS temp__dimension2 FROM (SELECT * FROM TABLE_1)`
Copy file name to clipboardExpand all lines: meerkat-node/src/__tests__/test-data.ts
+2-2
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ export const TABLE_SCHEMA = {
70
70
exportconstTEST_DATA=[
71
71
{
72
72
testName: 'GroupBySQLInnerQuery',
73
-
expectedSQL: `SELECT (SUM(order_amount)) AS orders__total_order_amount , (DATE_TRUNC('month', order_date)) AS orders__order_month FROM (select * from orders) AS orders GROUP BY orders__order_month LIMIT 1`,
73
+
expectedSQL: `SELECT SUM(order_amount) AS orders__total_order_amount , DATE_TRUNC('month', order_date) AS orders__order_month FROM (select * from orders) AS orders GROUP BY orders__order_month LIMIT 1`,
74
74
cubeInput: {
75
75
measures: ['orders.total_order_amount'],
76
76
filters: [],
@@ -86,7 +86,7 @@ export const TEST_DATA = [
86
86
},
87
87
{
88
88
testName: 'GroupBy',
89
-
expectedSQL: `SELECT (SUM(order_amount)) AS orders__total_order_amount , (customer_id) AS orders__customer_id FROM (select * from orders) AS orders GROUP BY orders__customer_id`,
89
+
expectedSQL: `SELECT SUM(order_amount) AS orders__total_order_amount , customer_id AS orders__customer_id FROM (select * from orders) AS orders GROUP BY orders__customer_id`,
0 commit comments