@arcticdata/dsh-datarc-skills 0.0.0-stage → 26.39.0

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.
Files changed (135) hide show
  1. package/README.md +20 -2
  2. package/cordis.patch.yml +4 -0
  3. package/icon.svg +4 -0
  4. package/index.js +35 -0
  5. package/locale/en.json +6 -0
  6. package/locale/zh.json +6 -0
  7. package/package.json +37 -4
  8. package/skills/datarc-access-permissions/SKILL.md +30 -0
  9. package/skills/datarc-access-permissions/references/api.md +31 -0
  10. package/skills/datarc-access-permissions/references/write-order.md +16 -0
  11. package/skills/datarc-analysis-report/SKILL.md +125 -0
  12. package/skills/datarc-analysis-report/agents/openai.yaml +6 -0
  13. package/skills/datarc-analysis-report/references/analyst-frameworks.md +215 -0
  14. package/skills/datarc-analysis-report/references/api-contracts.md +478 -0
  15. package/skills/datarc-analysis-report/references/direct-card-fallback-design.md +66 -0
  16. package/skills/datarc-analysis-report/references/human-in-the-loop.md +142 -0
  17. package/skills/datarc-analysis-report/references/loop-personalization-policy.md +138 -0
  18. package/skills/datarc-analysis-report/references/manifest-example.json +779 -0
  19. package/skills/datarc-analysis-report/references/narrative-schema.md +160 -0
  20. package/skills/datarc-analysis-report/references/question-syntax.md +151 -0
  21. package/skills/datarc-analysis-report/scripts/run_analysis_report.py +2225 -0
  22. package/skills/datarc-analysis-report/scripts/run_dataseek_cards.py +1914 -0
  23. package/skills/datarc-analysis-report/scripts/test_run_analysis_report.py +5295 -0
  24. package/skills/datarc-data-search/SKILL.md +243 -0
  25. package/skills/datarc-data-search/scripts/calculate.py +116 -0
  26. package/skills/datarc-data-search/scripts/data-search.mjs +628 -0
  27. package/skills/datarc-data-search/scripts/datarc-client.mjs +464 -0
  28. package/skills/datarc-data-search/scripts/search-result.mjs +211 -0
  29. package/skills/datarc-dataseek-batch-evaluation/SKILL.md +59 -0
  30. package/skills/datarc-dataseek-batch-evaluation/references/artifacts.md +36 -0
  31. package/skills/datarc-dataseek-batch-evaluation/references/equivalence.md +30 -0
  32. package/skills/datarc-dataseek-batch-evaluation/scripts/datarc-client.mjs +464 -0
  33. package/skills/datarc-dataseek-batch-evaluation/scripts/dataseek-batch-evaluation.mjs +1020 -0
  34. package/skills/datarc-dataseek-search/SKILL.md +96 -0
  35. package/skills/datarc-dataseek-search/scripts/datarc-client.mjs +464 -0
  36. package/skills/datarc-dataseek-search/scripts/dataseek-search.mjs +257 -0
  37. package/skills/datarc-dataseek-semantic-debugging/SKILL.md +44 -0
  38. package/skills/datarc-dataseek-semantic-debugging/agents/openai.yaml +4 -0
  39. package/skills/datarc-dataseek-semantic-debugging/evals/evals.json +165 -0
  40. package/skills/datarc-dataseek-semantic-debugging/references/dataset.md +77 -0
  41. package/skills/datarc-dataseek-semantic-debugging/references/input-and-resolution.md +93 -0
  42. package/skills/datarc-dataseek-semantic-debugging/references/interventions.md +64 -0
  43. package/skills/datarc-dataseek-semantic-debugging/references/knowledge-and-prompts.md +47 -0
  44. package/skills/datarc-dataseek-semantic-debugging/references/rollback.md +11 -0
  45. package/skills/datarc-dataseek-semantic-debugging/references/verification-and-rollback.md +95 -0
  46. package/skills/datarc-dataseek-semantic-debugging/scripts/semantic-debugging.mjs +29 -0
  47. package/skills/datarc-dataseek-testset-generation/SKILL.md +47 -0
  48. package/skills/datarc-dataseek-testset-generation/scripts/datarc-client.mjs +464 -0
  49. package/skills/datarc-dataseek-testset-generation/scripts/dataseek-testset-generation.mjs +526 -0
  50. package/skills/datarc-datasource/SKILL.md +97 -0
  51. package/skills/datarc-oauth/SKILL.md +47 -0
  52. package/skills/datarc-oauth/scripts/auth.mjs +130 -0
  53. package/skills/datarc-oauth/scripts/credentials.mjs +237 -0
  54. package/skills/datarc-report-add-card/SKILL.md +90 -0
  55. package/skills/datarc-report-add-card/agents/openai.yaml +4 -0
  56. package/skills/datarc-report-add-card/scripts/datarc-client.mjs +464 -0
  57. package/skills/datarc-report-add-card/scripts/report-card.mjs +439 -0
  58. package/skills/datarc-semantic-alias/SKILL.md +20 -0
  59. package/skills/datarc-semantic-alias/scripts/alias-plan.mjs +422 -0
  60. package/skills/datarc-semantic-alias/scripts/alias.mjs +11 -0
  61. package/skills/datarc-semantic-calibration/SKILL.md +20 -0
  62. package/skills/datarc-semantic-calibration/scripts/calibration-plan.mjs +683 -0
  63. package/skills/datarc-semantic-calibration/scripts/calibration.mjs +11 -0
  64. package/skills/datarc-semantic-core/SKILL.md +12 -0
  65. package/skills/datarc-semantic-core/scripts/artifact-journal.mjs +830 -0
  66. package/skills/datarc-semantic-core/scripts/canonical.mjs +48 -0
  67. package/skills/datarc-semantic-core/scripts/case-model.mjs +608 -0
  68. package/skills/datarc-semantic-core/scripts/cli.mjs +180 -0
  69. package/skills/datarc-semantic-core/scripts/datarc-client.mjs +180 -0
  70. package/skills/datarc-semantic-core/scripts/interpretation-pairs.mjs +57 -0
  71. package/skills/datarc-semantic-core/scripts/interventions.mjs +693 -0
  72. package/skills/datarc-semantic-core/scripts/live-resolution.mjs +305 -0
  73. package/skills/datarc-semantic-core/scripts/model-scope.mjs +49 -0
  74. package/skills/datarc-semantic-core/scripts/reproduction.mjs +330 -0
  75. package/skills/datarc-semantic-core/scripts/semantic-cli.mjs +740 -0
  76. package/skills/datarc-semantic-core/scripts/shared.mjs +312 -0
  77. package/skills/datarc-semantic-core/scripts/verification.mjs +1014 -0
  78. package/skills/datarc-semantic-dataset/SKILL.md +20 -0
  79. package/skills/datarc-semantic-dataset/scripts/dataset-plan.mjs +749 -0
  80. package/skills/datarc-semantic-dataset/scripts/dataset-preflight.mjs +813 -0
  81. package/skills/datarc-semantic-dataset/scripts/dataset.mjs +11 -0
  82. package/skills/datarc-semantic-knowledge/SKILL.md +38 -0
  83. package/skills/datarc-semantic-knowledge/references/knowledge-drafts.md +61 -0
  84. package/skills/datarc-semantic-knowledge/references/knowledge-generation.json +16 -0
  85. package/skills/datarc-semantic-knowledge/scripts/knowledge-draft.mjs +347 -0
  86. package/skills/datarc-semantic-knowledge/scripts/knowledge-plan.mjs +848 -0
  87. package/skills/datarc-semantic-knowledge/scripts/knowledge.mjs +31 -0
  88. package/skills/datarc-semantic-prompt/SKILL.md +20 -0
  89. package/skills/datarc-semantic-prompt/scripts/prompt-plan.mjs +447 -0
  90. package/skills/datarc-semantic-prompt/scripts/prompt.mjs +15 -0
  91. package/skills/datarc-semantic-synonym/SKILL.md +20 -0
  92. package/skills/datarc-semantic-synonym/scripts/synonym-plan.mjs +688 -0
  93. package/skills/datarc-semantic-synonym/scripts/synonym.mjs +11 -0
  94. package/skills/datarc-viz-analysis-report/SKILL.md +108 -0
  95. package/skills/datarc-viz-analysis-report/assets/LICENSE-echarts.md +8 -0
  96. package/skills/datarc-viz-analysis-report/assets/echarts.min.js +45 -0
  97. package/skills/datarc-viz-analysis-report/references/api-contracts.md +163 -0
  98. package/skills/datarc-viz-analysis-report/references/derivation-log.md +157 -0
  99. package/skills/datarc-viz-analysis-report/references/evidence-framework.md +76 -0
  100. package/skills/datarc-viz-analysis-report/references/html-template.md +92 -0
  101. package/skills/datarc-viz-analysis-report/references/provenance-format.md +56 -0
  102. package/skills/datarc-viz-analysis-report/references/question-syntax.md +151 -0
  103. package/skills/datarc-viz-analysis-report/scripts/render_viz_report.py +1708 -0
  104. package/skills/datarc-viz-analysis-report/scripts/test_render_viz_report.py +964 -0
  105. package/skills/datarc-workspace-configuration/SKILL.md +59 -0
  106. package/skills/datarc-workspace-configuration/references/artifacts.md +75 -0
  107. package/skills/datarc-workspace-configuration/references/verification.md +20 -0
  108. package/skills/datarc-workspace-configuration/scripts/configuration.mjs +662 -0
  109. package/skills/datarc-workspace-context/SKILL.md +43 -0
  110. package/skills/datarc-workspace-context/agents/openai.yaml +4 -0
  111. package/skills/datarc-workspace-context/scripts/datarc-client.mjs +31 -0
  112. package/skills/datarc-workspace-context/scripts/query-display.mjs +114 -0
  113. package/skills/datarc-workspace-context/scripts/workspace-context.mjs +58 -0
  114. package/skills/datarc-workspace-custom-tables/SKILL.md +89 -0
  115. package/skills/datarc-workspace-custom-tables/scripts/datarc-client.mjs +165 -0
  116. package/skills/datarc-workspace-custom-tables/scripts/workspace-custom-tables.mjs +601 -0
  117. package/skills/datarc-workspace-keywords/SKILL.md +197 -0
  118. package/skills/datarc-workspace-keywords/agents/openai.yaml +4 -0
  119. package/skills/datarc-workspace-keywords/references/api-fields.md +79 -0
  120. package/skills/datarc-workspace-keywords/references/derived-measures.md +177 -0
  121. package/skills/datarc-workspace-keywords/scripts/datarc-client.mjs +145 -0
  122. package/skills/datarc-workspace-keywords/scripts/workspace-keywords.mjs +2421 -0
  123. package/skills/datarc-workspace-membership/SKILL.md +29 -0
  124. package/skills/datarc-workspace-membership/references/api.md +19 -0
  125. package/skills/datarc-workspace-modeling/SKILL.md +209 -0
  126. package/skills/datarc-workspace-modeling/agents/openai.yaml +4 -0
  127. package/skills/datarc-workspace-modeling/references/join-preview.md +38 -0
  128. package/skills/datarc-workspace-modeling/references/model-plan.md +300 -0
  129. package/skills/datarc-workspace-modeling/references/model-tags.md +95 -0
  130. package/skills/datarc-workspace-modeling/references/modeling-contract.json +29 -0
  131. package/skills/datarc-workspace-modeling/references/modeling-fixtures.json +2423 -0
  132. package/skills/datarc-workspace-modeling/scripts/datarc-client.mjs +137 -0
  133. package/skills/datarc-workspace-modeling/scripts/workspace-model-tags.mjs +238 -0
  134. package/skills/datarc-workspace-modeling/scripts/workspace-modeling.mjs +1261 -0
  135. package/skills-index.json +194 -0
