@devrev/meerkat-node 0.0.115 → 0.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__fixtures__/test-data-with-safe-alias.js +152 -15
- package/__fixtures__/test-data-with-safe-alias.js.map +1 -1
- package/__fixtures__/test-data.js +2 -1
- package/__fixtures__/test-data.js.map +1 -1
- package/__fixtures__/with-dot-alias.js +152 -15
- package/__fixtures__/with-dot-alias.js.map +1 -1
- package/package.json +1 -1
- package/src/__fixtures__/test-data-with-safe-alias.d.ts +102 -2
- package/src/__fixtures__/test-data.d.ts +205 -5
- package/src/__fixtures__/with-dot-alias.d.ts +102 -2
|
@@ -50,6 +50,10 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
50
50
|
'orders.customer_id': '6aa6',
|
|
51
51
|
'orders.total_order_amount': 0
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
'orders.customer_id': '8',
|
|
55
|
+
'orders.total_order_amount': 50
|
|
56
|
+
},
|
|
53
57
|
{
|
|
54
58
|
'orders.customer_id': '2',
|
|
55
59
|
'orders.total_order_amount': 100
|
|
@@ -281,6 +285,15 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
281
285
|
vendors: [
|
|
282
286
|
"swiggy's"
|
|
283
287
|
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
order_id: 14,
|
|
291
|
+
customer_id: '8',
|
|
292
|
+
'orders.customer_id': '8',
|
|
293
|
+
product_id: '1',
|
|
294
|
+
order_date: '2024-09-01',
|
|
295
|
+
order_amount: 50.0,
|
|
296
|
+
vendors: null
|
|
284
297
|
}
|
|
285
298
|
]
|
|
286
299
|
}
|
|
@@ -401,6 +414,16 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
401
414
|
vendors: [
|
|
402
415
|
"swiggy's"
|
|
403
416
|
]
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
customer_id: '8',
|
|
420
|
+
order_amount: 50,
|
|
421
|
+
order_date: '2024-09-01T00:00:00.000Z',
|
|
422
|
+
order_id: 14,
|
|
423
|
+
'orders.customer_id': '8',
|
|
424
|
+
'orders.order_date': undefined,
|
|
425
|
+
product_id: '1',
|
|
426
|
+
vendors: null
|
|
404
427
|
}
|
|
405
428
|
]
|
|
406
429
|
}
|
|
@@ -772,6 +795,15 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
772
795
|
vendors: [
|
|
773
796
|
"swiggy's"
|
|
774
797
|
]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
customer_id: '8',
|
|
801
|
+
order_amount: 50,
|
|
802
|
+
order_date: '2024-09-01T00:00:00.000Z',
|
|
803
|
+
order_id: 14,
|
|
804
|
+
'orders.order_date': '2024-09-01T00:00:00.000Z',
|
|
805
|
+
product_id: '1',
|
|
806
|
+
vendors: null
|
|
775
807
|
}
|
|
776
808
|
]
|
|
777
809
|
}
|
|
@@ -1138,7 +1170,7 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
1138
1170
|
[
|
|
1139
1171
|
{
|
|
1140
1172
|
testName: 'Not In',
|
|
1141
|
-
expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS "orders.customer_id",
|
|
1173
|
+
expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS "orders.customer_id", product_id AS "orders.product_id", * FROM (select * from orders) AS orders) AS orders WHERE ((("orders.customer_id" NOT IN ('1', '2')) OR ("orders.customer_id" IS NULL)) AND ("orders.product_id" = '3'))`,
|
|
1142
1174
|
cubeInput: {
|
|
1143
1175
|
measures: [
|
|
1144
1176
|
'*'
|
|
@@ -1155,11 +1187,10 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
1155
1187
|
]
|
|
1156
1188
|
},
|
|
1157
1189
|
{
|
|
1158
|
-
member: 'orders.
|
|
1159
|
-
operator: '
|
|
1190
|
+
member: 'orders.product_id',
|
|
1191
|
+
operator: 'equals',
|
|
1160
1192
|
values: [
|
|
1161
|
-
'
|
|
1162
|
-
'flipkart'
|
|
1193
|
+
'3'
|
|
1163
1194
|
]
|
|
1164
1195
|
}
|
|
1165
1196
|
]
|
|
@@ -1168,12 +1199,111 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
1168
1199
|
dimensions: []
|
|
1169
1200
|
},
|
|
1170
1201
|
expectedOutput: [
|
|
1202
|
+
{
|
|
1203
|
+
customer_id: '4',
|
|
1204
|
+
order_amount: 90,
|
|
1205
|
+
order_date: '2022-05-01T00:00:00.000Z',
|
|
1206
|
+
order_id: 7,
|
|
1207
|
+
'orders.customer_id': '4',
|
|
1208
|
+
'orders.order_date': undefined,
|
|
1209
|
+
'orders.product_id': '3',
|
|
1210
|
+
product_id: '3',
|
|
1211
|
+
vendors: [
|
|
1212
|
+
'myntra',
|
|
1213
|
+
'flipkart'
|
|
1214
|
+
]
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
customer_id: '6',
|
|
1218
|
+
order_amount: 120,
|
|
1219
|
+
order_date: '2022-06-01T00:00:00.000Z',
|
|
1220
|
+
order_id: 10,
|
|
1221
|
+
'orders.customer_id': '6',
|
|
1222
|
+
'orders.order_date': undefined,
|
|
1223
|
+
'orders.product_id': '3',
|
|
1224
|
+
product_id: '3',
|
|
1225
|
+
vendors: [
|
|
1226
|
+
'myntra',
|
|
1227
|
+
'amazon'
|
|
1228
|
+
]
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
customer_id: '6aa6',
|
|
1232
|
+
order_amount: 0,
|
|
1233
|
+
order_date: '2024-06-01T00:00:00.000Z',
|
|
1234
|
+
order_id: 11,
|
|
1235
|
+
'orders.customer_id': '6aa6',
|
|
1236
|
+
'orders.order_date': undefined,
|
|
1237
|
+
'orders.product_id': '3',
|
|
1238
|
+
product_id: '3',
|
|
1239
|
+
vendors: [
|
|
1240
|
+
'amazon'
|
|
1241
|
+
]
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
customer_id: null,
|
|
1245
|
+
order_amount: 100,
|
|
1246
|
+
order_date: '2024-07-01T00:00:00.000Z',
|
|
1247
|
+
order_id: 12,
|
|
1248
|
+
'orders.customer_id': null,
|
|
1249
|
+
'orders.order_date': undefined,
|
|
1250
|
+
'orders.product_id': '3',
|
|
1251
|
+
product_id: '3',
|
|
1252
|
+
vendors: [
|
|
1253
|
+
'flipkart'
|
|
1254
|
+
]
|
|
1255
|
+
}
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
testName: 'Not In for array type',
|
|
1260
|
+
expectedSQL: `SELECT orders.* FROM (SELECT vendors AS "orders.vendors", * FROM (select * from orders) AS orders) AS orders WHERE ((NOT ("orders.vendors" && (ARRAY['myntra', 'amazon']))) OR ("orders.vendors" IS NULL))`,
|
|
1261
|
+
cubeInput: {
|
|
1262
|
+
measures: [
|
|
1263
|
+
'*'
|
|
1264
|
+
],
|
|
1265
|
+
filters: [
|
|
1266
|
+
{
|
|
1267
|
+
member: 'orders.vendors',
|
|
1268
|
+
operator: 'notIn',
|
|
1269
|
+
values: [
|
|
1270
|
+
'myntra',
|
|
1271
|
+
'amazon'
|
|
1272
|
+
]
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
dimensions: []
|
|
1276
|
+
},
|
|
1277
|
+
expectedOutput: [
|
|
1278
|
+
{
|
|
1279
|
+
customer_id: '2',
|
|
1280
|
+
order_amount: 25,
|
|
1281
|
+
order_date: '2022-02-01T00:00:00.000Z',
|
|
1282
|
+
order_id: 3,
|
|
1283
|
+
'orders.order_date': undefined,
|
|
1284
|
+
'orders.vendors': [],
|
|
1285
|
+
product_id: '3',
|
|
1286
|
+
vendors: []
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
customer_id: '2',
|
|
1290
|
+
order_amount: 75,
|
|
1291
|
+
order_date: '2022-03-01T00:00:00.000Z',
|
|
1292
|
+
order_id: 4,
|
|
1293
|
+
'orders.order_date': undefined,
|
|
1294
|
+
'orders.vendors': [
|
|
1295
|
+
'flipkart'
|
|
1296
|
+
],
|
|
1297
|
+
product_id: '1',
|
|
1298
|
+
vendors: [
|
|
1299
|
+
'flipkart'
|
|
1300
|
+
]
|
|
1301
|
+
},
|
|
1171
1302
|
{
|
|
1172
1303
|
customer_id: '4',
|
|
1173
1304
|
order_amount: 45,
|
|
1174
1305
|
order_date: '2022-04-01T00:00:00.000Z',
|
|
1175
1306
|
order_id: 6,
|
|
1176
|
-
'orders.customer_id': '4',
|
|
1177
1307
|
'orders.order_date': undefined,
|
|
1178
1308
|
'orders.vendors': [],
|
|
1179
1309
|
product_id: '2',
|
|
@@ -1184,25 +1314,23 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
1184
1314
|
order_amount: 85,
|
|
1185
1315
|
order_date: '2022-05-05T00:00:00.000Z',
|
|
1186
1316
|
order_id: 9,
|
|
1187
|
-
'orders.customer_id': '5',
|
|
1188
1317
|
'orders.order_date': undefined,
|
|
1189
1318
|
'orders.vendors': [],
|
|
1190
1319
|
product_id: '2',
|
|
1191
1320
|
vendors: []
|
|
1192
1321
|
},
|
|
1193
1322
|
{
|
|
1194
|
-
customer_id:
|
|
1195
|
-
order_amount:
|
|
1196
|
-
order_date: '2024-
|
|
1197
|
-
order_id:
|
|
1198
|
-
'orders.customer_id': '6aa6',
|
|
1323
|
+
customer_id: null,
|
|
1324
|
+
order_amount: 100,
|
|
1325
|
+
order_date: '2024-07-01T00:00:00.000Z',
|
|
1326
|
+
order_id: 12,
|
|
1199
1327
|
'orders.order_date': undefined,
|
|
1200
1328
|
'orders.vendors': [
|
|
1201
|
-
'
|
|
1329
|
+
'flipkart'
|
|
1202
1330
|
],
|
|
1203
1331
|
product_id: '3',
|
|
1204
1332
|
vendors: [
|
|
1205
|
-
'
|
|
1333
|
+
'flipkart'
|
|
1206
1334
|
]
|
|
1207
1335
|
},
|
|
1208
1336
|
{
|
|
@@ -1210,7 +1338,6 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
1210
1338
|
order_amount: 100,
|
|
1211
1339
|
order_date: '2024-08-01T00:00:00.000Z',
|
|
1212
1340
|
order_id: 13,
|
|
1213
|
-
'orders.customer_id': '7',
|
|
1214
1341
|
'orders.order_date': undefined,
|
|
1215
1342
|
'orders.vendors': [
|
|
1216
1343
|
"swiggy's"
|
|
@@ -1219,6 +1346,16 @@ const WITH_DOT_ALIAS_TEST_DATA = [
|
|
|
1219
1346
|
vendors: [
|
|
1220
1347
|
"swiggy's"
|
|
1221
1348
|
]
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
customer_id: '8',
|
|
1352
|
+
order_amount: 50,
|
|
1353
|
+
order_date: '2024-09-01T00:00:00.000Z',
|
|
1354
|
+
order_id: 14,
|
|
1355
|
+
'orders.order_date': undefined,
|
|
1356
|
+
'orders.vendors': null,
|
|
1357
|
+
product_id: '1',
|
|
1358
|
+
vendors: null
|
|
1222
1359
|
}
|
|
1223
1360
|
]
|
|
1224
1361
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../meerkat-node/src/__fixtures__/with-dot-alias.ts"],"sourcesContent":["export const WITH_DOT_ALIAS_TEST_DATA = [\n [\n {\n testName: 'GroupBySQLInnerQuery',\n expectedSQL: `SELECT SUM(order_amount) AS \"orders.total_order_amount\" , \"orders.order_month\" FROM (SELECT DATE_TRUNC('month', order_date) AS \"orders.order_month\", * FROM (select * from orders) AS orders) AS orders GROUP BY \"orders.order_month\" LIMIT 1`,\n cubeInput: {\n measures: ['orders.total_order_amount'],\n filters: [],\n dimensions: ['orders.order_month'],\n limit: 1,\n },\n expectedOutput: [\n {\n 'orders.order_month': '2022-01-01T00:00:00.000Z',\n 'orders.total_order_amount': 130,\n },\n ],\n },\n ],\n [\n {\n testName: 'GroupBy',\n expectedSQL: `SELECT SUM(order_amount) AS \"orders.total_order_amount\" , \"orders.customer_id\" FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders GROUP BY \"orders.customer_id\" ORDER BY \"orders.total_order_amount\" ASC, \"orders.customer_id\" ASC`,\n cubeInput: {\n measures: ['orders.total_order_amount'],\n filters: [],\n dimensions: ['orders.customer_id'],\n order: {\n 'orders.total_order_amount': 'asc',\n 'orders.customer_id': 'asc',\n },\n },\n expectedOutput: [\n {\n 'orders.customer_id': '6aa6',\n 'orders.total_order_amount': 0,\n },\n {\n 'orders.customer_id': '2',\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': '3',\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': '7',\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': null,\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': '6',\n 'orders.total_order_amount': 120,\n },\n {\n 'orders.customer_id': '1',\n 'orders.total_order_amount': 130,\n },\n {\n 'orders.customer_id': '4',\n 'orders.total_order_amount': 135,\n },\n {\n 'orders.customer_id': '5',\n 'orders.total_order_amount': 150,\n },\n ],\n },\n ],\n [\n {\n testName: 'Equals',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.customer_id\" = '1')`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'equals',\n values: ['1'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 1,\n customer_id: '1',\n 'orders.customer_id': '1',\n product_id: '1',\n order_date: '2022-01-01',\n order_amount: 50.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 2,\n customer_id: '1',\n 'orders.customer_id': '1',\n product_id: '2',\n order_date: '2022-01-02',\n order_amount: 80.0,\n vendors: ['myntra'],\n },\n ],\n },\n {\n testName: 'Equals for multiple values',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" = '1') AND (\"orders.customer_id\" = '2'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'equals',\n values: ['1', '2'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [],\n },\n ],\n [\n {\n testName: 'NotEquals',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.customer_id\" != '1')`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'notEquals',\n values: ['1'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 3,\n customer_id: '2',\n 'orders.customer_id': '2',\n product_id: '3',\n order_date: '2022-02-01',\n order_amount: 25.0,\n vendors: [],\n },\n {\n order_id: 4,\n customer_id: '2',\n 'orders.customer_id': '2',\n product_id: '1',\n order_date: '2022-03-01',\n order_amount: 75.0,\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n 'orders.customer_id': '3',\n product_id: '1',\n order_date: '2022-03-02',\n order_amount: 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 6,\n customer_id: '4',\n 'orders.customer_id': '4',\n product_id: '2',\n order_date: '2022-04-01',\n order_amount: 45.0,\n vendors: [],\n },\n {\n order_id: 7,\n customer_id: '4',\n 'orders.customer_id': '4',\n product_id: '3',\n order_date: '2022-05-01',\n order_amount: 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n 'orders.customer_id': '5',\n product_id: '1',\n order_date: '2022-05-02',\n order_amount: 65.0,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n 'orders.customer_id': '5',\n product_id: '2',\n order_date: '2022-05-05',\n order_amount: 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n 'orders.customer_id': '6',\n product_id: '3',\n order_date: '2022-06-01',\n order_amount: 120.0,\n vendors: ['myntra', 'amazon'],\n },\n {\n order_id: 11,\n customer_id: '6aa6',\n 'orders.customer_id': '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n order_amount: 0.0,\n vendors: ['amazon'],\n },\n {\n order_id: 13,\n customer_id: '7',\n 'orders.customer_id': '7',\n product_id: '6',\n order_date: '2024-08-01',\n order_amount: 100.0,\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'Contains',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.customer_id\" ~~* '%aa%')`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'contains',\n values: ['aa'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 11,\n customer_id: '6aa6',\n 'orders.customer_id': '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n order_amount: 0.0,\n vendors: ['amazon'],\n },\n ],\n },\n ],\n [\n {\n testName: 'NotContains',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" !~~ '%1%') AND (\"orders.customer_id\" !~~ '%2%') AND (\"orders.customer_id\" !~~ '%3%') AND (\"orders.customer_id\" !~~ '%4%') AND (\"orders.customer_id\" !~~ '%5%') AND (\"orders.customer_id\" !~~ '%aa%'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['1'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['2'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['3'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['4'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['5'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['aa'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 10,\n customer_id: '6',\n 'orders.customer_id': '6',\n product_id: '3',\n order_date: '2022-06-01',\n order_amount: 120,\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.customer_id': '7',\n 'orders.order_date': undefined,\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'GreaterThan',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.order_amount\" > 50)`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_amount',\n operator: 'gt',\n values: ['50'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 2,\n customer_id: '1',\n product_id: '2',\n order_date: '2022-01-02',\n order_amount: 80.0,\n 'orders.order_amount': 80.0,\n vendors: ['myntra'],\n },\n {\n order_id: 4,\n customer_id: '2',\n product_id: '1',\n order_date: '2022-03-01',\n order_amount: 75.0,\n 'orders.order_amount': 75.0,\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n product_id: '1',\n order_date: '2022-03-02',\n order_amount: 100.0,\n 'orders.order_amount': 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 7,\n customer_id: '4',\n product_id: '3',\n order_date: '2022-05-01',\n order_amount: 90.0,\n 'orders.order_amount': 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n product_id: '1',\n order_date: '2022-05-02',\n order_amount: 65.0,\n 'orders.order_amount': 65.0,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n product_id: '2',\n order_date: '2022-05-05',\n order_amount: 85.0,\n 'orders.order_amount': 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n product_id: '3',\n order_date: '2022-06-01',\n order_amount: 120.0,\n 'orders.order_amount': 120.0,\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_amount': 100,\n 'orders.order_date': undefined,\n product_id: '3',\n vendors: ['flipkart'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_amount': 100,\n 'orders.order_date': undefined,\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'LessThan',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.order_amount\" < 50)`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_amount',\n operator: 'lt',\n values: ['50'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 3,\n customer_id: '2',\n product_id: '3',\n order_date: '2022-02-01',\n order_amount: 25.0,\n 'orders.order_amount': 25.0,\n vendors: [],\n },\n {\n order_id: 6,\n customer_id: '4',\n product_id: '2',\n order_date: '2022-04-01',\n order_amount: 45.0,\n 'orders.order_amount': 45.0,\n vendors: [],\n },\n {\n order_id: 11,\n customer_id: '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n order_amount: 0.0,\n 'orders.order_amount': 0.0,\n vendors: ['amazon'],\n },\n ],\n },\n ],\n [\n {\n testName: 'InDateRange',\n expectedSQL: `SELECT orders.* FROM (SELECT order_date AS \"orders.order_date\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_date\" >= '2022-02-01') AND (\"orders.order_date\" <= '2022-03-31'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_date',\n operator: 'inDateRange',\n values: ['2022-02-01', '2022-03-31'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 3,\n customer_id: '2',\n product_id: '3',\n order_date: '2022-02-01',\n 'orders.order_date': '2022-02-01',\n order_amount: 25.0,\n vendors: [],\n },\n {\n order_id: 4,\n customer_id: '2',\n product_id: '1',\n order_date: '2022-03-01',\n 'orders.order_date': '2022-03-01',\n order_amount: 75.0,\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n product_id: '1',\n order_date: '2022-03-02',\n 'orders.order_date': '2022-03-02',\n order_amount: 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n ],\n },\n ],\n [\n {\n testName: 'NotInDateRange',\n expectedSQL: `SELECT orders.* FROM (SELECT order_date AS \"orders.order_date\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_date\" < '2022-02-01') OR (\"orders.order_date\" > '2022-03-31'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_date',\n operator: 'notInDateRange',\n values: ['2022-02-01', '2022-03-31'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 1,\n customer_id: '1',\n product_id: '1',\n order_date: '2022-01-01',\n order_amount: 50.0,\n 'orders.order_date': '2022-01-01',\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 2,\n customer_id: '1',\n product_id: '2',\n order_date: '2022-01-02',\n order_amount: 80.0,\n 'orders.order_date': '2022-01-02',\n vendors: ['myntra'],\n },\n {\n order_id: 6,\n customer_id: '4',\n product_id: '2',\n order_date: '2022-04-01',\n 'orders.order_date': '2022-04-01',\n order_amount: 45.0,\n vendors: [],\n },\n {\n order_id: 7,\n customer_id: '4',\n product_id: '3',\n order_date: '2022-05-01',\n 'orders.order_date': '2022-05-01',\n order_amount: 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n product_id: '1',\n order_date: '2022-05-02',\n 'orders.order_date': '2022-05-02',\n order_amount: 65.0,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n product_id: '2',\n order_date: '2022-05-05',\n 'orders.order_date': '2022-05-05',\n order_amount: 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n product_id: '3',\n order_date: '2022-06-01',\n 'orders.order_date': '2022-06-01',\n order_amount: 120.0,\n vendors: ['myntra', 'amazon'],\n },\n {\n order_id: 11,\n customer_id: '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n 'orders.order_date': '2024-06-01',\n order_amount: 0.0,\n vendors: ['amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_date': '2024-07-01T00:00:00.000Z',\n product_id: '3',\n vendors: ['flipkart'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_date': '2024-08-01T00:00:00.000Z',\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'And',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", order_date AS \"orders.order_date\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_amount\" > 50) AND ((\"orders.order_date\" >= '2022-02-01') AND (\"orders.order_date\" <= '2022-06-01')))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.order_amount',\n operator: 'gt',\n values: ['50'],\n },\n {\n member: 'orders.order_date',\n operator: 'inDateRange',\n values: ['2022-02-01', '2022-06-01'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 4,\n customer_id: '2',\n product_id: '1',\n order_date: '2022-03-01',\n order_amount: 75.0,\n 'orders.order_amount': 75.0,\n 'orders.order_date': '2022-03-01',\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n product_id: '1',\n order_date: '2022-03-02',\n 'orders.order_date': '2022-03-02',\n order_amount: 100.0,\n 'orders.order_amount': 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 7,\n customer_id: '4',\n product_id: '3',\n order_date: '2022-05-01',\n 'orders.order_date': '2022-05-01',\n order_amount: 90.0,\n 'orders.order_amount': 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n product_id: '1',\n order_date: '2022-05-02',\n 'orders.order_date': '2022-05-02',\n order_amount: 65,\n 'orders.order_amount': 65,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n product_id: '2',\n order_date: '2022-05-05',\n 'orders.order_date': '2022-05-05',\n order_amount: 85.0,\n 'orders.order_amount': 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n product_id: '3',\n order_date: '2022-06-01',\n 'orders.order_date': '2022-06-01',\n order_amount: 120.0,\n 'orders.order_amount': 120.0,\n vendors: ['myntra', 'amazon'],\n },\n ],\n },\n ],\n [\n {\n testName: 'Set',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", product_id AS \"orders.product_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_amount\" IS NOT NULL) AND (\"orders.product_id\" = '3'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.order_amount',\n operator: 'set',\n },\n {\n member: 'orders.product_id',\n operator: 'equals',\n values: ['3'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '2',\n order_amount: 25,\n order_date: '2022-02-01T00:00:00.000Z',\n order_id: 3,\n 'orders.order_amount': 25,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: [],\n },\n {\n customer_id: '4',\n order_amount: 90,\n order_date: '2022-05-01T00:00:00.000Z',\n order_id: 7,\n 'orders.order_amount': 90,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['myntra', 'flipkart'],\n },\n {\n customer_id: '6',\n order_amount: 120,\n order_date: '2022-06-01T00:00:00.000Z',\n order_id: 10,\n 'orders.order_amount': 120,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: '6aa6',\n order_amount: 0,\n order_date: '2024-06-01T00:00:00.000Z',\n order_id: 11,\n 'orders.order_amount': 0,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_amount': 100,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['flipkart'],\n },\n ],\n },\n ],\n [\n {\n testName: 'Not Set',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", product_id AS \"orders.product_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" IS NULL) AND (\"orders.product_id\" = '3'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'notSet',\n },\n {\n member: 'orders.product_id',\n operator: 'equals',\n values: ['3'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n 'orders.customer_id': null,\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['flipkart'],\n },\n ],\n },\n ],\n [\n {\n testName: 'In',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", vendors AS \"orders.vendors\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" IN ('1', '2')) AND (\"orders.vendors\" && (ARRAY['myntra', 'amazon'])))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'in',\n values: ['1', '2'],\n },\n {\n member: 'orders.vendors',\n operator: 'in',\n values: ['myntra', 'amazon'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '1',\n order_amount: 50,\n order_date: '2022-01-01T00:00:00.000Z',\n order_id: 1,\n 'orders.customer_id': '1',\n 'orders.order_date': undefined,\n 'orders.vendors': ['myntra', 'amazon', 'flipkart'],\n product_id: '1',\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n customer_id: '1',\n order_amount: 80,\n order_date: '2022-01-02T00:00:00.000Z',\n order_id: 2,\n 'orders.customer_id': '1',\n 'orders.order_date': undefined,\n 'orders.vendors': ['myntra'],\n product_id: '2',\n vendors: ['myntra'],\n },\n ],\n },\n {\n testName: 'In with single quotes',\n expectedSQL: `SELECT orders.* FROM (SELECT vendors AS \"orders.vendors\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.vendors\" && (ARRAY['swiggy''s'])))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.vendors',\n operator: 'in',\n values: [\"swiggy's\"],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_date': undefined,\n 'orders.vendors': [\"swiggy's\"],\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'Not In',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", vendors AS \"orders.vendors\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" NOT IN ('1', '2')) AND (NOT (\"orders.vendors\" && (ARRAY['myntra', 'flipkart']))))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'notIn',\n values: ['1', '2'],\n },\n {\n member: 'orders.vendors',\n operator: 'notIn',\n values: ['myntra', 'flipkart'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '4',\n order_amount: 45,\n order_date: '2022-04-01T00:00:00.000Z',\n order_id: 6,\n 'orders.customer_id': '4',\n 'orders.order_date': undefined,\n 'orders.vendors': [],\n product_id: '2',\n vendors: [],\n },\n {\n customer_id: '5',\n order_amount: 85,\n order_date: '2022-05-05T00:00:00.000Z',\n order_id: 9,\n 'orders.customer_id': '5',\n 'orders.order_date': undefined,\n 'orders.vendors': [],\n product_id: '2',\n vendors: [],\n },\n {\n customer_id: '6aa6',\n order_amount: 0,\n order_date: '2024-06-01T00:00:00.000Z',\n order_id: 11,\n 'orders.customer_id': '6aa6',\n 'orders.order_date': undefined,\n 'orders.vendors': ['amazon'],\n product_id: '3',\n vendors: ['amazon'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.customer_id': '7',\n 'orders.order_date': undefined,\n 'orders.vendors': [\"swiggy's\"],\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n];\n"],"names":["WITH_DOT_ALIAS_TEST_DATA","testName","expectedSQL","cubeInput","measures","filters","dimensions","limit","expectedOutput","order","member","operator","values","order_id","customer_id","product_id","order_date","order_amount","vendors","and","undefined"],"mappings":";+BAAaA;;;eAAAA;;;AAAN,MAAMA,2BAA2B;IACtC;QACE;YACEC,UAAU;YACVC,aAAa,CAAC,+OAA+O,CAAC;YAC9PC,WAAW;gBACTC,UAAU;oBAAC;iBAA4B;gBACvCC,SAAS,EAAE;gBACXC,YAAY;oBAAC;iBAAqB;gBAClCC,OAAO;YACT;YACAC,gBAAgB;gBACd;oBACE,sBAAsB;oBACtB,6BAA6B;gBAC/B;aACD;QACH;KACD;IACD;QACE;YACEP,UAAU;YACVC,aAAa,CAAC,sRAAsR,CAAC;YACrSC,WAAW;gBACTC,UAAU;oBAAC;iBAA4B;gBACvCC,SAAS,EAAE;gBACXC,YAAY;oBAA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AE;YAChB;YACAE,gBAAgB;gBACd;oBACEM,aAAa;oBACbG,cAAc;oBACdD,YAAY;oBACZH,UAAU;oBACV,sBAAsB;oBACtB,qBAAqBO;oBACrB,kBAAkB,EAAE;oBACpBL,YAAY;oBACZG,SAAS,EAAE;gBACb;gBACA;oBACEJ,aAAa;oBACbG,cAAc;oBACdD,YAAY;oBACZH,UAAU;oBACV,sBAAsB;oBACtB,qBAAqBO;oBACrB,kBAAkB,EAAE;oBACpBL,YAAY;oBACZG,SAAS,EAAE;gBACb;gBACA;oBACEJ,aAAa;oBACbG,cAAc;oBACdD,YAAY;oBACZH,UAAU;oBACV,sBAAsB;oBACtB,qBAAqBO;oBACrB,kBAAkB;wBAAC;qBAAS;oBAC5BL,YAAY;oBACZG,SAAS;wBAAC;qBAAS;gBACrB;gBACA;oBACEJ,aAAa;oBACbG,cAAc;oBACdD,YAAY;oBACZH,UAAU;oBACV,sBAAsB;oBACtB,qBAAqBO;oBACrB,kBAAkB;wBAAC;qBAAW;oBAC9BL,YAAY;oBACZG,SAAS;wBAAC;qBAAW;gBACvB;aACD;QACH;KACD;CACF"}
|
|
1
|
+
{"version":3,"sources":["../../../meerkat-node/src/__fixtures__/with-dot-alias.ts"],"sourcesContent":["export const WITH_DOT_ALIAS_TEST_DATA = [\n [\n {\n testName: 'GroupBySQLInnerQuery',\n expectedSQL: `SELECT SUM(order_amount) AS \"orders.total_order_amount\" , \"orders.order_month\" FROM (SELECT DATE_TRUNC('month', order_date) AS \"orders.order_month\", * FROM (select * from orders) AS orders) AS orders GROUP BY \"orders.order_month\" LIMIT 1`,\n cubeInput: {\n measures: ['orders.total_order_amount'],\n filters: [],\n dimensions: ['orders.order_month'],\n limit: 1,\n },\n expectedOutput: [\n {\n 'orders.order_month': '2022-01-01T00:00:00.000Z',\n 'orders.total_order_amount': 130,\n },\n ],\n },\n ],\n [\n {\n testName: 'GroupBy',\n expectedSQL: `SELECT SUM(order_amount) AS \"orders.total_order_amount\" , \"orders.customer_id\" FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders GROUP BY \"orders.customer_id\" ORDER BY \"orders.total_order_amount\" ASC, \"orders.customer_id\" ASC`,\n cubeInput: {\n measures: ['orders.total_order_amount'],\n filters: [],\n dimensions: ['orders.customer_id'],\n order: {\n 'orders.total_order_amount': 'asc',\n 'orders.customer_id': 'asc',\n },\n },\n expectedOutput: [\n {\n 'orders.customer_id': '6aa6',\n 'orders.total_order_amount': 0,\n },\n {\n 'orders.customer_id': '8',\n 'orders.total_order_amount': 50,\n },\n {\n 'orders.customer_id': '2',\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': '3',\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': '7',\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': null,\n 'orders.total_order_amount': 100,\n },\n {\n 'orders.customer_id': '6',\n 'orders.total_order_amount': 120,\n },\n {\n 'orders.customer_id': '1',\n 'orders.total_order_amount': 130,\n },\n {\n 'orders.customer_id': '4',\n 'orders.total_order_amount': 135,\n },\n {\n 'orders.customer_id': '5',\n 'orders.total_order_amount': 150,\n },\n ],\n },\n ],\n [\n {\n testName: 'Equals',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.customer_id\" = '1')`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'equals',\n values: ['1'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 1,\n customer_id: '1',\n 'orders.customer_id': '1',\n product_id: '1',\n order_date: '2022-01-01',\n order_amount: 50.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 2,\n customer_id: '1',\n 'orders.customer_id': '1',\n product_id: '2',\n order_date: '2022-01-02',\n order_amount: 80.0,\n vendors: ['myntra'],\n },\n ],\n },\n {\n testName: 'Equals for multiple values',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" = '1') AND (\"orders.customer_id\" = '2'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'equals',\n values: ['1', '2'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [],\n },\n ],\n [\n {\n testName: 'NotEquals',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.customer_id\" != '1')`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'notEquals',\n values: ['1'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 3,\n customer_id: '2',\n 'orders.customer_id': '2',\n product_id: '3',\n order_date: '2022-02-01',\n order_amount: 25.0,\n vendors: [],\n },\n {\n order_id: 4,\n customer_id: '2',\n 'orders.customer_id': '2',\n product_id: '1',\n order_date: '2022-03-01',\n order_amount: 75.0,\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n 'orders.customer_id': '3',\n product_id: '1',\n order_date: '2022-03-02',\n order_amount: 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 6,\n customer_id: '4',\n 'orders.customer_id': '4',\n product_id: '2',\n order_date: '2022-04-01',\n order_amount: 45.0,\n vendors: [],\n },\n {\n order_id: 7,\n customer_id: '4',\n 'orders.customer_id': '4',\n product_id: '3',\n order_date: '2022-05-01',\n order_amount: 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n 'orders.customer_id': '5',\n product_id: '1',\n order_date: '2022-05-02',\n order_amount: 65.0,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n 'orders.customer_id': '5',\n product_id: '2',\n order_date: '2022-05-05',\n order_amount: 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n 'orders.customer_id': '6',\n product_id: '3',\n order_date: '2022-06-01',\n order_amount: 120.0,\n vendors: ['myntra', 'amazon'],\n },\n {\n order_id: 11,\n customer_id: '6aa6',\n 'orders.customer_id': '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n order_amount: 0.0,\n vendors: ['amazon'],\n },\n {\n order_id: 13,\n customer_id: '7',\n 'orders.customer_id': '7',\n product_id: '6',\n order_date: '2024-08-01',\n order_amount: 100.0,\n vendors: [\"swiggy's\"],\n },\n {\n order_id: 14,\n customer_id: '8',\n 'orders.customer_id': '8',\n product_id: '1',\n order_date: '2024-09-01',\n order_amount: 50.0,\n vendors: null,\n },\n ],\n },\n ],\n [\n {\n testName: 'Contains',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.customer_id\" ~~* '%aa%')`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.customer_id',\n operator: 'contains',\n values: ['aa'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 11,\n customer_id: '6aa6',\n 'orders.customer_id': '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n order_amount: 0.0,\n vendors: ['amazon'],\n },\n ],\n },\n ],\n [\n {\n testName: 'NotContains',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" !~~ '%1%') AND (\"orders.customer_id\" !~~ '%2%') AND (\"orders.customer_id\" !~~ '%3%') AND (\"orders.customer_id\" !~~ '%4%') AND (\"orders.customer_id\" !~~ '%5%') AND (\"orders.customer_id\" !~~ '%aa%'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['1'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['2'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['3'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['4'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['5'],\n },\n {\n member: 'orders.customer_id',\n operator: 'notContains',\n values: ['aa'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 10,\n customer_id: '6',\n 'orders.customer_id': '6',\n product_id: '3',\n order_date: '2022-06-01',\n order_amount: 120,\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.customer_id': '7',\n 'orders.order_date': undefined,\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n {\n customer_id: '8',\n order_amount: 50,\n order_date: '2024-09-01T00:00:00.000Z',\n order_id: 14,\n 'orders.customer_id': '8',\n 'orders.order_date': undefined,\n product_id: '1',\n vendors: null,\n },\n ],\n },\n ],\n [\n {\n testName: 'GreaterThan',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.order_amount\" > 50)`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_amount',\n operator: 'gt',\n values: ['50'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 2,\n customer_id: '1',\n product_id: '2',\n order_date: '2022-01-02',\n order_amount: 80.0,\n 'orders.order_amount': 80.0,\n vendors: ['myntra'],\n },\n {\n order_id: 4,\n customer_id: '2',\n product_id: '1',\n order_date: '2022-03-01',\n order_amount: 75.0,\n 'orders.order_amount': 75.0,\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n product_id: '1',\n order_date: '2022-03-02',\n order_amount: 100.0,\n 'orders.order_amount': 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 7,\n customer_id: '4',\n product_id: '3',\n order_date: '2022-05-01',\n order_amount: 90.0,\n 'orders.order_amount': 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n product_id: '1',\n order_date: '2022-05-02',\n order_amount: 65.0,\n 'orders.order_amount': 65.0,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n product_id: '2',\n order_date: '2022-05-05',\n order_amount: 85.0,\n 'orders.order_amount': 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n product_id: '3',\n order_date: '2022-06-01',\n order_amount: 120.0,\n 'orders.order_amount': 120.0,\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_amount': 100,\n 'orders.order_date': undefined,\n product_id: '3',\n vendors: ['flipkart'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_amount': 100,\n 'orders.order_date': undefined,\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'LessThan',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", * FROM (select * from orders) AS orders) AS orders WHERE (\"orders.order_amount\" < 50)`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_amount',\n operator: 'lt',\n values: ['50'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 3,\n customer_id: '2',\n product_id: '3',\n order_date: '2022-02-01',\n order_amount: 25.0,\n 'orders.order_amount': 25.0,\n vendors: [],\n },\n {\n order_id: 6,\n customer_id: '4',\n product_id: '2',\n order_date: '2022-04-01',\n order_amount: 45.0,\n 'orders.order_amount': 45.0,\n vendors: [],\n },\n {\n order_id: 11,\n customer_id: '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n order_amount: 0.0,\n 'orders.order_amount': 0.0,\n vendors: ['amazon'],\n },\n ],\n },\n ],\n [\n {\n testName: 'InDateRange',\n expectedSQL: `SELECT orders.* FROM (SELECT order_date AS \"orders.order_date\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_date\" >= '2022-02-01') AND (\"orders.order_date\" <= '2022-03-31'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_date',\n operator: 'inDateRange',\n values: ['2022-02-01', '2022-03-31'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 3,\n customer_id: '2',\n product_id: '3',\n order_date: '2022-02-01',\n 'orders.order_date': '2022-02-01',\n order_amount: 25.0,\n vendors: [],\n },\n {\n order_id: 4,\n customer_id: '2',\n product_id: '1',\n order_date: '2022-03-01',\n 'orders.order_date': '2022-03-01',\n order_amount: 75.0,\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n product_id: '1',\n order_date: '2022-03-02',\n 'orders.order_date': '2022-03-02',\n order_amount: 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n ],\n },\n ],\n [\n {\n testName: 'NotInDateRange',\n expectedSQL: `SELECT orders.* FROM (SELECT order_date AS \"orders.order_date\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_date\" < '2022-02-01') OR (\"orders.order_date\" > '2022-03-31'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.order_date',\n operator: 'notInDateRange',\n values: ['2022-02-01', '2022-03-31'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 1,\n customer_id: '1',\n product_id: '1',\n order_date: '2022-01-01',\n order_amount: 50.0,\n 'orders.order_date': '2022-01-01',\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 2,\n customer_id: '1',\n product_id: '2',\n order_date: '2022-01-02',\n order_amount: 80.0,\n 'orders.order_date': '2022-01-02',\n vendors: ['myntra'],\n },\n {\n order_id: 6,\n customer_id: '4',\n product_id: '2',\n order_date: '2022-04-01',\n 'orders.order_date': '2022-04-01',\n order_amount: 45.0,\n vendors: [],\n },\n {\n order_id: 7,\n customer_id: '4',\n product_id: '3',\n order_date: '2022-05-01',\n 'orders.order_date': '2022-05-01',\n order_amount: 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n product_id: '1',\n order_date: '2022-05-02',\n 'orders.order_date': '2022-05-02',\n order_amount: 65.0,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n product_id: '2',\n order_date: '2022-05-05',\n 'orders.order_date': '2022-05-05',\n order_amount: 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n product_id: '3',\n order_date: '2022-06-01',\n 'orders.order_date': '2022-06-01',\n order_amount: 120.0,\n vendors: ['myntra', 'amazon'],\n },\n {\n order_id: 11,\n customer_id: '6aa6',\n product_id: '3',\n order_date: '2024-06-01',\n 'orders.order_date': '2024-06-01',\n order_amount: 0.0,\n vendors: ['amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_date': '2024-07-01T00:00:00.000Z',\n product_id: '3',\n vendors: ['flipkart'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_date': '2024-08-01T00:00:00.000Z',\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n {\n customer_id: '8',\n order_amount: 50,\n order_date: '2024-09-01T00:00:00.000Z',\n order_id: 14,\n 'orders.order_date': '2024-09-01T00:00:00.000Z',\n product_id: '1',\n vendors: null,\n },\n ],\n },\n ],\n [\n {\n testName: 'And',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", order_date AS \"orders.order_date\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_amount\" > 50) AND ((\"orders.order_date\" >= '2022-02-01') AND (\"orders.order_date\" <= '2022-06-01')))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.order_amount',\n operator: 'gt',\n values: ['50'],\n },\n {\n member: 'orders.order_date',\n operator: 'inDateRange',\n values: ['2022-02-01', '2022-06-01'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n order_id: 4,\n customer_id: '2',\n product_id: '1',\n order_date: '2022-03-01',\n order_amount: 75.0,\n 'orders.order_amount': 75.0,\n 'orders.order_date': '2022-03-01',\n vendors: ['flipkart'],\n },\n {\n order_id: 5,\n customer_id: '3',\n product_id: '1',\n order_date: '2022-03-02',\n 'orders.order_date': '2022-03-02',\n order_amount: 100.0,\n 'orders.order_amount': 100.0,\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n order_id: 7,\n customer_id: '4',\n product_id: '3',\n order_date: '2022-05-01',\n 'orders.order_date': '2022-05-01',\n order_amount: 90.0,\n 'orders.order_amount': 90.0,\n vendors: ['myntra', 'flipkart'],\n },\n {\n order_id: 8,\n customer_id: '5',\n product_id: '1',\n order_date: '2022-05-02',\n 'orders.order_date': '2022-05-02',\n order_amount: 65,\n 'orders.order_amount': 65,\n vendors: ['amazon', 'flipkart'],\n },\n {\n order_id: 9,\n customer_id: '5',\n product_id: '2',\n order_date: '2022-05-05',\n 'orders.order_date': '2022-05-05',\n order_amount: 85.0,\n 'orders.order_amount': 85.0,\n vendors: [],\n },\n {\n order_id: 10,\n customer_id: '6',\n product_id: '3',\n order_date: '2022-06-01',\n 'orders.order_date': '2022-06-01',\n order_amount: 120.0,\n 'orders.order_amount': 120.0,\n vendors: ['myntra', 'amazon'],\n },\n ],\n },\n ],\n [\n {\n testName: 'Set',\n expectedSQL: `SELECT orders.* FROM (SELECT orders.order_amount AS \"orders.order_amount\", product_id AS \"orders.product_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.order_amount\" IS NOT NULL) AND (\"orders.product_id\" = '3'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.order_amount',\n operator: 'set',\n },\n {\n member: 'orders.product_id',\n operator: 'equals',\n values: ['3'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '2',\n order_amount: 25,\n order_date: '2022-02-01T00:00:00.000Z',\n order_id: 3,\n 'orders.order_amount': 25,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: [],\n },\n {\n customer_id: '4',\n order_amount: 90,\n order_date: '2022-05-01T00:00:00.000Z',\n order_id: 7,\n 'orders.order_amount': 90,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['myntra', 'flipkart'],\n },\n {\n customer_id: '6',\n order_amount: 120,\n order_date: '2022-06-01T00:00:00.000Z',\n order_id: 10,\n 'orders.order_amount': 120,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: '6aa6',\n order_amount: 0,\n order_date: '2024-06-01T00:00:00.000Z',\n order_id: 11,\n 'orders.order_amount': 0,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_amount': 100,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['flipkart'],\n },\n ],\n },\n ],\n [\n {\n testName: 'Not Set',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", product_id AS \"orders.product_id\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" IS NULL) AND (\"orders.product_id\" = '3'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'notSet',\n },\n {\n member: 'orders.product_id',\n operator: 'equals',\n values: ['3'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n 'orders.customer_id': null,\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['flipkart'],\n },\n ],\n },\n ],\n [\n {\n testName: 'In',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", vendors AS \"orders.vendors\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.customer_id\" IN ('1', '2')) AND (\"orders.vendors\" && (ARRAY['myntra', 'amazon'])))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'in',\n values: ['1', '2'],\n },\n {\n member: 'orders.vendors',\n operator: 'in',\n values: ['myntra', 'amazon'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '1',\n order_amount: 50,\n order_date: '2022-01-01T00:00:00.000Z',\n order_id: 1,\n 'orders.customer_id': '1',\n 'orders.order_date': undefined,\n 'orders.vendors': ['myntra', 'amazon', 'flipkart'],\n product_id: '1',\n vendors: ['myntra', 'amazon', 'flipkart'],\n },\n {\n customer_id: '1',\n order_amount: 80,\n order_date: '2022-01-02T00:00:00.000Z',\n order_id: 2,\n 'orders.customer_id': '1',\n 'orders.order_date': undefined,\n 'orders.vendors': ['myntra'],\n product_id: '2',\n vendors: ['myntra'],\n },\n ],\n },\n {\n testName: 'In with single quotes',\n expectedSQL: `SELECT orders.* FROM (SELECT vendors AS \"orders.vendors\", * FROM (select * from orders) AS orders) AS orders WHERE ((\"orders.vendors\" && (ARRAY['swiggy''s'])))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.vendors',\n operator: 'in',\n values: [\"swiggy's\"],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_date': undefined,\n 'orders.vendors': [\"swiggy's\"],\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n ],\n },\n ],\n [\n {\n testName: 'Not In',\n expectedSQL: `SELECT orders.* FROM (SELECT customer_id AS \"orders.customer_id\", product_id AS \"orders.product_id\", * FROM (select * from orders) AS orders) AS orders WHERE (((\"orders.customer_id\" NOT IN ('1', '2')) OR (\"orders.customer_id\" IS NULL)) AND (\"orders.product_id\" = '3'))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n and: [\n {\n member: 'orders.customer_id',\n operator: 'notIn',\n values: ['1', '2'],\n },\n {\n member: 'orders.product_id',\n operator: 'equals',\n values: ['3'],\n },\n ],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '4',\n order_amount: 90,\n order_date: '2022-05-01T00:00:00.000Z',\n order_id: 7,\n 'orders.customer_id': '4',\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['myntra', 'flipkart'],\n },\n {\n customer_id: '6',\n order_amount: 120,\n order_date: '2022-06-01T00:00:00.000Z',\n order_id: 10,\n 'orders.customer_id': '6',\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['myntra', 'amazon'],\n },\n {\n customer_id: '6aa6',\n order_amount: 0,\n order_date: '2024-06-01T00:00:00.000Z',\n order_id: 11,\n 'orders.customer_id': '6aa6',\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['amazon'],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.customer_id': null,\n 'orders.order_date': undefined,\n 'orders.product_id': '3',\n product_id: '3',\n vendors: ['flipkart'],\n },\n ],\n },\n {\n testName: 'Not In for array type',\n expectedSQL: `SELECT orders.* FROM (SELECT vendors AS \"orders.vendors\", * FROM (select * from orders) AS orders) AS orders WHERE ((NOT (\"orders.vendors\" && (ARRAY['myntra', 'amazon']))) OR (\"orders.vendors\" IS NULL))`,\n cubeInput: {\n measures: ['*'],\n filters: [\n {\n member: 'orders.vendors',\n operator: 'notIn',\n values: ['myntra', 'amazon'],\n },\n ],\n dimensions: [],\n },\n expectedOutput: [\n {\n customer_id: '2',\n order_amount: 25,\n order_date: '2022-02-01T00:00:00.000Z',\n order_id: 3,\n 'orders.order_date': undefined,\n 'orders.vendors': [],\n product_id: '3',\n vendors: [],\n },\n {\n customer_id: '2',\n order_amount: 75,\n order_date: '2022-03-01T00:00:00.000Z',\n order_id: 4,\n 'orders.order_date': undefined,\n 'orders.vendors': ['flipkart'],\n product_id: '1',\n vendors: ['flipkart'],\n },\n {\n customer_id: '4',\n order_amount: 45,\n order_date: '2022-04-01T00:00:00.000Z',\n order_id: 6,\n 'orders.order_date': undefined,\n 'orders.vendors': [],\n product_id: '2',\n vendors: [],\n },\n {\n customer_id: '5',\n order_amount: 85,\n order_date: '2022-05-05T00:00:00.000Z',\n order_id: 9,\n 'orders.order_date': undefined,\n 'orders.vendors': [],\n product_id: '2',\n vendors: [],\n },\n {\n customer_id: null,\n order_amount: 100,\n order_date: '2024-07-01T00:00:00.000Z',\n order_id: 12,\n 'orders.order_date': undefined,\n 'orders.vendors': ['flipkart'],\n product_id: '3',\n vendors: ['flipkart'],\n },\n {\n customer_id: '7',\n order_amount: 100,\n order_date: '2024-08-01T00:00:00.000Z',\n order_id: 13,\n 'orders.order_date': undefined,\n 'orders.vendors': [\"swiggy's\"],\n product_id: '6',\n vendors: [\"swiggy's\"],\n },\n {\n customer_id: '8',\n order_amount: 50,\n order_date: '2024-09-01T00:00:00.000Z',\n order_id: 14,\n 'orders.order_date': undefined,\n 'orders.vendors': null,\n product_id: '1',\n vendors: null,\n },\n ],\n },\n ],\n];\n"],"names":["WITH_DOT_ALIAS_TEST_DATA","testName","expectedSQL","cubeInput","measures","filters","dimensions","limit","expectedOutput","order","member","operator","values","order_id","customer_id","product_id","order_date","order_amount","vendors","and","undefined"],"mappings":";+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;oBACZH,UAAU;oBACV,qBAAqBO;oBACrB,kBAAkB;wBAAC;qBAAW;oBAC9BL,YAAY;oBACZG,SAAS;wBAAC;qBAAW;gBACvB;gBACA;oBACEJ,aAAa;oBACbG,cAAc;oBACdD,YAAY;oBACZH,UAAU;oBACV,qBAAqBO;oBACrB,kBAAkB;oBAClBL,YAAY;oBACZG,SAAS;gBACX;aACD;QACH;KACD;CACF"}
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export declare const TEST_DATA_WITH_SAFE_ALIAS: ({
|
|
|
42
42
|
}[];
|
|
43
43
|
dimensions: never[];
|
|
44
44
|
};
|
|
45
|
-
expectedOutput: {
|
|
45
|
+
expectedOutput: ({
|
|
46
46
|
order_id: number;
|
|
47
47
|
customer_id: string;
|
|
48
48
|
orders__customer_id: string;
|
|
@@ -50,7 +50,15 @@ export declare const TEST_DATA_WITH_SAFE_ALIAS: ({
|
|
|
50
50
|
order_date: string;
|
|
51
51
|
order_amount: number;
|
|
52
52
|
vendors: string[];
|
|
53
|
-
}
|
|
53
|
+
} | {
|
|
54
|
+
order_id: number;
|
|
55
|
+
customer_id: string;
|
|
56
|
+
orders__customer_id: string;
|
|
57
|
+
product_id: string;
|
|
58
|
+
order_date: string;
|
|
59
|
+
order_amount: number;
|
|
60
|
+
vendors: null;
|
|
61
|
+
})[];
|
|
54
62
|
}[] | {
|
|
55
63
|
testName: string;
|
|
56
64
|
expectedSQL: string;
|
|
@@ -83,6 +91,15 @@ export declare const TEST_DATA_WITH_SAFE_ALIAS: ({
|
|
|
83
91
|
orders__order_date: undefined;
|
|
84
92
|
product_id: string;
|
|
85
93
|
vendors: string[];
|
|
94
|
+
} | {
|
|
95
|
+
customer_id: string;
|
|
96
|
+
order_amount: number;
|
|
97
|
+
order_date: string;
|
|
98
|
+
order_id: number;
|
|
99
|
+
orders__customer_id: string;
|
|
100
|
+
orders__order_date: undefined;
|
|
101
|
+
product_id: string;
|
|
102
|
+
vendors: null;
|
|
86
103
|
})[];
|
|
87
104
|
}[] | {
|
|
88
105
|
testName: string;
|
|
@@ -152,6 +169,14 @@ export declare const TEST_DATA_WITH_SAFE_ALIAS: ({
|
|
|
152
169
|
orders__order_date: string;
|
|
153
170
|
product_id: string;
|
|
154
171
|
vendors: string[];
|
|
172
|
+
} | {
|
|
173
|
+
customer_id: string;
|
|
174
|
+
order_amount: number;
|
|
175
|
+
order_date: string;
|
|
176
|
+
order_id: number;
|
|
177
|
+
orders__order_date: string;
|
|
178
|
+
product_id: string;
|
|
179
|
+
vendors: null;
|
|
155
180
|
})[];
|
|
156
181
|
}[] | {
|
|
157
182
|
testName: string;
|
|
@@ -294,4 +319,79 @@ export declare const TEST_DATA_WITH_SAFE_ALIAS: ({
|
|
|
294
319
|
product_id: string;
|
|
295
320
|
vendors: string[];
|
|
296
321
|
}[];
|
|
322
|
+
})[] | ({
|
|
323
|
+
testName: string;
|
|
324
|
+
expectedSQL: string;
|
|
325
|
+
cubeInput: {
|
|
326
|
+
measures: string[];
|
|
327
|
+
filters: {
|
|
328
|
+
and: {
|
|
329
|
+
member: string;
|
|
330
|
+
operator: string;
|
|
331
|
+
values: string[];
|
|
332
|
+
}[];
|
|
333
|
+
}[];
|
|
334
|
+
dimensions: never[];
|
|
335
|
+
};
|
|
336
|
+
expectedOutput: ({
|
|
337
|
+
customer_id: string;
|
|
338
|
+
order_amount: number;
|
|
339
|
+
order_date: string;
|
|
340
|
+
order_id: number;
|
|
341
|
+
orders__customer_id: string;
|
|
342
|
+
orders__order_date: undefined;
|
|
343
|
+
orders__product_id: string;
|
|
344
|
+
product_id: string;
|
|
345
|
+
vendors: string[];
|
|
346
|
+
} | {
|
|
347
|
+
customer_id: null;
|
|
348
|
+
order_amount: number;
|
|
349
|
+
order_date: string;
|
|
350
|
+
order_id: number;
|
|
351
|
+
orders__customer_id: null;
|
|
352
|
+
orders__order_date: undefined;
|
|
353
|
+
orders__product_id: string;
|
|
354
|
+
product_id: string;
|
|
355
|
+
vendors: string[];
|
|
356
|
+
})[];
|
|
357
|
+
} | {
|
|
358
|
+
testName: string;
|
|
359
|
+
expectedSQL: string;
|
|
360
|
+
cubeInput: {
|
|
361
|
+
measures: string[];
|
|
362
|
+
filters: {
|
|
363
|
+
member: string;
|
|
364
|
+
operator: string;
|
|
365
|
+
values: string[];
|
|
366
|
+
}[];
|
|
367
|
+
dimensions: never[];
|
|
368
|
+
};
|
|
369
|
+
expectedOutput: ({
|
|
370
|
+
customer_id: string;
|
|
371
|
+
order_amount: number;
|
|
372
|
+
order_date: string;
|
|
373
|
+
order_id: number;
|
|
374
|
+
orders__order_date: undefined;
|
|
375
|
+
orders__vendors: string[];
|
|
376
|
+
product_id: string;
|
|
377
|
+
vendors: string[];
|
|
378
|
+
} | {
|
|
379
|
+
customer_id: null;
|
|
380
|
+
order_amount: number;
|
|
381
|
+
order_date: string;
|
|
382
|
+
order_id: number;
|
|
383
|
+
orders__order_date: undefined;
|
|
384
|
+
orders__vendors: string[];
|
|
385
|
+
product_id: string;
|
|
386
|
+
vendors: string[];
|
|
387
|
+
} | {
|
|
388
|
+
customer_id: string;
|
|
389
|
+
order_amount: number;
|
|
390
|
+
order_date: string;
|
|
391
|
+
order_id: number;
|
|
392
|
+
orders__order_date: undefined;
|
|
393
|
+
orders__vendors: null;
|
|
394
|
+
product_id: string;
|
|
395
|
+
vendors: null;
|
|
396
|
+
})[];
|
|
297
397
|
})[])[];
|