@@ -0,0 +1,2423 @@
1
+ {
2
+ "contractVersion": 1,
3
+ "cases": [
4
+ {
5
+ "name": "reuse-catalog",
6
+ "plan": {
7
+ "name": "销售模型",
8
+ "table": "public.sales",
9
+ "timeSeries": [
10
+ {
11
+ "id": 1,
12
+ "field": "biz_date"
13
+ }
14
+ ],
15
+ "measures": [
16
+ {
17
+ "id": 2,
18
+ "field": "amount",
19
+ "calcType": "sum",
20
+ "type": "float",
21
+ "format": "float"
22
+ }
23
+ ]
24
+ },
25
+ "catalog": {
26
+ "models": [],
27
+ "timeSeries": [
28
+ {
29
+ "id": 1,
30
+ "names": ["业务日期"],
31
+ "type": "date",
32
+ "format": "date",
33
+ "timeUnit": 3
34
+ }
35
+ ],
36
+ "measures": [
37
+ {
38
+ "id": 2,
39
+ "names": ["销售额"],
40
+ "cumulative": false
41
+ },
42
+ {
43
+ "id": 9,
44
+ "names": ["利润率"],
45
+ "formula": "[m2]/[m3]"
46
+ }
47
+ ],
48
+ "dimensions": [
49
+ {
50
+ "id": 3,
51
+ "names": ["品牌"],
52
+ "type": "str",
53
+ "format": "text",
54
+ "isKeyword": true
55
+ }
56
+ ],
57
+ "dimensionTables": [
58
+ {
59
+ "uid": "existing-dim",
60
+ "dimensions": [
61
+ {
62
+ "id": 3,
63
+ "field": "name"
64
+ }
65
+ ]
66
+ }
67
+ ]
68
+ },
69
+ "payload": {
70
+ "model": {
71
+ "name": "销售模型",
72
+ "table": "public.sales",
73
+ "timeSeries": [
74
+ {
75
+ "id": 1,
76
+ "field": "biz_date"
77
+ }
78
+ ],
79
+ "dimensions": [],
80
+ "measures": [
81
+ {
82
+ "id": 2,
83
+ "field": "amount",
84
+ "calcType": "sum",
85
+ "type": "float",
86
+ "format": "float"
87
+ }
88
+ ],
89
+ "dimensionTables": [],
90
+ "defaultTimeSeries": 1
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "name": "new-definitions-and-encoded-sql",
96
+ "plan": {
97
+ "name": "销售模型",
98
+ "timeSeries": [
99
+ {
100
+ "field": "date",
101
+ "definition": {
102
+ "names": ["新日期"],
103
+ "type": "date",
104
+ "format": "date",
105
+ "timeUnit": 3
106
+ }
107
+ }
108
+ ],
109
+ "measures": [
110
+ {
111
+ "sql": "sum(amount)",
112
+ "type": "float",
113
+ "format": "float",
114
+ "definition": {
115
+ "names": ["新销售额"],
116
+ "cumulative": true
117
+ }
118
+ }
119
+ ],
120
+ "sql": "select * from public.sales",
121
+ "where": "status = 1",
122
+ "dimensionTables": [
123
+ {
124
+ "joinFields": [
125
+ {
126
+ "src": "brand_id",
127
+ "dst": "id"
128
+ }
129
+ ],
130
+ "definition": {
131
+ "table": "public.brand",
132
+ "mark": "品牌维表",
133
+ "where": "active = 1",
134
+ "dimensions": [
135
+ {
136
+ "id": 3,
137
+ "field": "name"
138
+ }
139
+ ]
140
+ }
141
+ }
142
+ ]
143
+ },
144
+ "catalog": {
145
+ "models": [],
146
+ "timeSeries": [
147
+ {
148
+ "id": 1,
149
+ "names": ["业务日期"],
150
+ "type": "date",
151
+ "format": "date",
152
+ "timeUnit": 3
153
+ }
154
+ ],
155
+ "measures": [
156
+ {
157
+ "id": 2,
158
+ "names": ["销售额"],
159
+ "cumulative": false
160
+ },
161
+ {
162
+ "id": 9,
163
+ "names": ["利润率"],
164
+ "formula": "[m2]/[m3]"
165
+ }
166
+ ],
167
+ "dimensions": [
168
+ {
169
+ "id": 3,
170
+ "names": ["品牌"],
171
+ "type": "str",
172
+ "format": "text",
173
+ "isKeyword": true
174
+ }
175
+ ],
176
+ "dimensionTables": [
177
+ {
178
+ "uid": "existing-dim",
179
+ "dimensions": [
180
+ {
181
+ "id": 3,
182
+ "field": "name"
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ },
188
+ "payload": {
189
+ "model": {
190
+ "name": "销售模型",
191
+ "sql": "MmMWNnWX5EMJN0bnplbKZnYTJ0dkdlSzF2VNV3YyY0cahVT",
192
+ "where": "M2MShGZIZleJREMn1UU",
193
+ "timeSeries": [
194
+ {
195
+ "uid": "fixture-1",
196
+ "field": "date"
197
+ }
198
+ ],
199
+ "dimensions": [],
200
+ "measures": [
201
+ {
202
+ "uid": "fixture-2",
203
+ "sql": "jNjV0t0RGRnYzYVdkN0a",
204
+ "type": "float",
205
+ "format": "float"
206
+ }
207
+ ],
208
+ "dimensionTables": [
209
+ {
210
+ "uid": "fixture-3",
211
+ "joinType": "left",
212
+ "joinFields": [
213
+ {
214
+ "src": "klbKhmYtJlZhdVU",
215
+ "dst": "hdVU"
216
+ }
217
+ ]
218
+ }
219
+ ],
220
+ "defaultTimeSeries": "fixture-1"
221
+ },
222
+ "timeSeries": [
223
+ {
224
+ "names": ["新日期"],
225
+ "type": "date",
226
+ "format": "date",
227
+ "timeUnit": 3,
228
+ "minTimeUnit": 3,
229
+ "uid": "fixture-1"
230
+ }
231
+ ],
232
+ "measures": [
233
+ {
234
+ "names": ["新销售额"],
235
+ "cumulative": true,
236
+ "uid": "fixture-2"
237
+ }
238
+ ],
239
+ "dimensionTables": [
240
+ {
241
+ "table": "public.brand",
242
+ "mark": "品牌维表",
243
+ "where": "k1VOBTYYpFbJREMn1UU",
244
+ "uid": "fixture-3",
245
+ "dimensions": [
246
+ {
247
+ "id": 3,
248
+ "field": "name",
249
+ "uid": "fixture-4"
250
+ }
251
+ ]
252
+ }
253
+ ]
254
+ }
255
+ },
256
+ {
257
+ "name": "choice-dimension",
258
+ "plan": {
259
+ "name": "销售模型",
260
+ "table": "public.sales",
261
+ "timeSeries": [
262
+ {
263
+ "id": 1,
264
+ "field": "biz_date"
265
+ }
266
+ ],
267
+ "measures": [
268
+ {
269
+ "id": 2,
270
+ "field": "amount",
271
+ "calcType": "sum",
272
+ "type": "float",
273
+ "format": "float"
274
+ }
275
+ ],
276
+ "dimensions": [
277
+ {
278
+ "field": "status",
279
+ "definition": {
280
+ "names": ["状态"],
281
+ "type": "choice",
282
+ "format": "text",
283
+ "isKeyword": false,
284
+ "baseField": {
285
+ "typeBeforeMap": "bool",
286
+ "typeAfterMap": "str",
287
+ "choice": {
288
+ "true": "启用",
289
+ "false": "停用"
290
+ }
291
+ }
292
+ }
293
+ }
294
+ ]
295
+ },
296
+ "catalog": {
297
+ "models": [],
298
+ "timeSeries": [
299
+ {
300
+ "id": 1,
301
+ "names": ["业务日期"],
302
+ "type": "date",
303
+ "format": "date",
304
+ "timeUnit": 3
305
+ }
306
+ ],
307
+ "measures": [
308
+ {
309
+ "id": 2,
310
+ "names": ["销售额"],
311
+ "cumulative": false
312
+ },
313
+ {
314
+ "id": 9,
315
+ "names": ["利润率"],
316
+ "formula": "[m2]/[m3]"
317
+ }
318
+ ],
319
+ "dimensions": [
320
+ {
321
+ "id": 3,
322
+ "names": ["品牌"],
323
+ "type": "str",
324
+ "format": "text",
325
+ "isKeyword": true
326
+ }
327
+ ],
328
+ "dimensionTables": [
329
+ {
330
+ "uid": "existing-dim",
331
+ "dimensions": [
332
+ {
333
+ "id": 3,
334
+ "field": "name"
335
+ }
336
+ ]
337
+ }
338
+ ]
339
+ },
340
+ "payload": {
341
+ "model": {
342
+ "name": "销售模型",
343
+ "table": "public.sales",
344
+ "timeSeries": [
345
+ {
346
+ "id": 1,
347
+ "field": "biz_date"
348
+ }
349
+ ],
350
+ "dimensions": [
351
+ {
352
+ "uid": "fixture-1",
353
+ "field": "status"
354
+ }
355
+ ],
356
+ "measures": [
357
+ {
358
+ "id": 2,
359
+ "field": "amount",
360
+ "calcType": "sum",
361
+ "type": "float",
362
+ "format": "float"
363
+ }
364
+ ],
365
+ "dimensionTables": [],
366
+ "defaultTimeSeries": 1
367
+ },
368
+ "dimensions": [
369
+ {
370
+ "names": ["状态"],
371
+ "type": "choice",
372
+ "format": "text",
373
+ "isKeyword": false,
374
+ "baseField": {
375
+ "typeBeforeMap": "bool",
376
+ "typeAfterMap": "str",
377
+ "choice": {
378
+ "true": "启用",
379
+ "false": "停用"
380
+ }
381
+ },
382
+ "uid": "fixture-1"
383
+ }
384
+ ]
385
+ }
386
+ },
387
+ {
388
+ "name": "name-reuse-keeps-search-state",
389
+ "plan": {
390
+ "name": "销售模型",
391
+ "table": "public.sales",
392
+ "timeSeries": [
393
+ {
394
+ "id": 1,
395
+ "field": "biz_date"
396
+ }
397
+ ],
398
+ "measures": [
399
+ {
400
+ "id": 2,
401
+ "field": "amount",
402
+ "calcType": "sum",
403
+ "type": "float",
404
+ "format": "float"
405
+ }
406
+ ],
407
+ "dimensions": [
408
+ {
409
+ "field": "brand",
410
+ "definition": {
411
+ "names": ["品牌"],
412
+ "type": "str",
413
+ "format": "text",
414
+ "isKeyword": false
415
+ }
416
+ }
417
+ ]
418
+ },
419
+ "catalog": {
420
+ "models": [],
421
+ "timeSeries": [
422
+ {
423
+ "id": 1,
424
+ "names": ["业务日期"],
425
+ "type": "date",
426
+ "format": "date",
427
+ "timeUnit": 3
428
+ }
429
+ ],
430
+ "measures": [
431
+ {
432
+ "id": 2,
433
+ "names": ["销售额"],
434
+ "cumulative": false
435
+ },
436
+ {
437
+ "id": 9,
438
+ "names": ["利润率"],
439
+ "formula": "[m2]/[m3]"
440
+ }
441
+ ],
442
+ "dimensions": [
443
+ {
444
+ "id": 3,
445
+ "names": ["品牌"],
446
+ "type": "str",
447
+ "format": "text",
448
+ "isKeyword": true
449
+ }
450
+ ],
451
+ "dimensionTables": [
452
+ {
453
+ "uid": "existing-dim",
454
+ "dimensions": [
455
+ {
456
+ "id": 3,
457
+ "field": "name"
458
+ }
459
+ ]
460
+ }
461
+ ]
462
+ },
463
+ "payload": {
464
+ "model": {
465
+ "name": "销售模型",
466
+ "table": "public.sales",
467
+ "timeSeries": [
468
+ {
469
+ "id": 1,
470
+ "field": "biz_date"
471
+ }
472
+ ],
473
+ "dimensions": [
474
+ {
475
+ "id": 3,
476
+ "field": "brand"
477
+ }
478
+ ],
479
+ "measures": [
480
+ {
481
+ "id": 2,
482
+ "field": "amount",
483
+ "calcType": "sum",
484
+ "type": "float",
485
+ "format": "float"
486
+ }
487
+ ],
488
+ "dimensionTables": [],
489
+ "defaultTimeSeries": 1
490
+ }
491
+ }
492
+ },
493
+ {
494
+ "name": "duplicate-field",
495
+ "plan": {
496
+ "name": "销售模型",
497
+ "table": "public.sales",
498
+ "timeSeries": [
499
+ {
500
+ "id": 1,
501
+ "field": "biz_date"
502
+ }
503
+ ],
504
+ "measures": [
505
+ {
506
+ "id": 2,
507
+ "field": "amount",
508
+ "calcType": "sum",
509
+ "type": "float",
510
+ "format": "float"
511
+ }
512
+ ],
513
+ "dimensions": [
514
+ {
515
+ "id": 3,
516
+ "field": "amount"
517
+ }
518
+ ]
519
+ },
520
+ "catalog": {
521
+ "models": [],
522
+ "timeSeries": [
523
+ {
524
+ "id": 1,
525
+ "names": ["业务日期"],
526
+ "type": "date",
527
+ "format": "date",
528
+ "timeUnit": 3
529
+ }
530
+ ],
531
+ "measures": [
532
+ {
533
+ "id": 2,
534
+ "names": ["销售额"],
535
+ "cumulative": false
536
+ },
537
+ {
538
+ "id": 9,
539
+ "names": ["利润率"],
540
+ "formula": "[m2]/[m3]"
541
+ }
542
+ ],
543
+ "dimensions": [
544
+ {
545
+ "id": 3,
546
+ "names": ["品牌"],
547
+ "type": "str",
548
+ "format": "text",
549
+ "isKeyword": true
550
+ }
551
+ ],
552
+ "dimensionTables": [
553
+ {
554
+ "uid": "existing-dim",
555
+ "dimensions": [
556
+ {
557
+ "id": 3,
558
+ "field": "name"
559
+ }
560
+ ]
561
+ }
562
+ ]
563
+ },
564
+ "errorCode": "DUPLICATE_FACT_FIELD_BINDING"
565
+ },
566
+ {
567
+ "name": "incompatible-name",
568
+ "plan": {
569
+ "name": "销售模型",
570
+ "table": "public.sales",
571
+ "timeSeries": [
572
+ {
573
+ "id": 1,
574
+ "field": "biz_date"
575
+ }
576
+ ],
577
+ "measures": [
578
+ {
579
+ "field": "amount",
580
+ "calcType": "sum",
581
+ "type": "float",
582
+ "format": "float",
583
+ "definition": {
584
+ "names": ["销售额"],
585
+ "cumulative": true
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ "catalog": {
591
+ "models": [],
592
+ "timeSeries": [
593
+ {
594
+ "id": 1,
595
+ "names": ["业务日期"],
596
+ "type": "date",
597
+ "format": "date",
598
+ "timeUnit": 3
599
+ }
600
+ ],
601
+ "measures": [
602
+ {
603
+ "id": 2,
604
+ "names": ["销售额"],
605
+ "cumulative": false
606
+ },
607
+ {
608
+ "id": 9,
609
+ "names": ["利润率"],
610
+ "formula": "[m2]/[m3]"
611
+ }
612
+ ],
613
+ "dimensions": [
614
+ {
615
+ "id": 3,
616
+ "names": ["品牌"],
617
+ "type": "str",
618
+ "format": "text",
619
+ "isKeyword": true
620
+ }
621
+ ],
622
+ "dimensionTables": [
623
+ {
624
+ "uid": "existing-dim",
625
+ "dimensions": [
626
+ {
627
+ "id": 3,
628
+ "field": "name"
629
+ }
630
+ ]
631
+ }
632
+ ]
633
+ },
634
+ "errorCode": "INCOMPATIBLE_RESOURCE"
635
+ },
636
+ {
637
+ "name": "cross-type-name",
638
+ "plan": {
639
+ "name": "销售模型",
640
+ "table": "public.sales",
641
+ "timeSeries": [
642
+ {
643
+ "id": 1,
644
+ "field": "biz_date"
645
+ }
646
+ ],
647
+ "measures": [
648
+ {
649
+ "id": 2,
650
+ "field": "amount",
651
+ "calcType": "sum",
652
+ "type": "float",
653
+ "format": "float"
654
+ }
655
+ ],
656
+ "dimensions": [
657
+ {
658
+ "field": "brand",
659
+ "definition": {
660
+ "names": ["销售额"],
661
+ "type": "str",
662
+ "format": "text",
663
+ "isKeyword": false
664
+ }
665
+ }
666
+ ]
667
+ },
668
+ "catalog": {
669
+ "models": [],
670
+ "timeSeries": [
671
+ {
672
+ "id": 1,
673
+ "names": ["业务日期"],
674
+ "type": "date",
675
+ "format": "date",
676
+ "timeUnit": 3
677
+ }
678
+ ],
679
+ "measures": [
680
+ {
681
+ "id": 2,
682
+ "names": ["销售额"],
683
+ "cumulative": false
684
+ },
685
+ {
686
+ "id": 9,
687
+ "names": ["利润率"],
688
+ "formula": "[m2]/[m3]"
689
+ }
690
+ ],
691
+ "dimensions": [
692
+ {
693
+ "id": 3,
694
+ "names": ["品牌"],
695
+ "type": "str",
696
+ "format": "text",
697
+ "isKeyword": true
698
+ }
699
+ ],
700
+ "dimensionTables": [
701
+ {
702
+ "uid": "existing-dim",
703
+ "dimensions": [
704
+ {
705
+ "id": 3,
706
+ "field": "name"
707
+ }
708
+ ]
709
+ }
710
+ ]
711
+ },
712
+ "errorCode": "INCOMPATIBLE_RESOURCE"
713
+ },
714
+ {
715
+ "name": "multiple-default-time",
716
+ "plan": {
717
+ "name": "销售模型",
718
+ "table": "public.sales",
719
+ "timeSeries": [
720
+ {
721
+ "id": 1,
722
+ "field": "biz_date",
723
+ "default": true
724
+ },
725
+ {
726
+ "field": "created_at",
727
+ "default": true,
728
+ "definition": {
729
+ "names": ["创建日期"],
730
+ "type": "date",
731
+ "format": "date",
732
+ "timeUnit": 3
733
+ }
734
+ }
735
+ ],
736
+ "measures": [
737
+ {
738
+ "id": 2,
739
+ "field": "amount",
740
+ "calcType": "sum",
741
+ "type": "float",
742
+ "format": "float"
743
+ }
744
+ ]
745
+ },
746
+ "catalog": {
747
+ "models": [],
748
+ "timeSeries": [
749
+ {
750
+ "id": 1,
751
+ "names": ["业务日期"],
752
+ "type": "date",
753
+ "format": "date",
754
+ "timeUnit": 3
755
+ }
756
+ ],
757
+ "measures": [
758
+ {
759
+ "id": 2,
760
+ "names": ["销售额"],
761
+ "cumulative": false
762
+ },
763
+ {
764
+ "id": 9,
765
+ "names": ["利润率"],
766
+ "formula": "[m2]/[m3]"
767
+ }
768
+ ],
769
+ "dimensions": [
770
+ {
771
+ "id": 3,
772
+ "names": ["品牌"],
773
+ "type": "str",
774
+ "format": "text",
775
+ "isKeyword": true
776
+ }
777
+ ],
778
+ "dimensionTables": [
779
+ {
780
+ "uid": "existing-dim",
781
+ "dimensions": [
782
+ {
783
+ "id": 3,
784
+ "field": "name"
785
+ }
786
+ ]
787
+ }
788
+ ]
789
+ },
790
+ "errorCode": "INVALID_PLAN"
791
+ },
792
+ {
793
+ "name": "derived-id",
794
+ "plan": {
795
+ "name": "销售模型",
796
+ "table": "public.sales",
797
+ "timeSeries": [
798
+ {
799
+ "id": 1,
800
+ "field": "biz_date"
801
+ }
802
+ ],
803
+ "measures": [
804
+ {
805
+ "id": 9,
806
+ "field": "amount",
807
+ "calcType": "sum",
808
+ "type": "float",
809
+ "format": "float"
810
+ }
811
+ ]
812
+ },
813
+ "catalog": {
814
+ "models": [],
815
+ "timeSeries": [
816
+ {
817
+ "id": 1,
818
+ "names": ["业务日期"],
819
+ "type": "date",
820
+ "format": "date",
821
+ "timeUnit": 3
822
+ }
823
+ ],
824
+ "measures": [
825
+ {
826
+ "id": 2,
827
+ "names": ["销售额"],
828
+ "cumulative": false
829
+ },
830
+ {
831
+ "id": 9,
832
+ "names": ["利润率"],
833
+ "formula": "[m2]/[m3]"
834
+ }
835
+ ],
836
+ "dimensions": [
837
+ {
838
+ "id": 3,
839
+ "names": ["品牌"],
840
+ "type": "str",
841
+ "format": "text",
842
+ "isKeyword": true
843
+ }
844
+ ],
845
+ "dimensionTables": [
846
+ {
847
+ "uid": "existing-dim",
848
+ "dimensions": [
849
+ {
850
+ "id": 3,
851
+ "field": "name"
852
+ }
853
+ ]
854
+ }
855
+ ]
856
+ },
857
+ "errorCode": "INVALID_PLAN"
858
+ },
859
+ {
860
+ "name": "derived-definition",
861
+ "plan": {
862
+ "name": "销售模型",
863
+ "table": "public.sales",
864
+ "timeSeries": [
865
+ {
866
+ "id": 1,
867
+ "field": "biz_date"
868
+ }
869
+ ],
870
+ "measures": [
871
+ {
872
+ "field": "amount",
873
+ "calcType": "sum",
874
+ "type": "float",
875
+ "format": "float",
876
+ "definition": {
877
+ "names": ["新利润率"],
878
+ "cumulative": false,
879
+ "formula": "[m2]/[m3]"
880
+ }
881
+ }
882
+ ]
883
+ },
884
+ "catalog": {
885
+ "models": [],
886
+ "timeSeries": [
887
+ {
888
+ "id": 1,
889
+ "names": ["业务日期"],
890
+ "type": "date",
891
+ "format": "date",
892
+ "timeUnit": 3
893
+ }
894
+ ],
895
+ "measures": [
896
+ {
897
+ "id": 2,
898
+ "names": ["销售额"],
899
+ "cumulative": false
900
+ },
901
+ {
902
+ "id": 9,
903
+ "names": ["利润率"],
904
+ "formula": "[m2]/[m3]"
905
+ }
906
+ ],
907
+ "dimensions": [
908
+ {
909
+ "id": 3,
910
+ "names": ["品牌"],
911
+ "type": "str",
912
+ "format": "text",
913
+ "isKeyword": true
914
+ }
915
+ ],
916
+ "dimensionTables": [
917
+ {
918
+ "uid": "existing-dim",
919
+ "dimensions": [
920
+ {
921
+ "id": 3,
922
+ "field": "name"
923
+ }
924
+ ]
925
+ }
926
+ ]
927
+ },
928
+ "errorCode": "INVALID_PLAN"
929
+ },
930
+ {
931
+ "name": "reuse-dimension-twice",
932
+ "plan": {
933
+ "name": "销售模型",
934
+ "table": "public.sales",
935
+ "timeSeries": [
936
+ {
937
+ "id": 1,
938
+ "field": "biz_date"
939
+ }
940
+ ],
941
+ "measures": [
942
+ {
943
+ "id": 2,
944
+ "field": "amount",
945
+ "calcType": "sum",
946
+ "type": "float",
947
+ "format": "float"
948
+ }
949
+ ],
950
+ "dimensions": [
951
+ {
952
+ "id": 3,
953
+ "field": "brand"
954
+ }
955
+ ],
956
+ "dimensionTables": [
957
+ {
958
+ "uid": "existing-dim",
959
+ "joinFields": [
960
+ {
961
+ "src": "brand_id",
962
+ "dst": "id"
963
+ }
964
+ ]
965
+ }
966
+ ]
967
+ },
968
+ "catalog": {
969
+ "models": [],
970
+ "timeSeries": [
971
+ {
972
+ "id": 1,
973
+ "names": ["业务日期"],
974
+ "type": "date",
975
+ "format": "date",
976
+ "timeUnit": 3
977
+ }
978
+ ],
979
+ "measures": [
980
+ {
981
+ "id": 2,
982
+ "names": ["销售额"],
983
+ "cumulative": false
984
+ },
985
+ {
986
+ "id": 9,
987
+ "names": ["利润率"],
988
+ "formula": "[m2]/[m3]"
989
+ }
990
+ ],
991
+ "dimensions": [
992
+ {
993
+ "id": 3,
994
+ "names": ["品牌"],
995
+ "type": "str",
996
+ "format": "text",
997
+ "isKeyword": true
998
+ }
999
+ ],
1000
+ "dimensionTables": [
1001
+ {
1002
+ "uid": "existing-dim",
1003
+ "dimensions": [
1004
+ {
1005
+ "id": 3,
1006
+ "field": "name"
1007
+ }
1008
+ ]
1009
+ }
1010
+ ]
1011
+ },
1012
+ "errorCode": "DUPLICATE_BINDING"
1013
+ },
1014
+ {
1015
+ "name": "unknown-dimension-table",
1016
+ "plan": {
1017
+ "name": "销售模型",
1018
+ "table": "public.sales",
1019
+ "timeSeries": [
1020
+ {
1021
+ "id": 1,
1022
+ "field": "biz_date"
1023
+ }
1024
+ ],
1025
+ "measures": [
1026
+ {
1027
+ "id": 2,
1028
+ "field": "amount",
1029
+ "calcType": "sum",
1030
+ "type": "float",
1031
+ "format": "float"
1032
+ }
1033
+ ],
1034
+ "dimensionTables": [
1035
+ {
1036
+ "uid": "missing",
1037
+ "joinFields": [
1038
+ {
1039
+ "src": "brand_id",
1040
+ "dst": "id"
1041
+ }
1042
+ ]
1043
+ }
1044
+ ]
1045
+ },
1046
+ "catalog": {
1047
+ "models": [],
1048
+ "timeSeries": [
1049
+ {
1050
+ "id": 1,
1051
+ "names": ["业务日期"],
1052
+ "type": "date",
1053
+ "format": "date",
1054
+ "timeUnit": 3
1055
+ }
1056
+ ],
1057
+ "measures": [
1058
+ {
1059
+ "id": 2,
1060
+ "names": ["销售额"],
1061
+ "cumulative": false
1062
+ },
1063
+ {
1064
+ "id": 9,
1065
+ "names": ["利润率"],
1066
+ "formula": "[m2]/[m3]"
1067
+ }
1068
+ ],
1069
+ "dimensions": [
1070
+ {
1071
+ "id": 3,
1072
+ "names": ["品牌"],
1073
+ "type": "str",
1074
+ "format": "text",
1075
+ "isKeyword": true
1076
+ }
1077
+ ],
1078
+ "dimensionTables": [
1079
+ {
1080
+ "uid": "existing-dim",
1081
+ "dimensions": [
1082
+ {
1083
+ "id": 3,
1084
+ "field": "name"
1085
+ }
1086
+ ]
1087
+ }
1088
+ ]
1089
+ },
1090
+ "errorCode": "UNKNOWN_RESOURCE"
1091
+ },
1092
+ {
1093
+ "name": "dimension-table-time",
1094
+ "plan": {
1095
+ "name": "销售模型",
1096
+ "table": "public.sales",
1097
+ "timeSeries": [
1098
+ {
1099
+ "id": 1,
1100
+ "field": "biz_date"
1101
+ }
1102
+ ],
1103
+ "measures": [
1104
+ {
1105
+ "id": 2,
1106
+ "field": "amount",
1107
+ "calcType": "sum",
1108
+ "type": "float",
1109
+ "format": "float"
1110
+ }
1111
+ ],
1112
+ "dimensionTables": [
1113
+ {
1114
+ "joinFields": [
1115
+ {
1116
+ "src": "brand_id",
1117
+ "dst": "id"
1118
+ }
1119
+ ],
1120
+ "definition": {
1121
+ "table": "brand",
1122
+ "timeSeries": []
1123
+ }
1124
+ }
1125
+ ]
1126
+ },
1127
+ "catalog": {
1128
+ "models": [],
1129
+ "timeSeries": [
1130
+ {
1131
+ "id": 1,
1132
+ "names": ["业务日期"],
1133
+ "type": "date",
1134
+ "format": "date",
1135
+ "timeUnit": 3
1136
+ }
1137
+ ],
1138
+ "measures": [
1139
+ {
1140
+ "id": 2,
1141
+ "names": ["销售额"],
1142
+ "cumulative": false
1143
+ },
1144
+ {
1145
+ "id": 9,
1146
+ "names": ["利润率"],
1147
+ "formula": "[m2]/[m3]"
1148
+ }
1149
+ ],
1150
+ "dimensions": [
1151
+ {
1152
+ "id": 3,
1153
+ "names": ["品牌"],
1154
+ "type": "str",
1155
+ "format": "text",
1156
+ "isKeyword": true
1157
+ }
1158
+ ],
1159
+ "dimensionTables": [
1160
+ {
1161
+ "uid": "existing-dim",
1162
+ "dimensions": [
1163
+ {
1164
+ "id": 3,
1165
+ "field": "name"
1166
+ }
1167
+ ]
1168
+ }
1169
+ ]
1170
+ },
1171
+ "errorCode": "INVALID_PLAN"
1172
+ },
1173
+ {
1174
+ "name": "dimension-table-measures",
1175
+ "plan": {
1176
+ "name": "销售模型",
1177
+ "table": "public.sales",
1178
+ "timeSeries": [
1179
+ {
1180
+ "id": 1,
1181
+ "field": "biz_date"
1182
+ }
1183
+ ],
1184
+ "measures": [
1185
+ {
1186
+ "id": 2,
1187
+ "field": "amount",
1188
+ "calcType": "sum",
1189
+ "type": "float",
1190
+ "format": "float"
1191
+ }
1192
+ ],
1193
+ "dimensionTables": [
1194
+ {
1195
+ "joinFields": [
1196
+ {
1197
+ "src": "brand_id",
1198
+ "dst": "id"
1199
+ }
1200
+ ],
1201
+ "definition": {
1202
+ "table": "brand",
1203
+ "measures": []
1204
+ }
1205
+ }
1206
+ ]
1207
+ },
1208
+ "catalog": {
1209
+ "models": [],
1210
+ "timeSeries": [
1211
+ {
1212
+ "id": 1,
1213
+ "names": ["业务日期"],
1214
+ "type": "date",
1215
+ "format": "date",
1216
+ "timeUnit": 3
1217
+ }
1218
+ ],
1219
+ "measures": [
1220
+ {
1221
+ "id": 2,
1222
+ "names": ["销售额"],
1223
+ "cumulative": false
1224
+ },
1225
+ {
1226
+ "id": 9,
1227
+ "names": ["利润率"],
1228
+ "formula": "[m2]/[m3]"
1229
+ }
1230
+ ],
1231
+ "dimensions": [
1232
+ {
1233
+ "id": 3,
1234
+ "names": ["品牌"],
1235
+ "type": "str",
1236
+ "format": "text",
1237
+ "isKeyword": true
1238
+ }
1239
+ ],
1240
+ "dimensionTables": [
1241
+ {
1242
+ "uid": "existing-dim",
1243
+ "dimensions": [
1244
+ {
1245
+ "id": 3,
1246
+ "field": "name"
1247
+ }
1248
+ ]
1249
+ }
1250
+ ]
1251
+ },
1252
+ "errorCode": "INVALID_PLAN"
1253
+ },
1254
+ {
1255
+ "name": "bad-choice",
1256
+ "plan": {
1257
+ "name": "销售模型",
1258
+ "table": "public.sales",
1259
+ "timeSeries": [
1260
+ {
1261
+ "id": 1,
1262
+ "field": "biz_date"
1263
+ }
1264
+ ],
1265
+ "measures": [
1266
+ {
1267
+ "id": 2,
1268
+ "field": "amount",
1269
+ "calcType": "sum",
1270
+ "type": "float",
1271
+ "format": "float"
1272
+ }
1273
+ ],
1274
+ "dimensions": [
1275
+ {
1276
+ "field": "status",
1277
+ "definition": {
1278
+ "names": ["状态"],
1279
+ "type": "choice",
1280
+ "format": "text",
1281
+ "isKeyword": false,
1282
+ "baseField": {
1283
+ "typeBeforeMap": "bool",
1284
+ "typeAfterMap": "str",
1285
+ "choice": {
1286
+ "true": "是"
1287
+ }
1288
+ }
1289
+ }
1290
+ }
1291
+ ]
1292
+ },
1293
+ "catalog": {
1294
+ "models": [],
1295
+ "timeSeries": [
1296
+ {
1297
+ "id": 1,
1298
+ "names": ["业务日期"],
1299
+ "type": "date",
1300
+ "format": "date",
1301
+ "timeUnit": 3
1302
+ }
1303
+ ],
1304
+ "measures": [
1305
+ {
1306
+ "id": 2,
1307
+ "names": ["销售额"],
1308
+ "cumulative": false
1309
+ },
1310
+ {
1311
+ "id": 9,
1312
+ "names": ["利润率"],
1313
+ "formula": "[m2]/[m3]"
1314
+ }
1315
+ ],
1316
+ "dimensions": [
1317
+ {
1318
+ "id": 3,
1319
+ "names": ["品牌"],
1320
+ "type": "str",
1321
+ "format": "text",
1322
+ "isKeyword": true
1323
+ }
1324
+ ],
1325
+ "dimensionTables": [
1326
+ {
1327
+ "uid": "existing-dim",
1328
+ "dimensions": [
1329
+ {
1330
+ "id": 3,
1331
+ "field": "name"
1332
+ }
1333
+ ]
1334
+ }
1335
+ ]
1336
+ },
1337
+ "errorCode": "INVALID_PLAN"
1338
+ },
1339
+ {
1340
+ "name": "base-search-enabled",
1341
+ "plan": {
1342
+ "name": "销售模型",
1343
+ "table": "public.sales",
1344
+ "timeSeries": [
1345
+ {
1346
+ "id": 1,
1347
+ "field": "biz_date"
1348
+ }
1349
+ ],
1350
+ "measures": [
1351
+ {
1352
+ "id": 2,
1353
+ "field": "amount",
1354
+ "calcType": "sum",
1355
+ "type": "float",
1356
+ "format": "float"
1357
+ }
1358
+ ],
1359
+ "dimensions": [
1360
+ {
1361
+ "field": "status",
1362
+ "definition": {
1363
+ "names": ["状态"],
1364
+ "type": "str",
1365
+ "format": "text",
1366
+ "isKeyword": true
1367
+ }
1368
+ }
1369
+ ]
1370
+ },
1371
+ "catalog": {
1372
+ "models": [],
1373
+ "timeSeries": [
1374
+ {
1375
+ "id": 1,
1376
+ "names": ["业务日期"],
1377
+ "type": "date",
1378
+ "format": "date",
1379
+ "timeUnit": 3
1380
+ }
1381
+ ],
1382
+ "measures": [
1383
+ {
1384
+ "id": 2,
1385
+ "names": ["销售额"],
1386
+ "cumulative": false
1387
+ },
1388
+ {
1389
+ "id": 9,
1390
+ "names": ["利润率"],
1391
+ "formula": "[m2]/[m3]"
1392
+ }
1393
+ ],
1394
+ "dimensions": [
1395
+ {
1396
+ "id": 3,
1397
+ "names": ["品牌"],
1398
+ "type": "str",
1399
+ "format": "text",
1400
+ "isKeyword": true
1401
+ }
1402
+ ],
1403
+ "dimensionTables": [
1404
+ {
1405
+ "uid": "existing-dim",
1406
+ "dimensions": [
1407
+ {
1408
+ "id": 3,
1409
+ "field": "name"
1410
+ }
1411
+ ]
1412
+ }
1413
+ ]
1414
+ },
1415
+ "errorCode": "SEARCH_ACTION_REQUIRED"
1416
+ },
1417
+ {
1418
+ "name": "unknown-keyword",
1419
+ "plan": {
1420
+ "name": "销售模型",
1421
+ "table": "public.sales",
1422
+ "timeSeries": [
1423
+ {
1424
+ "id": 99,
1425
+ "field": "biz_date"
1426
+ }
1427
+ ],
1428
+ "measures": [
1429
+ {
1430
+ "id": 2,
1431
+ "field": "amount",
1432
+ "calcType": "sum",
1433
+ "type": "float",
1434
+ "format": "float"
1435
+ }
1436
+ ]
1437
+ },
1438
+ "catalog": {
1439
+ "models": [],
1440
+ "timeSeries": [
1441
+ {
1442
+ "id": 1,
1443
+ "names": ["业务日期"],
1444
+ "type": "date",
1445
+ "format": "date",
1446
+ "timeUnit": 3
1447
+ }
1448
+ ],
1449
+ "measures": [
1450
+ {
1451
+ "id": 2,
1452
+ "names": ["销售额"],
1453
+ "cumulative": false
1454
+ },
1455
+ {
1456
+ "id": 9,
1457
+ "names": ["利润率"],
1458
+ "formula": "[m2]/[m3]"
1459
+ }
1460
+ ],
1461
+ "dimensions": [
1462
+ {
1463
+ "id": 3,
1464
+ "names": ["品牌"],
1465
+ "type": "str",
1466
+ "format": "text",
1467
+ "isKeyword": true
1468
+ }
1469
+ ],
1470
+ "dimensionTables": [
1471
+ {
1472
+ "uid": "existing-dim",
1473
+ "dimensions": [
1474
+ {
1475
+ "id": 3,
1476
+ "field": "name"
1477
+ }
1478
+ ]
1479
+ }
1480
+ ]
1481
+ },
1482
+ "errorCode": "UNKNOWN_RESOURCE"
1483
+ },
1484
+ {
1485
+ "name": "same-resource-twice",
1486
+ "plan": {
1487
+ "name": "销售模型",
1488
+ "table": "public.sales",
1489
+ "timeSeries": [
1490
+ {
1491
+ "id": 1,
1492
+ "field": "biz_date"
1493
+ }
1494
+ ],
1495
+ "measures": [
1496
+ {
1497
+ "id": 2,
1498
+ "field": "amount",
1499
+ "calcType": "sum",
1500
+ "type": "float",
1501
+ "format": "float"
1502
+ },
1503
+ {
1504
+ "id": 2,
1505
+ "field": "refund",
1506
+ "calcType": "sum",
1507
+ "type": "float",
1508
+ "format": "float"
1509
+ }
1510
+ ]
1511
+ },
1512
+ "catalog": {
1513
+ "models": [],
1514
+ "timeSeries": [
1515
+ {
1516
+ "id": 1,
1517
+ "names": ["业务日期"],
1518
+ "type": "date",
1519
+ "format": "date",
1520
+ "timeUnit": 3
1521
+ }
1522
+ ],
1523
+ "measures": [
1524
+ {
1525
+ "id": 2,
1526
+ "names": ["销售额"],
1527
+ "cumulative": false
1528
+ },
1529
+ {
1530
+ "id": 9,
1531
+ "names": ["利润率"],
1532
+ "formula": "[m2]/[m3]"
1533
+ }
1534
+ ],
1535
+ "dimensions": [
1536
+ {
1537
+ "id": 3,
1538
+ "names": ["品牌"],
1539
+ "type": "str",
1540
+ "format": "text",
1541
+ "isKeyword": true
1542
+ }
1543
+ ],
1544
+ "dimensionTables": [
1545
+ {
1546
+ "uid": "existing-dim",
1547
+ "dimensions": [
1548
+ {
1549
+ "id": 3,
1550
+ "field": "name"
1551
+ }
1552
+ ]
1553
+ }
1554
+ ]
1555
+ },
1556
+ "errorCode": "DUPLICATE_BINDING"
1557
+ },
1558
+ {
1559
+ "name": "legacy-default-time",
1560
+ "plan": {
1561
+ "name": "销售模型",
1562
+ "table": "public.sales",
1563
+ "timeSeries": [
1564
+ {
1565
+ "id": 1,
1566
+ "field": "biz_date"
1567
+ },
1568
+ {
1569
+ "field": "created_at",
1570
+ "definition": {
1571
+ "names": ["创建日期"],
1572
+ "type": "date",
1573
+ "format": "date",
1574
+ "timeUnit": 3
1575
+ }
1576
+ }
1577
+ ],
1578
+ "measures": [
1579
+ {
1580
+ "id": 2,
1581
+ "field": "amount",
1582
+ "calcType": "sum",
1583
+ "type": "float",
1584
+ "format": "float"
1585
+ }
1586
+ ],
1587
+ "modelOptions": {
1588
+ "defaultTimeSeries": 1
1589
+ }
1590
+ },
1591
+ "catalog": {
1592
+ "models": [],
1593
+ "timeSeries": [
1594
+ {
1595
+ "id": 1,
1596
+ "names": ["业务日期"],
1597
+ "type": "date",
1598
+ "format": "date",
1599
+ "timeUnit": 3
1600
+ }
1601
+ ],
1602
+ "measures": [
1603
+ {
1604
+ "id": 2,
1605
+ "names": ["销售额"],
1606
+ "cumulative": false
1607
+ },
1608
+ {
1609
+ "id": 9,
1610
+ "names": ["利润率"],
1611
+ "formula": "[m2]/[m3]"
1612
+ }
1613
+ ],
1614
+ "dimensions": [
1615
+ {
1616
+ "id": 3,
1617
+ "names": ["品牌"],
1618
+ "type": "str",
1619
+ "format": "text",
1620
+ "isKeyword": true
1621
+ }
1622
+ ],
1623
+ "dimensionTables": [
1624
+ {
1625
+ "uid": "existing-dim",
1626
+ "dimensions": [
1627
+ {
1628
+ "id": 3,
1629
+ "field": "name"
1630
+ }
1631
+ ]
1632
+ }
1633
+ ]
1634
+ },
1635
+ "payload": {
1636
+ "model": {
1637
+ "name": "销售模型",
1638
+ "table": "public.sales",
1639
+ "timeSeries": [
1640
+ {
1641
+ "id": 1,
1642
+ "field": "biz_date"
1643
+ },
1644
+ {
1645
+ "uid": "fixture-1",
1646
+ "field": "created_at"
1647
+ }
1648
+ ],
1649
+ "dimensions": [],
1650
+ "measures": [
1651
+ {
1652
+ "id": 2,
1653
+ "field": "amount",
1654
+ "calcType": "sum",
1655
+ "type": "float",
1656
+ "format": "float"
1657
+ }
1658
+ ],
1659
+ "dimensionTables": [],
1660
+ "defaultTimeSeries": 1
1661
+ },
1662
+ "timeSeries": [
1663
+ {
1664
+ "names": ["创建日期"],
1665
+ "type": "date",
1666
+ "format": "date",
1667
+ "timeUnit": 3,
1668
+ "minTimeUnit": 3,
1669
+ "uid": "fixture-1"
1670
+ }
1671
+ ]
1672
+ }
1673
+ },
1674
+ {
1675
+ "name": "alias-requires-update",
1676
+ "plan": {
1677
+ "name": "销售模型",
1678
+ "table": "public.sales",
1679
+ "timeSeries": [
1680
+ {
1681
+ "id": 1,
1682
+ "field": "biz_date"
1683
+ }
1684
+ ],
1685
+ "measures": [
1686
+ {
1687
+ "field": "amount",
1688
+ "calcType": "sum",
1689
+ "type": "float",
1690
+ "format": "float",
1691
+ "definition": {
1692
+ "names": ["销售额", "营业额"],
1693
+ "cumulative": false
1694
+ }
1695
+ }
1696
+ ]
1697
+ },
1698
+ "catalog": {
1699
+ "models": [],
1700
+ "timeSeries": [
1701
+ {
1702
+ "id": 1,
1703
+ "names": ["业务日期"],
1704
+ "type": "date",
1705
+ "format": "date",
1706
+ "timeUnit": 3
1707
+ }
1708
+ ],
1709
+ "measures": [
1710
+ {
1711
+ "id": 2,
1712
+ "names": ["销售额"],
1713
+ "cumulative": false
1714
+ },
1715
+ {
1716
+ "id": 9,
1717
+ "names": ["利润率"],
1718
+ "formula": "[m2]/[m3]"
1719
+ }
1720
+ ],
1721
+ "dimensions": [
1722
+ {
1723
+ "id": 3,
1724
+ "names": ["品牌"],
1725
+ "type": "str",
1726
+ "format": "text",
1727
+ "isKeyword": true
1728
+ }
1729
+ ],
1730
+ "dimensionTables": [
1731
+ {
1732
+ "uid": "existing-dim",
1733
+ "dimensions": [
1734
+ {
1735
+ "id": 3,
1736
+ "field": "name"
1737
+ }
1738
+ ]
1739
+ }
1740
+ ]
1741
+ },
1742
+ "errorCode": "REUSE_REQUIRES_UPDATE"
1743
+ },
1744
+ {
1745
+ "name": "ambiguous-name",
1746
+ "plan": {
1747
+ "name": "销售模型",
1748
+ "table": "public.sales",
1749
+ "timeSeries": [
1750
+ {
1751
+ "id": 1,
1752
+ "field": "biz_date"
1753
+ }
1754
+ ],
1755
+ "measures": [
1756
+ {
1757
+ "field": "amount",
1758
+ "calcType": "sum",
1759
+ "type": "float",
1760
+ "format": "float",
1761
+ "definition": {
1762
+ "names": ["销售额"],
1763
+ "cumulative": false
1764
+ }
1765
+ }
1766
+ ]
1767
+ },
1768
+ "catalog": {
1769
+ "models": [],
1770
+ "timeSeries": [
1771
+ {
1772
+ "id": 1,
1773
+ "names": ["业务日期"],
1774
+ "type": "date",
1775
+ "format": "date",
1776
+ "timeUnit": 3
1777
+ }
1778
+ ],
1779
+ "measures": [
1780
+ {
1781
+ "id": 2,
1782
+ "names": ["销售额"],
1783
+ "cumulative": false
1784
+ },
1785
+ {
1786
+ "id": 4,
1787
+ "names": ["销售额"],
1788
+ "cumulative": false
1789
+ }
1790
+ ],
1791
+ "dimensions": [
1792
+ {
1793
+ "id": 3,
1794
+ "names": ["品牌"],
1795
+ "type": "str",
1796
+ "format": "text",
1797
+ "isKeyword": true
1798
+ }
1799
+ ],
1800
+ "dimensionTables": [
1801
+ {
1802
+ "uid": "existing-dim",
1803
+ "dimensions": [
1804
+ {
1805
+ "id": 3,
1806
+ "field": "name"
1807
+ }
1808
+ ]
1809
+ }
1810
+ ]
1811
+ },
1812
+ "errorCode": "AMBIGUOUS_RESOURCE"
1813
+ },
1814
+ {
1815
+ "name": "invalid-date-granularity",
1816
+ "plan": {
1817
+ "name": "销售模型",
1818
+ "table": "public.sales",
1819
+ "timeSeries": [
1820
+ {
1821
+ "field": "date",
1822
+ "definition": {
1823
+ "names": ["新日期"],
1824
+ "type": "date",
1825
+ "format": "date",
1826
+ "timeUnit": 3,
1827
+ "minTimeUnit": 1
1828
+ }
1829
+ }
1830
+ ],
1831
+ "measures": [
1832
+ {
1833
+ "id": 2,
1834
+ "field": "amount",
1835
+ "calcType": "sum",
1836
+ "type": "float",
1837
+ "format": "float"
1838
+ }
1839
+ ]
1840
+ },
1841
+ "catalog": {
1842
+ "models": [],
1843
+ "timeSeries": [
1844
+ {
1845
+ "id": 1,
1846
+ "names": ["业务日期"],
1847
+ "type": "date",
1848
+ "format": "date",
1849
+ "timeUnit": 3
1850
+ }
1851
+ ],
1852
+ "measures": [
1853
+ {
1854
+ "id": 2,
1855
+ "names": ["销售额"],
1856
+ "cumulative": false
1857
+ },
1858
+ {
1859
+ "id": 9,
1860
+ "names": ["利润率"],
1861
+ "formula": "[m2]/[m3]"
1862
+ }
1863
+ ],
1864
+ "dimensions": [
1865
+ {
1866
+ "id": 3,
1867
+ "names": ["品牌"],
1868
+ "type": "str",
1869
+ "format": "text",
1870
+ "isKeyword": true
1871
+ }
1872
+ ],
1873
+ "dimensionTables": [
1874
+ {
1875
+ "uid": "existing-dim",
1876
+ "dimensions": [
1877
+ {
1878
+ "id": 3,
1879
+ "field": "name"
1880
+ }
1881
+ ]
1882
+ }
1883
+ ]
1884
+ },
1885
+ "errorCode": "INVALID_PLAN"
1886
+ },
1887
+ {
1888
+ "name": "conflicting-sources",
1889
+ "plan": {
1890
+ "name": "销售模型",
1891
+ "table": "public.sales",
1892
+ "timeSeries": [
1893
+ {
1894
+ "id": 1,
1895
+ "field": "biz_date"
1896
+ }
1897
+ ],
1898
+ "measures": [
1899
+ {
1900
+ "id": 2,
1901
+ "field": "amount",
1902
+ "calcType": "sum",
1903
+ "type": "float",
1904
+ "format": "float"
1905
+ }
1906
+ ],
1907
+ "tableUid": "custom"
1908
+ },
1909
+ "catalog": {
1910
+ "models": [],
1911
+ "timeSeries": [
1912
+ {
1913
+ "id": 1,
1914
+ "names": ["业务日期"],
1915
+ "type": "date",
1916
+ "format": "date",
1917
+ "timeUnit": 3
1918
+ }
1919
+ ],
1920
+ "measures": [
1921
+ {
1922
+ "id": 2,
1923
+ "names": ["销售额"],
1924
+ "cumulative": false
1925
+ },
1926
+ {
1927
+ "id": 9,
1928
+ "names": ["利润率"],
1929
+ "formula": "[m2]/[m3]"
1930
+ }
1931
+ ],
1932
+ "dimensions": [
1933
+ {
1934
+ "id": 3,
1935
+ "names": ["品牌"],
1936
+ "type": "str",
1937
+ "format": "text",
1938
+ "isKeyword": true
1939
+ }
1940
+ ],
1941
+ "dimensionTables": [
1942
+ {
1943
+ "uid": "existing-dim",
1944
+ "dimensions": [
1945
+ {
1946
+ "id": 3,
1947
+ "field": "name"
1948
+ }
1949
+ ]
1950
+ }
1951
+ ]
1952
+ },
1953
+ "errorCode": "INVALID_PLAN"
1954
+ },
1955
+ {
1956
+ "name": "empty-join",
1957
+ "plan": {
1958
+ "name": "销售模型",
1959
+ "table": "public.sales",
1960
+ "timeSeries": [
1961
+ {
1962
+ "id": 1,
1963
+ "field": "biz_date"
1964
+ }
1965
+ ],
1966
+ "measures": [
1967
+ {
1968
+ "id": 2,
1969
+ "field": "amount",
1970
+ "calcType": "sum",
1971
+ "type": "float",
1972
+ "format": "float"
1973
+ }
1974
+ ],
1975
+ "dimensionTables": [
1976
+ {
1977
+ "uid": "existing-dim",
1978
+ "joinFields": []
1979
+ }
1980
+ ]
1981
+ },
1982
+ "catalog": {
1983
+ "models": [],
1984
+ "timeSeries": [
1985
+ {
1986
+ "id": 1,
1987
+ "names": ["业务日期"],
1988
+ "type": "date",
1989
+ "format": "date",
1990
+ "timeUnit": 3
1991
+ }
1992
+ ],
1993
+ "measures": [
1994
+ {
1995
+ "id": 2,
1996
+ "names": ["销售额"],
1997
+ "cumulative": false
1998
+ },
1999
+ {
2000
+ "id": 9,
2001
+ "names": ["利润率"],
2002
+ "formula": "[m2]/[m3]"
2003
+ }
2004
+ ],
2005
+ "dimensions": [
2006
+ {
2007
+ "id": 3,
2008
+ "names": ["品牌"],
2009
+ "type": "str",
2010
+ "format": "text",
2011
+ "isKeyword": true
2012
+ }
2013
+ ],
2014
+ "dimensionTables": [
2015
+ {
2016
+ "uid": "existing-dim",
2017
+ "dimensions": [
2018
+ {
2019
+ "id": 3,
2020
+ "field": "name"
2021
+ }
2022
+ ]
2023
+ }
2024
+ ]
2025
+ },
2026
+ "errorCode": "INVALID_PLAN"
2027
+ },
2028
+ {
2029
+ "name": "model-name-collision",
2030
+ "plan": {
2031
+ "name": "销售额",
2032
+ "table": "public.sales",
2033
+ "timeSeries": [
2034
+ {
2035
+ "id": 1,
2036
+ "field": "biz_date"
2037
+ }
2038
+ ],
2039
+ "measures": [
2040
+ {
2041
+ "id": 2,
2042
+ "field": "amount",
2043
+ "calcType": "sum",
2044
+ "type": "float",
2045
+ "format": "float"
2046
+ }
2047
+ ]
2048
+ },
2049
+ "catalog": {
2050
+ "models": [],
2051
+ "timeSeries": [
2052
+ {
2053
+ "id": 1,
2054
+ "names": ["业务日期"],
2055
+ "type": "date",
2056
+ "format": "date",
2057
+ "timeUnit": 3
2058
+ }
2059
+ ],
2060
+ "measures": [
2061
+ {
2062
+ "id": 2,
2063
+ "names": ["销售额"],
2064
+ "cumulative": false
2065
+ },
2066
+ {
2067
+ "id": 9,
2068
+ "names": ["利润率"],
2069
+ "formula": "[m2]/[m3]"
2070
+ }
2071
+ ],
2072
+ "dimensions": [
2073
+ {
2074
+ "id": 3,
2075
+ "names": ["品牌"],
2076
+ "type": "str",
2077
+ "format": "text",
2078
+ "isKeyword": true
2079
+ }
2080
+ ],
2081
+ "dimensionTables": [
2082
+ {
2083
+ "uid": "existing-dim",
2084
+ "dimensions": [
2085
+ {
2086
+ "id": 3,
2087
+ "field": "name"
2088
+ }
2089
+ ]
2090
+ }
2091
+ ]
2092
+ },
2093
+ "errorCode": "INCOMPATIBLE_RESOURCE"
2094
+ },
2095
+ {
2096
+ "name": "cumulative-required",
2097
+ "plan": {
2098
+ "name": "销售模型",
2099
+ "table": "public.sales",
2100
+ "timeSeries": [
2101
+ {
2102
+ "id": 1,
2103
+ "field": "biz_date"
2104
+ }
2105
+ ],
2106
+ "measures": [
2107
+ {
2108
+ "field": "amount",
2109
+ "calcType": "sum",
2110
+ "type": "float",
2111
+ "format": "float",
2112
+ "definition": {
2113
+ "names": ["新指标"]
2114
+ }
2115
+ }
2116
+ ]
2117
+ },
2118
+ "catalog": {
2119
+ "models": [],
2120
+ "timeSeries": [
2121
+ {
2122
+ "id": 1,
2123
+ "names": ["业务日期"],
2124
+ "type": "date",
2125
+ "format": "date",
2126
+ "timeUnit": 3
2127
+ }
2128
+ ],
2129
+ "measures": [
2130
+ {
2131
+ "id": 2,
2132
+ "names": ["销售额"],
2133
+ "cumulative": false
2134
+ },
2135
+ {
2136
+ "id": 9,
2137
+ "names": ["利润率"],
2138
+ "formula": "[m2]/[m3]"
2139
+ }
2140
+ ],
2141
+ "dimensions": [
2142
+ {
2143
+ "id": 3,
2144
+ "names": ["品牌"],
2145
+ "type": "str",
2146
+ "format": "text",
2147
+ "isKeyword": true
2148
+ }
2149
+ ],
2150
+ "dimensionTables": [
2151
+ {
2152
+ "uid": "existing-dim",
2153
+ "dimensions": [
2154
+ {
2155
+ "id": 3,
2156
+ "field": "name"
2157
+ }
2158
+ ]
2159
+ }
2160
+ ]
2161
+ },
2162
+ "errorCode": "INVALID_PLAN"
2163
+ }
2164
+ ],
2165
+ "roundTrip": {
2166
+ "rawModel": {
2167
+ "uid": "existing-model",
2168
+ "table": "public.sales",
2169
+ "where": "status = 1",
2170
+ "defaultTimeSeries": 1,
2171
+ "timeSeries": [
2172
+ {
2173
+ "id": 1,
2174
+ "field": "biz_date"
2175
+ }
2176
+ ],
2177
+ "dimensions": [
2178
+ {
2179
+ "id": 3,
2180
+ "sql": "lower(brand)",
2181
+ "joinType": "left",
2182
+ "joinFields": [
2183
+ {
2184
+ "src": "brand_id",
2185
+ "dst": "id"
2186
+ }
2187
+ ]
2188
+ }
2189
+ ],
2190
+ "measures": [
2191
+ {
2192
+ "id": 2,
2193
+ "sql": "sum(amount)",
2194
+ "type": "float",
2195
+ "format": "float"
2196
+ }
2197
+ ],
2198
+ "dimensionTables": [],
2199
+ "mark": "销售主题",
2200
+ "description": "保留原配置",
2201
+ "disable": false,
2202
+ "weight": 2,
2203
+ "nodes": [
2204
+ {
2205
+ "id": "fact",
2206
+ "data": {
2207
+ "sql": "MmMWNnWX5EMJRUR"
2208
+ },
2209
+ "position": {
2210
+ "x": 10,
2211
+ "y": 20
2212
+ }
2213
+ }
2214
+ ],
2215
+ "edges": [
2216
+ {
2217
+ "id": "edge",
2218
+ "source": "fact",
2219
+ "target": "dim"
2220
+ }
2221
+ ]
2222
+ },
2223
+ "editablePlan": {
2224
+ "uid": "existing-model",
2225
+ "table": "public.sales",
2226
+ "where": "status = 1",
2227
+ "timeSeries": [
2228
+ {
2229
+ "id": 1,
2230
+ "field": "biz_date",
2231
+ "default": true
2232
+ }
2233
+ ],
2234
+ "dimensions": [
2235
+ {
2236
+ "id": 3,
2237
+ "sql": "lower(brand)",
2238
+ "joinType": "left",
2239
+ "joinFields": [
2240
+ {
2241
+ "src": "brand_id",
2242
+ "dst": "id"
2243
+ }
2244
+ ]
2245
+ }
2246
+ ],
2247
+ "measures": [
2248
+ {
2249
+ "id": 2,
2250
+ "sql": "sum(amount)",
2251
+ "type": "float",
2252
+ "format": "float"
2253
+ }
2254
+ ],
2255
+ "dimensionTables": [],
2256
+ "encodedLayout": {
2257
+ "nodes": [
2258
+ {
2259
+ "id": "fact",
2260
+ "data": {
2261
+ "sql": "MmMWNnWX5EMJRUR"
2262
+ },
2263
+ "position": {
2264
+ "x": 10,
2265
+ "y": 20
2266
+ }
2267
+ }
2268
+ ],
2269
+ "edges": [
2270
+ {
2271
+ "id": "edge",
2272
+ "source": "fact",
2273
+ "target": "dim"
2274
+ }
2275
+ ]
2276
+ },
2277
+ "modelOptions": {
2278
+ "mark": "销售主题",
2279
+ "description": "保留原配置",
2280
+ "disable": false,
2281
+ "weight": 2
2282
+ }
2283
+ },
2284
+ "catalog": {
2285
+ "models": [],
2286
+ "timeSeries": [
2287
+ {
2288
+ "id": 1,
2289
+ "names": ["业务日期"],
2290
+ "type": "date",
2291
+ "format": "date",
2292
+ "timeUnit": 3
2293
+ }
2294
+ ],
2295
+ "measures": [
2296
+ {
2297
+ "id": 2,
2298
+ "names": ["销售额"],
2299
+ "cumulative": false
2300
+ },
2301
+ {
2302
+ "id": 9,
2303
+ "names": ["利润率"],
2304
+ "formula": "[m2]/[m3]"
2305
+ }
2306
+ ],
2307
+ "dimensions": [
2308
+ {
2309
+ "id": 3,
2310
+ "names": ["品牌"],
2311
+ "type": "str",
2312
+ "format": "text",
2313
+ "isKeyword": true
2314
+ }
2315
+ ],
2316
+ "dimensionTables": [
2317
+ {
2318
+ "uid": "existing-dim",
2319
+ "dimensions": [
2320
+ {
2321
+ "id": 3,
2322
+ "field": "name"
2323
+ }
2324
+ ]
2325
+ }
2326
+ ]
2327
+ },
2328
+ "payload": {
2329
+ "model": {
2330
+ "mark": "销售主题",
2331
+ "description": "保留原配置",
2332
+ "disable": false,
2333
+ "weight": 2,
2334
+ "nodes": [
2335
+ {
2336
+ "id": "fact",
2337
+ "data": {
2338
+ "sql": "MmMWNnWX5EMJRUR"
2339
+ },
2340
+ "position": {
2341
+ "x": 10,
2342
+ "y": 20
2343
+ }
2344
+ }
2345
+ ],
2346
+ "edges": [
2347
+ {
2348
+ "id": "edge",
2349
+ "source": "fact",
2350
+ "target": "dim"
2351
+ }
2352
+ ],
2353
+ "uid": "existing-model",
2354
+ "table": "public.sales",
2355
+ "where": "M2MShGZIZleJREMn1UU",
2356
+ "timeSeries": [
2357
+ {
2358
+ "id": 1,
2359
+ "field": "biz_date"
2360
+ }
2361
+ ],
2362
+ "dimensions": [
2363
+ {
2364
+ "id": 3,
2365
+ "sql": "gYHlzMahVSvllbKhmYtFFc",
2366
+ "joinType": "left",
2367
+ "joinFields": [
2368
+ {
2369
+ "src": "klbKhmYtJlZhdVU",
2370
+ "dst": "hdVU"
2371
+ }
2372
+ ]
2373
+ }
2374
+ ],
2375
+ "measures": [
2376
+ {
2377
+ "id": 2,
2378
+ "sql": "jNjV0t0RGRnYzYVdkN0a",
2379
+ "type": "float",
2380
+ "format": "float"
2381
+ }
2382
+ ],
2383
+ "dimensionTables": [],
2384
+ "defaultTimeSeries": 1
2385
+ }
2386
+ }
2387
+ },
2388
+ "grouping": {
2389
+ "tables": [
2390
+ {
2391
+ "tableName": "a.sales2025"
2392
+ },
2393
+ {
2394
+ "tableName": "a.sales2026"
2395
+ },
2396
+ {
2397
+ "tableName": "b.customer1"
2398
+ },
2399
+ {
2400
+ "tableName": "a.order1"
2401
+ },
2402
+ {}
2403
+ ],
2404
+ "sampleLimit": 1,
2405
+ "groups": [
2406
+ {
2407
+ "series": "a.sales#",
2408
+ "count": 2,
2409
+ "samples": ["a.sales2025"]
2410
+ },
2411
+ {
2412
+ "series": "a.order#",
2413
+ "count": 1,
2414
+ "samples": ["a.order1"]
2415
+ },
2416
+ {
2417
+ "series": "b.customer#",
2418
+ "count": 1,
2419
+ "samples": ["b.customer1"]
2420
+ }
2421
+ ]
2422
+ }
2423
+ }