@malloydata/malloy 0.0.24-dev230224184907 → 0.0.24-dev230228224434

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 (310) hide show
  1. package/dist/connection_utils.js +10 -10
  2. package/dist/dialect/dialect.d.ts +2 -2
  3. package/dist/dialect/dialect.js +13 -13
  4. package/dist/dialect/dialect_map.d.ts +1 -1
  5. package/dist/dialect/duckdb.d.ts +3 -3
  6. package/dist/dialect/duckdb.js +44 -44
  7. package/dist/dialect/index.d.ts +6 -6
  8. package/dist/dialect/postgres.d.ts +3 -3
  9. package/dist/dialect/postgres.js +46 -46
  10. package/dist/dialect/standardsql.d.ts +4 -4
  11. package/dist/dialect/standardsql.js +51 -51
  12. package/dist/index.d.ts +10 -10
  13. package/dist/lang/ast/ast-utils.d.ts +1 -1
  14. package/dist/lang/ast/ast-utils.js +3 -3
  15. package/dist/lang/ast/elements/define-query.d.ts +3 -3
  16. package/dist/lang/ast/elements/define-query.js +6 -6
  17. package/dist/lang/ast/elements/define-source.d.ts +4 -4
  18. package/dist/lang/ast/elements/define-source.js +8 -8
  19. package/dist/lang/ast/elements/import-statement.d.ts +2 -2
  20. package/dist/lang/ast/elements/import-statement.js +7 -7
  21. package/dist/lang/ast/elements/pipeline-desc.d.ts +5 -5
  22. package/dist/lang/ast/elements/pipeline-desc.js +11 -11
  23. package/dist/lang/ast/elements/refined-source.d.ts +4 -4
  24. package/dist/lang/ast/elements/refined-source.js +6 -6
  25. package/dist/lang/ast/elements/source.d.ts +3 -3
  26. package/dist/lang/ast/elements/source.js +1 -1
  27. package/dist/lang/ast/error-factory.d.ts +1 -1
  28. package/dist/lang/ast/error-factory.js +15 -15
  29. package/dist/lang/ast/executors/index-executor.d.ts +7 -7
  30. package/dist/lang/ast/executors/index-executor.js +4 -4
  31. package/dist/lang/ast/executors/project-executor.d.ts +5 -5
  32. package/dist/lang/ast/executors/project-executor.js +2 -2
  33. package/dist/lang/ast/executors/reduce-executor.d.ts +8 -8
  34. package/dist/lang/ast/executors/reduce-executor.js +5 -5
  35. package/dist/lang/ast/expressions/apply.d.ts +2 -2
  36. package/dist/lang/ast/expressions/apply.js +1 -1
  37. package/dist/lang/ast/expressions/binary-boolean.d.ts +3 -3
  38. package/dist/lang/ast/expressions/binary-boolean.js +6 -6
  39. package/dist/lang/ast/expressions/binary-numeric.d.ts +3 -3
  40. package/dist/lang/ast/expressions/binary-numeric.js +2 -2
  41. package/dist/lang/ast/expressions/boolean.d.ts +4 -4
  42. package/dist/lang/ast/expressions/boolean.js +2 -2
  43. package/dist/lang/ast/expressions/constant-sub-expression.d.ts +4 -4
  44. package/dist/lang/ast/expressions/constant-sub-expression.js +12 -12
  45. package/dist/lang/ast/expressions/expr-add-sub.d.ts +2 -2
  46. package/dist/lang/ast/expressions/expr-add-sub.js +1 -1
  47. package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +5 -5
  48. package/dist/lang/ast/expressions/expr-aggregate-function.js +15 -15
  49. package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +6 -6
  50. package/dist/lang/ast/expressions/expr-alternation-tree.js +6 -6
  51. package/dist/lang/ast/expressions/expr-asymmetric.d.ts +5 -5
  52. package/dist/lang/ast/expressions/expr-asymmetric.js +3 -3
  53. package/dist/lang/ast/expressions/expr-avg.d.ts +3 -3
  54. package/dist/lang/ast/expressions/expr-avg.js +2 -2
  55. package/dist/lang/ast/expressions/expr-cast.d.ts +4 -4
  56. package/dist/lang/ast/expressions/expr-cast.js +6 -6
  57. package/dist/lang/ast/expressions/expr-compare.d.ts +5 -5
  58. package/dist/lang/ast/expressions/expr-compare.js +9 -9
  59. package/dist/lang/ast/expressions/expr-count-distinct.d.ts +2 -2
  60. package/dist/lang/ast/expressions/expr-count-distinct.js +1 -1
  61. package/dist/lang/ast/expressions/expr-count.d.ts +4 -4
  62. package/dist/lang/ast/expressions/expr-count.js +10 -10
  63. package/dist/lang/ast/expressions/expr-filter.d.ts +4 -4
  64. package/dist/lang/ast/expressions/expr-filter.js +13 -13
  65. package/dist/lang/ast/expressions/expr-func.d.ts +3 -3
  66. package/dist/lang/ast/expressions/expr-func.js +8 -8
  67. package/dist/lang/ast/expressions/expr-granular-time.d.ts +4 -4
  68. package/dist/lang/ast/expressions/expr-granular-time.js +17 -17
  69. package/dist/lang/ast/expressions/expr-id-reference.d.ts +4 -4
  70. package/dist/lang/ast/expressions/expr-id-reference.js +11 -11
  71. package/dist/lang/ast/expressions/expr-logical-op.d.ts +2 -2
  72. package/dist/lang/ast/expressions/expr-logical-op.js +1 -1
  73. package/dist/lang/ast/expressions/expr-max.d.ts +4 -4
  74. package/dist/lang/ast/expressions/expr-max.js +1 -1
  75. package/dist/lang/ast/expressions/expr-min.d.ts +4 -4
  76. package/dist/lang/ast/expressions/expr-min.js +1 -1
  77. package/dist/lang/ast/expressions/expr-minus.d.ts +3 -3
  78. package/dist/lang/ast/expressions/expr-minus.js +5 -5
  79. package/dist/lang/ast/expressions/expr-mul-div.d.ts +2 -2
  80. package/dist/lang/ast/expressions/expr-mul-div.js +1 -1
  81. package/dist/lang/ast/expressions/expr-not.d.ts +4 -4
  82. package/dist/lang/ast/expressions/expr-not.js +3 -3
  83. package/dist/lang/ast/expressions/expr-now.d.ts +3 -3
  84. package/dist/lang/ast/expressions/expr-now.js +8 -8
  85. package/dist/lang/ast/expressions/expr-null.d.ts +2 -2
  86. package/dist/lang/ast/expressions/expr-null.js +4 -4
  87. package/dist/lang/ast/expressions/expr-number.d.ts +3 -3
  88. package/dist/lang/ast/expressions/expr-number.js +2 -2
  89. package/dist/lang/ast/expressions/expr-parens.d.ts +3 -3
  90. package/dist/lang/ast/expressions/expr-parens.js +3 -3
  91. package/dist/lang/ast/expressions/expr-regex.d.ts +2 -2
  92. package/dist/lang/ast/expressions/expr-regex.js +4 -4
  93. package/dist/lang/ast/expressions/expr-string.d.ts +3 -3
  94. package/dist/lang/ast/expressions/expr-string.js +8 -8
  95. package/dist/lang/ast/expressions/expr-sum.d.ts +3 -3
  96. package/dist/lang/ast/expressions/expr-sum.js +2 -2
  97. package/dist/lang/ast/expressions/expr-time-extract.d.ts +4 -4
  98. package/dist/lang/ast/expressions/expr-time-extract.js +30 -30
  99. package/dist/lang/ast/expressions/expr-time.d.ts +4 -4
  100. package/dist/lang/ast/expressions/expr-time.js +10 -10
  101. package/dist/lang/ast/expressions/expr-ungroup.d.ts +6 -6
  102. package/dist/lang/ast/expressions/expr-ungroup.js +13 -13
  103. package/dist/lang/ast/expressions/for-range.d.ts +4 -4
  104. package/dist/lang/ast/expressions/for-range.js +17 -17
  105. package/dist/lang/ast/expressions/granular-literal.d.ts +4 -4
  106. package/dist/lang/ast/expressions/granular-literal.js +34 -34
  107. package/dist/lang/ast/expressions/partial-compare.d.ts +4 -4
  108. package/dist/lang/ast/expressions/partial-compare.js +4 -4
  109. package/dist/lang/ast/expressions/pick-when.d.ts +4 -4
  110. package/dist/lang/ast/expressions/pick-when.js +32 -32
  111. package/dist/lang/ast/expressions/range.d.ts +3 -3
  112. package/dist/lang/ast/expressions/range.js +20 -20
  113. package/dist/lang/ast/expressions/time-frame.d.ts +2 -2
  114. package/dist/lang/ast/expressions/time-frame.js +3 -3
  115. package/dist/lang/ast/expressions/top-by.d.ts +4 -4
  116. package/dist/lang/ast/expressions/top-by.js +5 -5
  117. package/dist/lang/ast/expressions/unary.d.ts +1 -1
  118. package/dist/lang/ast/expressions/unary.js +1 -1
  119. package/dist/lang/ast/expressions/utils.d.ts +2 -2
  120. package/dist/lang/ast/expressions/utils.js +6 -6
  121. package/dist/lang/ast/field-space/column-space-field.d.ts +3 -3
  122. package/dist/lang/ast/field-space/dynamic-space.d.ts +7 -7
  123. package/dist/lang/ast/field-space/dynamic-space.js +2 -2
  124. package/dist/lang/ast/field-space/field-definition-value.d.ts +5 -5
  125. package/dist/lang/ast/field-space/index-field-space.d.ts +3 -3
  126. package/dist/lang/ast/field-space/index-field-space.js +4 -4
  127. package/dist/lang/ast/field-space/join-space-field.d.ts +3 -3
  128. package/dist/lang/ast/field-space/project-field-space.d.ts +2 -2
  129. package/dist/lang/ast/field-space/project-field-space.js +5 -5
  130. package/dist/lang/ast/field-space/query-field-struct.d.ts +3 -3
  131. package/dist/lang/ast/field-space/query-field-struct.js +1 -1
  132. package/dist/lang/ast/field-space/query-space-field.d.ts +4 -4
  133. package/dist/lang/ast/field-space/query-space-field.js +1 -1
  134. package/dist/lang/ast/field-space/query-spaces.d.ts +11 -11
  135. package/dist/lang/ast/field-space/query-spaces.js +8 -8
  136. package/dist/lang/ast/field-space/reference-field.d.ts +5 -5
  137. package/dist/lang/ast/field-space/reference-field.js +1 -1
  138. package/dist/lang/ast/field-space/refined-space.d.ts +4 -4
  139. package/dist/lang/ast/field-space/refined-space.js +2 -2
  140. package/dist/lang/ast/field-space/rename-space-field.d.ts +3 -3
  141. package/dist/lang/ast/field-space/rename-space-field.js +2 -2
  142. package/dist/lang/ast/field-space/static-space.d.ts +7 -7
  143. package/dist/lang/ast/field-space/static-space.js +12 -12
  144. package/dist/lang/ast/field-space/struct-space-field-base.d.ts +4 -4
  145. package/dist/lang/ast/field-space/struct-space-field-base.js +1 -1
  146. package/dist/lang/ast/field-space/wild-space-field.d.ts +4 -4
  147. package/dist/lang/ast/field-space/wild-space-field.js +1 -1
  148. package/dist/lang/ast/fragtype-utils.d.ts +1 -1
  149. package/dist/lang/ast/fragtype-utils.js +15 -15
  150. package/dist/lang/ast/index.d.ts +90 -90
  151. package/dist/lang/ast/parameters/constant-parameter.d.ts +3 -3
  152. package/dist/lang/ast/parameters/constant-parameter.js +10 -10
  153. package/dist/lang/ast/parameters/has-parameter.d.ts +3 -3
  154. package/dist/lang/ast/parameters/has-parameter.js +7 -7
  155. package/dist/lang/ast/query-elements/anonymous-query.d.ts +3 -3
  156. package/dist/lang/ast/query-elements/anonymous-query.js +2 -2
  157. package/dist/lang/ast/query-elements/existing-query.d.ts +4 -4
  158. package/dist/lang/ast/query-elements/existing-query.js +10 -10
  159. package/dist/lang/ast/query-elements/full-query.d.ts +4 -4
  160. package/dist/lang/ast/query-elements/full-query.js +10 -10
  161. package/dist/lang/ast/query-elements/query-head-struct.d.ts +2 -2
  162. package/dist/lang/ast/query-elements/query-head-struct.js +2 -2
  163. package/dist/lang/ast/query-items/field-declaration.d.ts +6 -6
  164. package/dist/lang/ast/query-items/field-declaration.js +14 -14
  165. package/dist/lang/ast/query-items/field-references.d.ts +6 -6
  166. package/dist/lang/ast/query-items/field-references.js +9 -9
  167. package/dist/lang/ast/query-properties/aggregate.d.ts +2 -2
  168. package/dist/lang/ast/query-properties/aggregate.js +1 -1
  169. package/dist/lang/ast/query-properties/declare-fields.d.ts +2 -2
  170. package/dist/lang/ast/query-properties/declare-fields.js +1 -1
  171. package/dist/lang/ast/query-properties/dimmensions.d.ts +2 -2
  172. package/dist/lang/ast/query-properties/dimmensions.js +1 -1
  173. package/dist/lang/ast/query-properties/filters.d.ts +4 -4
  174. package/dist/lang/ast/query-properties/filters.js +16 -16
  175. package/dist/lang/ast/query-properties/group-by.d.ts +2 -2
  176. package/dist/lang/ast/query-properties/group-by.js +1 -1
  177. package/dist/lang/ast/query-properties/indexing.d.ts +3 -3
  178. package/dist/lang/ast/query-properties/indexing.js +3 -3
  179. package/dist/lang/ast/query-properties/joins.d.ts +6 -6
  180. package/dist/lang/ast/query-properties/joins.js +27 -27
  181. package/dist/lang/ast/query-properties/limit.d.ts +1 -1
  182. package/dist/lang/ast/query-properties/limit.js +1 -1
  183. package/dist/lang/ast/query-properties/measures.d.ts +2 -2
  184. package/dist/lang/ast/query-properties/measures.js +1 -1
  185. package/dist/lang/ast/query-properties/nest-reference.d.ts +2 -2
  186. package/dist/lang/ast/query-properties/nest-reference.js +1 -1
  187. package/dist/lang/ast/query-properties/nest.d.ts +7 -7
  188. package/dist/lang/ast/query-properties/nest.js +7 -7
  189. package/dist/lang/ast/query-properties/nests.d.ts +2 -2
  190. package/dist/lang/ast/query-properties/nests.js +1 -1
  191. package/dist/lang/ast/query-properties/ordering.d.ts +3 -3
  192. package/dist/lang/ast/query-properties/ordering.js +6 -6
  193. package/dist/lang/ast/query-properties/project-statement.d.ts +2 -2
  194. package/dist/lang/ast/query-properties/project-statement.js +1 -1
  195. package/dist/lang/ast/query-properties/qop-desc.d.ts +7 -7
  196. package/dist/lang/ast/query-properties/qop-desc.js +20 -20
  197. package/dist/lang/ast/query-properties/sampling.d.ts +2 -2
  198. package/dist/lang/ast/query-properties/sampling.js +1 -1
  199. package/dist/lang/ast/query-properties/top.d.ts +4 -4
  200. package/dist/lang/ast/query-properties/top.js +5 -5
  201. package/dist/lang/ast/source-properties/field-list-edit.d.ts +4 -4
  202. package/dist/lang/ast/source-properties/field-list-edit.js +2 -2
  203. package/dist/lang/ast/source-properties/primary-key.d.ts +2 -2
  204. package/dist/lang/ast/source-properties/primary-key.js +2 -2
  205. package/dist/lang/ast/source-properties/renames.d.ts +2 -2
  206. package/dist/lang/ast/source-properties/renames.js +3 -3
  207. package/dist/lang/ast/source-properties/turtles.d.ts +2 -2
  208. package/dist/lang/ast/source-properties/turtles.js +1 -1
  209. package/dist/lang/ast/sources/named-source.d.ts +4 -4
  210. package/dist/lang/ast/sources/named-source.js +5 -5
  211. package/dist/lang/ast/sources/query-source.d.ts +3 -3
  212. package/dist/lang/ast/sources/query-source.js +3 -3
  213. package/dist/lang/ast/sources/sql-source.d.ts +2 -2
  214. package/dist/lang/ast/sources/sql-source.js +2 -2
  215. package/dist/lang/ast/sources/table-source.d.ts +2 -2
  216. package/dist/lang/ast/sources/table-source.js +7 -7
  217. package/dist/lang/ast/space-seed.d.ts +2 -2
  218. package/dist/lang/ast/space-seed.js +1 -1
  219. package/dist/lang/ast/sql-elements/sql-statement.d.ts +4 -4
  220. package/dist/lang/ast/sql-elements/sql-statement.js +9 -9
  221. package/dist/lang/ast/sql-elements/sql-string.d.ts +3 -3
  222. package/dist/lang/ast/sql-elements/sql-string.js +6 -6
  223. package/dist/lang/ast/struct-utils.d.ts +2 -2
  224. package/dist/lang/ast/struct-utils.js +3 -3
  225. package/dist/lang/ast/time-utils.d.ts +6 -6
  226. package/dist/lang/ast/time-utils.js +46 -46
  227. package/dist/lang/ast/types/document-compile-result.d.ts +2 -2
  228. package/dist/lang/ast/types/executor.d.ts +3 -3
  229. package/dist/lang/ast/types/explore-desc.d.ts +2 -2
  230. package/dist/lang/ast/types/explore-desc.js +1 -1
  231. package/dist/lang/ast/types/explore-field.d.ts +3 -3
  232. package/dist/lang/ast/types/expr-result.d.ts +2 -2
  233. package/dist/lang/ast/types/expr-value.d.ts +2 -2
  234. package/dist/lang/ast/types/expression-def.d.ts +4 -4
  235. package/dist/lang/ast/types/expression-def.js +86 -86
  236. package/dist/lang/ast/types/field-collection-member.d.ts +3 -3
  237. package/dist/lang/ast/types/field-decl.d.ts +5 -5
  238. package/dist/lang/ast/types/field-space.d.ts +5 -5
  239. package/dist/lang/ast/types/field-space.js +1 -1
  240. package/dist/lang/ast/types/granular-result.d.ts +3 -3
  241. package/dist/lang/ast/types/granular-result.js +1 -1
  242. package/dist/lang/ast/types/lookup-result.d.ts +1 -1
  243. package/dist/lang/ast/types/malloy-element.d.ts +6 -6
  244. package/dist/lang/ast/types/malloy-element.js +49 -49
  245. package/dist/lang/ast/types/model-entry.d.ts +1 -1
  246. package/dist/lang/ast/types/name-space.d.ts +1 -1
  247. package/dist/lang/ast/types/nested-query.d.ts +2 -2
  248. package/dist/lang/ast/types/op-desc.d.ts +2 -2
  249. package/dist/lang/ast/types/query-comp.d.ts +1 -1
  250. package/dist/lang/ast/types/query-element.d.ts +3 -3
  251. package/dist/lang/ast/types/query-item.d.ts +4 -4
  252. package/dist/lang/ast/types/query-property.d.ts +15 -15
  253. package/dist/lang/ast/types/source-property.d.ts +8 -8
  254. package/dist/lang/ast/types/space-entry.d.ts +2 -2
  255. package/dist/lang/ast/types/space-field.d.ts +4 -4
  256. package/dist/lang/ast/types/space-field.js +4 -4
  257. package/dist/lang/ast/types/space-param.d.ts +4 -4
  258. package/dist/lang/ast/types/space-param.js +4 -4
  259. package/dist/lang/ast/types/time-result.d.ts +2 -2
  260. package/dist/lang/ast/types/turtle-headed-pipe.d.ts +2 -2
  261. package/dist/lang/ast/types/turtle-headed-pipe.js +1 -1
  262. package/dist/lang/ast/types/type-desc.d.ts +3 -3
  263. package/dist/lang/field-utils.d.ts +1 -1
  264. package/dist/lang/field-utils.js +4 -4
  265. package/dist/lang/index.d.ts +10 -10
  266. package/dist/lang/malloy-to-ast.d.ts +8 -8
  267. package/dist/lang/malloy-to-ast.js +68 -68
  268. package/dist/lang/parse-error-handler.d.ts +3 -3
  269. package/dist/lang/parse-error-handler.js +4 -4
  270. package/dist/lang/parse-log.d.ts +2 -2
  271. package/dist/lang/parse-log.js +1 -1
  272. package/dist/lang/parse-malloy.d.ts +7 -7
  273. package/dist/lang/parse-malloy.js +81 -81
  274. package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +2 -2
  275. package/dist/lang/parse-tree-walkers/document-completion-walker.js +38 -38
  276. package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +1 -1
  277. package/dist/lang/parse-tree-walkers/document-help-context-walker.js +14 -14
  278. package/dist/lang/parse-tree-walkers/document-highlight-walker.d.ts +3 -3
  279. package/dist/lang/parse-tree-walkers/document-highlight-walker.js +85 -85
  280. package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +4 -4
  281. package/dist/lang/parse-tree-walkers/document-symbol-walker.js +40 -40
  282. package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +3 -3
  283. package/dist/lang/parse-tree-walkers/explore-query-walker.js +3 -3
  284. package/dist/lang/parse-tree-walkers/find-external-references.d.ts +4 -4
  285. package/dist/lang/parse-tree-walkers/find-external-references.js +2 -2
  286. package/dist/lang/reference-list.d.ts +1 -1
  287. package/dist/lang/test/document-help-context-walker.spec.js +9 -9
  288. package/dist/lang/test/document-symbol-walker.spec.js +32 -32
  289. package/dist/lang/test/field-symbols.spec.js +87 -87
  290. package/dist/lang/test/parse.spec.d.ts +1 -1
  291. package/dist/lang/test/parse.spec.js +768 -768
  292. package/dist/lang/test/test-translator.d.ts +6 -6
  293. package/dist/lang/test/test-translator.js +159 -159
  294. package/dist/lang/translate-response.d.ts +7 -7
  295. package/dist/lang/translate-response.js +1 -1
  296. package/dist/lang/zone.d.ts +5 -5
  297. package/dist/lang/zone.js +8 -8
  298. package/dist/malloy.d.ts +7 -7
  299. package/dist/malloy.js +192 -192
  300. package/dist/model/index.d.ts +2 -2
  301. package/dist/model/malloy_query.d.ts +12 -12
  302. package/dist/model/malloy_query.js +497 -502
  303. package/dist/model/malloy_types.d.ts +68 -68
  304. package/dist/model/malloy_types.js +102 -102
  305. package/dist/model/sql_block.d.ts +1 -1
  306. package/dist/model/sql_block.js +4 -4
  307. package/dist/model/utils.d.ts +1 -1
  308. package/dist/model/utils.js +10 -10
  309. package/dist/runtime_types.d.ts +2 -2
  310. package/package.json +4 -1
@@ -24,18 +24,18 @@
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ErrorFactory = void 0;
26
26
  const theErrorStruct = {
27
- "type": "struct",
28
- "name": "~malformed~",
29
- "dialect": "~malformed~",
30
- "structSource": {
31
- "type": "table",
32
- "tablePath": "//undefined_error_table_path"
27
+ type: 'struct',
28
+ name: '~malformed~',
29
+ dialect: '~malformed~',
30
+ structSource: {
31
+ type: 'table',
32
+ tablePath: '//undefined_error_table_path',
33
33
  },
34
- "structRelationship": {
35
- "type": "basetable",
36
- "connectionName": "//undefined_error_connection"
34
+ structRelationship: {
35
+ type: 'basetable',
36
+ connectionName: '//undefined_error_connection',
37
37
  },
38
- "fields": []
38
+ fields: [],
39
39
  };
40
40
  class ErrorFactory {
41
41
  static get structDef() {
@@ -46,18 +46,18 @@ class ErrorFactory {
46
46
  }
47
47
  static get query() {
48
48
  return {
49
- "structRef": ErrorFactory.structDef,
50
- "pipeline": []
49
+ structRef: ErrorFactory.structDef,
50
+ pipeline: [],
51
51
  };
52
52
  }
53
53
  static get reduceSegment() {
54
- return { "type": "reduce", "fields": [] };
54
+ return { type: 'reduce', fields: [] };
55
55
  }
56
56
  static get projectSegment() {
57
- return { "type": "project", "fields": [] };
57
+ return { type: 'project', fields: [] };
58
58
  }
59
59
  static get indexSegment() {
60
- return { "type": "index", "fields": [] };
60
+ return { type: 'index', fields: [] };
61
61
  }
62
62
  }
63
63
  exports.ErrorFactory = ErrorFactory;
@@ -1,10 +1,10 @@
1
- import { FilterExpression, PipeSegment, Sampling } from "../../../model/malloy_types";
2
- import { FieldName, FieldSpace } from "../types/field-space";
3
- import { Limit } from "../query-properties/limit";
4
- import { IndexFieldSpace } from "../field-space/index-field-space";
5
- import { QueryProperty } from "../types/query-property";
6
- import { Executor } from "../types/executor";
7
- import { QueryInputSpace } from "../field-space/query-spaces";
1
+ import { FilterExpression, PipeSegment, Sampling } from '../../../model/malloy_types';
2
+ import { FieldName, FieldSpace } from '../types/field-space';
3
+ import { Limit } from '../query-properties/limit';
4
+ import { IndexFieldSpace } from '../field-space/index-field-space';
5
+ import { QueryProperty } from '../types/query-property';
6
+ import { Executor } from '../types/executor';
7
+ import { QueryInputSpace } from '../field-space/query-spaces';
8
8
  export declare class IndexExecutor implements Executor {
9
9
  filters: FilterExpression[];
10
10
  limit?: Limit;
@@ -41,7 +41,7 @@ class IndexExecutor {
41
41
  }
42
42
  else if (qp instanceof limit_1.Limit) {
43
43
  if (this.limit) {
44
- this.limit.log("Ignored, too many limit: statements");
44
+ this.limit.log('Ignored, too many limit: statements');
45
45
  }
46
46
  this.limit = qp;
47
47
  }
@@ -49,7 +49,7 @@ class IndexExecutor {
49
49
  this.resultFS.addMembers(qp.fields.list);
50
50
  if (qp.weightBy) {
51
51
  if (this.indexOn) {
52
- this.indexOn.log("Ignoring previous BY");
52
+ this.indexOn.log('Ignoring previous BY');
53
53
  }
54
54
  this.indexOn = qp.weightBy;
55
55
  }
@@ -58,11 +58,11 @@ class IndexExecutor {
58
58
  this.sample = qp.sampling();
59
59
  }
60
60
  else {
61
- qp.log("Not legal in an index query operation");
61
+ qp.log('Not legal in an index query operation');
62
62
  }
63
63
  }
64
64
  finalize(from) {
65
- if (from && from.type !== "index") {
65
+ if (from && from.type !== 'index') {
66
66
  this.resultFS.log(`Can't refine index with ${from.type}`);
67
67
  return error_factory_1.ErrorFactory.indexSegment;
68
68
  }
@@ -1,8 +1,8 @@
1
- import { PipeSegment } from "../../../model/malloy_types";
2
- import { FieldSpace } from "../types/field-space";
3
- import { ProjectFieldSpace } from "../field-space/project-field-space";
4
- import { QueryProperty } from "../types/query-property";
5
- import { ReduceExecutor } from "./reduce-executor";
1
+ import { PipeSegment } from '../../../model/malloy_types';
2
+ import { FieldSpace } from '../types/field-space';
3
+ import { ProjectFieldSpace } from '../field-space/project-field-space';
4
+ import { QueryProperty } from '../types/query-property';
5
+ import { ReduceExecutor } from './reduce-executor';
6
6
  export declare class ProjectExecutor extends ReduceExecutor {
7
7
  getResultSpace(fs: FieldSpace): ProjectFieldSpace;
8
8
  execute(qp: QueryProperty): void;
@@ -39,10 +39,10 @@ class ProjectExecutor extends reduce_executor_1.ReduceExecutor {
39
39
  if (qp instanceof project_statement_1.ProjectStatement) {
40
40
  this.resultFS.addMembers(qp.list);
41
41
  }
42
- else if ((qp instanceof filters_1.Filter && qp.elementType === "having") ||
42
+ else if ((qp instanceof filters_1.Filter && qp.elementType === 'having') ||
43
43
  qp instanceof measures_1.Measures ||
44
44
  qp instanceof group_by_1.GroupBy) {
45
- qp.log("Illegal statement in a project query operation");
45
+ qp.log('Illegal statement in a project query operation');
46
46
  }
47
47
  else {
48
48
  super.execute(qp);
@@ -1,11 +1,11 @@
1
- import { FilterExpression, PipeSegment, QuerySegment } from "../../../model/malloy_types";
2
- import { FieldSpace } from "../types/field-space";
3
- import { Ordering } from "../query-properties/ordering";
4
- import { Top } from "../query-properties/top";
5
- import { QueryProperty } from "../types/query-property";
6
- import { Executor } from "../types/executor";
7
- import { QueryInputSpace, QuerySpace } from "../field-space/query-spaces";
8
- import { DynamicSpace } from "../field-space/dynamic-space";
1
+ import { FilterExpression, PipeSegment, QuerySegment } from '../../../model/malloy_types';
2
+ import { FieldSpace } from '../types/field-space';
3
+ import { Ordering } from '../query-properties/ordering';
4
+ import { Top } from '../query-properties/top';
5
+ import { QueryProperty } from '../types/query-property';
6
+ import { Executor } from '../types/executor';
7
+ import { QueryInputSpace, QuerySpace } from '../field-space/query-spaces';
8
+ import { DynamicSpace } from '../field-space/dynamic-space';
9
9
  export declare class ReduceExecutor implements Executor {
10
10
  inputFS: QueryInputSpace;
11
11
  resultFS: QuerySpace;
@@ -59,14 +59,14 @@ class ReduceExecutor {
59
59
  }
60
60
  else if (qp instanceof top_1.Top) {
61
61
  if (this.limit) {
62
- qp.log("Query operation already limited");
62
+ qp.log('Query operation already limited');
63
63
  }
64
64
  else {
65
65
  this.limit = qp.limit;
66
66
  }
67
67
  if (qp.by) {
68
68
  if (this.order) {
69
- qp.log("Query operation is already sorted");
69
+ qp.log('Query operation is already sorted');
70
70
  }
71
71
  else {
72
72
  this.order = qp;
@@ -75,7 +75,7 @@ class ReduceExecutor {
75
75
  }
76
76
  else if (qp instanceof limit_1.Limit) {
77
77
  if (this.limit) {
78
- qp.log("Query operation already limited");
78
+ qp.log('Query operation already limited');
79
79
  }
80
80
  else {
81
81
  this.limit = qp.limit;
@@ -83,7 +83,7 @@ class ReduceExecutor {
83
83
  }
84
84
  else if (qp instanceof ordering_1.Ordering) {
85
85
  if (this.order) {
86
- qp.log("Query operation already sorted");
86
+ qp.log('Query operation already sorted');
87
87
  }
88
88
  else {
89
89
  this.order = qp;
@@ -96,7 +96,7 @@ class ReduceExecutor {
96
96
  }
97
97
  }
98
98
  refineFrom(from, to) {
99
- if (from && from.type !== "index") {
99
+ if (from && from.type !== 'index') {
100
100
  if (!this.order) {
101
101
  if (from.orderBy) {
102
102
  to.orderBy = from.orderBy;
@@ -1,5 +1,5 @@
1
- import { ExprCompare } from "./expr-compare";
2
- import { ExpressionDef } from "../types/expression-def";
1
+ import { ExprCompare } from './expr-compare';
2
+ import { ExpressionDef } from '../types/expression-def';
3
3
  export declare class Apply extends ExprCompare {
4
4
  readonly left: ExpressionDef;
5
5
  readonly right: ExpressionDef;
@@ -30,7 +30,7 @@ class Apply extends expr_compare_1.ExprCompare {
30
30
  super(left, comparison_1.Comparison.EqualTo, right);
31
31
  this.left = left;
32
32
  this.right = right;
33
- this.elementType = "apply";
33
+ this.elementType = 'apply';
34
34
  }
35
35
  }
36
36
  exports.Apply = Apply;
@@ -1,6 +1,6 @@
1
- import { ExprValue } from "../types/expr-value";
2
- import { ExpressionDef } from "../types/expression-def";
3
- import { FieldSpace } from "../types/field-space";
1
+ import { ExprValue } from '../types/expr-value';
2
+ import { ExpressionDef } from '../types/expression-def';
3
+ import { FieldSpace } from '../types/field-space';
4
4
  export declare abstract class BinaryBoolean<opType extends string> extends ExpressionDef {
5
5
  readonly left: ExpressionDef;
6
6
  readonly op: opType;
@@ -30,11 +30,11 @@ const expression_def_1 = require("../types/expression-def");
30
30
  const utils_1 = require("./utils");
31
31
  class BinaryBoolean extends expression_def_1.ExpressionDef {
32
32
  constructor(left, op, right) {
33
- super({ "left": left, "right": right });
33
+ super({ left: left, right: right });
34
34
  this.left = left;
35
35
  this.op = op;
36
36
  this.right = right;
37
- this.elementType = "abstract boolean binary";
37
+ this.elementType = 'abstract boolean binary';
38
38
  this.legalChildTypes = [fragtype_utils_1.FT.boolT];
39
39
  }
40
40
  getExpression(fs) {
@@ -42,12 +42,12 @@ class BinaryBoolean extends expression_def_1.ExpressionDef {
42
42
  const right = this.right.getExpression(fs);
43
43
  if (this.typeCheck(this.left, left) && this.typeCheck(this.right, right)) {
44
44
  return {
45
- "dataType": "boolean",
46
- "expressionType": (0, malloy_types_1.maxExpressionType)(left.expressionType, right.expressionType),
47
- "value": (0, utils_1.compose)(left.value, this.op, right.value)
45
+ dataType: 'boolean',
46
+ expressionType: (0, malloy_types_1.maxExpressionType)(left.expressionType, right.expressionType),
47
+ value: (0, utils_1.compose)(left.value, this.op, right.value),
48
48
  };
49
49
  }
50
- return (0, ast_utils_1.errorFor)("logial required boolean");
50
+ return (0, ast_utils_1.errorFor)('logial required boolean');
51
51
  }
52
52
  }
53
53
  exports.BinaryBoolean = BinaryBoolean;
@@ -1,6 +1,6 @@
1
- import { ExprValue } from "../types/expr-value";
2
- import { ExpressionDef } from "../types/expression-def";
3
- import { FieldSpace } from "../types/field-space";
1
+ import { ExprValue } from '../types/expr-value';
2
+ import { ExpressionDef } from '../types/expression-def';
3
+ import { FieldSpace } from '../types/field-space';
4
4
  export declare abstract class BinaryNumeric<opType extends string> extends ExpressionDef {
5
5
  readonly left: ExpressionDef;
6
6
  readonly op: opType;
@@ -27,11 +27,11 @@ const fragtype_utils_1 = require("../fragtype-utils");
27
27
  const expression_def_1 = require("../types/expression-def");
28
28
  class BinaryNumeric extends expression_def_1.ExpressionDef {
29
29
  constructor(left, op, right) {
30
- super({ "left": left, "right": right });
30
+ super({ left: left, right: right });
31
31
  this.left = left;
32
32
  this.op = op;
33
33
  this.right = right;
34
- this.elementType = "numeric binary abstract";
34
+ this.elementType = 'numeric binary abstract';
35
35
  this.legalChildTypes = [fragtype_utils_1.FT.numberT];
36
36
  }
37
37
  getExpression(fs) {
@@ -1,8 +1,8 @@
1
- import { ExprValue } from "../types/expr-value";
2
- import { ExpressionDef } from "../types/expression-def";
1
+ import { ExprValue } from '../types/expr-value';
2
+ import { ExpressionDef } from '../types/expression-def';
3
3
  export declare class Boolean extends ExpressionDef {
4
- readonly value: "true" | "false";
4
+ readonly value: 'true' | 'false';
5
5
  elementType: string;
6
- constructor(value: "true" | "false");
6
+ constructor(value: 'true' | 'false');
7
7
  getExpression(): ExprValue;
8
8
  }
@@ -29,10 +29,10 @@ class Boolean extends expression_def_1.ExpressionDef {
29
29
  constructor(value) {
30
30
  super();
31
31
  this.value = value;
32
- this.elementType = "boolean literal";
32
+ this.elementType = 'boolean literal';
33
33
  }
34
34
  getExpression() {
35
- return { ...fragtype_utils_1.FT.boolT, "value": [this.value] };
35
+ return { ...fragtype_utils_1.FT.boolT, value: [this.value] };
36
36
  }
37
37
  }
38
38
  exports.Boolean = Boolean;
@@ -1,7 +1,7 @@
1
- import { AtomicFieldType } from "../../../model/malloy_types";
2
- import { ExprValue } from "../types/expr-value";
3
- import { ExpressionDef } from "../types/expression-def";
4
- import { FieldSpace } from "../types/field-space";
1
+ import { AtomicFieldType } from '../../../model/malloy_types';
2
+ import { ExprValue } from '../types/expr-value';
3
+ import { ExpressionDef } from '../types/expression-def';
4
+ import { FieldSpace } from '../types/field-space';
5
5
  export declare class ConstantSubExpression extends ExpressionDef {
6
6
  readonly expr: ExpressionDef;
7
7
  elementType: string;
@@ -29,18 +29,18 @@ const expr_compare_1 = require("./expr-compare");
29
29
  const utils_1 = require("./utils");
30
30
  class ConstantFieldSpace {
31
31
  constructor() {
32
- this.type = "fieldSpace";
32
+ this.type = 'fieldSpace';
33
33
  }
34
34
  structDef() {
35
- throw new Error("ConstantFieldSpace cannot generate a structDef");
35
+ throw new Error('ConstantFieldSpace cannot generate a structDef');
36
36
  }
37
37
  emptyStructDef() {
38
- throw new Error("ConstantFieldSpace cannot generate a structDef");
38
+ throw new Error('ConstantFieldSpace cannot generate a structDef');
39
39
  }
40
40
  lookup(_name) {
41
41
  return {
42
- "error": "Only constants allowed in parameter expressions",
43
- "found": undefined
42
+ error: 'Only constants allowed in parameter expressions',
43
+ found: undefined,
44
44
  };
45
45
  }
46
46
  dialectObj() {
@@ -54,21 +54,21 @@ class DollarReference extends expression_def_1.ExpressionDef {
54
54
  constructor(refType) {
55
55
  super();
56
56
  this.refType = refType;
57
- this.elementType = "$";
57
+ this.elementType = '$';
58
58
  }
59
59
  getExpression(_fs) {
60
60
  return {
61
- "dataType": this.refType,
62
- "value": [{ "type": "applyVal" }],
63
- "expressionType": "scalar"
61
+ dataType: this.refType,
62
+ value: [{ type: 'applyVal' }],
63
+ expressionType: 'scalar',
64
64
  };
65
65
  }
66
66
  }
67
67
  class ConstantSubExpression extends expression_def_1.ExpressionDef {
68
68
  constructor(expr) {
69
- super({ "expr": expr });
69
+ super({ expr: expr });
70
70
  this.expr = expr;
71
- this.elementType = "constantExpression";
71
+ this.elementType = 'constantExpression';
72
72
  }
73
73
  getExpression(_fs) {
74
74
  return this.constantValue();
@@ -85,7 +85,7 @@ class ConstantSubExpression extends expression_def_1.ExpressionDef {
85
85
  constantCondition(type) {
86
86
  const compareAndContrast = new expr_compare_1.ExprCompare(new DollarReference(type), comparison_1.Comparison.EqualTo, this.expr);
87
87
  const application = compareAndContrast.getExpression(this.constantFs);
88
- return { ...application, "value": (0, utils_1.compressExpr)(application.value) };
88
+ return { ...application, value: (0, utils_1.compressExpr)(application.value) };
89
89
  }
90
90
  apply(fs, op, expr) {
91
91
  return this.expr.apply(fs, op, expr);
@@ -1,4 +1,4 @@
1
- import { BinaryNumeric } from "./binary-numeric";
2
- export declare class ExprAddSub extends BinaryNumeric<"+" | "-"> {
1
+ import { BinaryNumeric } from './binary-numeric';
2
+ export declare class ExprAddSub extends BinaryNumeric<'+' | '-'> {
3
3
  elementType: string;
4
4
  }
@@ -27,7 +27,7 @@ const binary_numeric_1 = require("./binary-numeric");
27
27
  class ExprAddSub extends binary_numeric_1.BinaryNumeric {
28
28
  constructor() {
29
29
  super(...arguments);
30
- this.elementType = "+-";
30
+ this.elementType = '+-';
31
31
  }
32
32
  }
33
33
  exports.ExprAddSub = ExprAddSub;
@@ -1,8 +1,8 @@
1
- import { FieldReference } from "../query-items/field-references";
2
- import { ExprValue } from "../types/expr-value";
3
- import { ExpressionDef } from "../types/expression-def";
4
- import { FieldSpace } from "../types/field-space";
5
- import { FieldValueType } from "../types/type-desc";
1
+ import { FieldReference } from '../query-items/field-references';
2
+ import { ExprValue } from '../types/expr-value';
3
+ import { ExpressionDef } from '../types/expression-def';
4
+ import { FieldSpace } from '../types/field-space';
5
+ import { FieldValueType } from '../types/type-desc';
6
6
  export declare abstract class ExprAggregateFunction extends ExpressionDef {
7
7
  readonly func: string;
8
8
  elementType: string;
@@ -36,11 +36,11 @@ class ExprAggregateFunction extends expression_def_1.ExpressionDef {
36
36
  this.elementType = func;
37
37
  if (expr) {
38
38
  this.expr = expr;
39
- this.has({ "expr": expr });
39
+ this.has({ expr: expr });
40
40
  }
41
41
  }
42
42
  returns(_forExpression) {
43
- return "number";
43
+ return 'number';
44
44
  }
45
45
  getExpression(fs) {
46
46
  var _a, _b;
@@ -52,9 +52,9 @@ class ExprAggregateFunction extends expression_def_1.ExpressionDef {
52
52
  const footType = sourceFoot.typeDesc();
53
53
  if ((0, malloy_types_1.isAtomicFieldType)(footType.dataType)) {
54
54
  exprVal = {
55
- "dataType": footType.dataType,
56
- "expressionType": footType.expressionType,
57
- "value": [{ "type": "field", "path": this.source.refString }]
55
+ dataType: footType.dataType,
56
+ expressionType: footType.expressionType,
57
+ value: [{ type: 'field', path: this.source.refString }],
58
58
  };
59
59
  structPath = this.source.sourceString;
60
60
  }
@@ -71,28 +71,28 @@ class ExprAggregateFunction extends expression_def_1.ExpressionDef {
71
71
  }
72
72
  }
73
73
  if (exprVal === undefined) {
74
- this.log("Missing expression for aggregate function");
75
- return (0, ast_utils_1.errorFor)("agggregate without expression");
74
+ this.log('Missing expression for aggregate function');
75
+ return (0, ast_utils_1.errorFor)('agggregate without expression');
76
76
  }
77
77
  if (this.typeCheck(this.expr || this, {
78
78
  ...exprVal,
79
- "expressionType": "scalar"
79
+ expressionType: 'scalar',
80
80
  })) {
81
81
  const f = {
82
- "type": "aggregate",
83
- "function": this.func,
84
- "e": exprVal.value
82
+ type: 'aggregate',
83
+ function: this.func,
84
+ e: exprVal.value,
85
85
  };
86
86
  if (structPath) {
87
87
  f.structPath = structPath;
88
88
  }
89
89
  return {
90
- "dataType": this.returns(exprVal),
91
- "expressionType": "aggregate",
92
- "value": [f]
90
+ dataType: this.returns(exprVal),
91
+ expressionType: 'aggregate',
92
+ value: [f],
93
93
  };
94
94
  }
95
- return (0, ast_utils_1.errorFor)("aggregate type check");
95
+ return (0, ast_utils_1.errorFor)('aggregate type check');
96
96
  }
97
97
  }
98
98
  exports.ExprAggregateFunction = ExprAggregateFunction;
@@ -1,10 +1,10 @@
1
- import { ExprValue } from "../types/expr-value";
2
- import { BinaryBoolean } from "./binary-boolean";
3
- import { FieldSpace } from "../types/field-space";
4
- import { ExpressionDef } from "../types/expression-def";
5
- export declare class ExprAlternationTree extends BinaryBoolean<"|" | "&"> {
1
+ import { ExprValue } from '../types/expr-value';
2
+ import { BinaryBoolean } from './binary-boolean';
3
+ import { FieldSpace } from '../types/field-space';
4
+ import { ExpressionDef } from '../types/expression-def';
5
+ export declare class ExprAlternationTree extends BinaryBoolean<'|' | '&'> {
6
6
  elementType: string;
7
- constructor(left: ExpressionDef, op: "|" | "&", right: ExpressionDef);
7
+ constructor(left: ExpressionDef, op: '|' | '&', right: ExpressionDef);
8
8
  apply(fs: FieldSpace, applyOp: string, expr: ExpressionDef): ExprValue;
9
9
  requestExpression(_fs: FieldSpace): ExprValue | undefined;
10
10
  getExpression(_fs: FieldSpace): ExprValue;
@@ -30,24 +30,24 @@ const utils_1 = require("./utils");
30
30
  class ExprAlternationTree extends binary_boolean_1.BinaryBoolean {
31
31
  constructor(left, op, right) {
32
32
  super(left, op, right);
33
- this.elementType = "alternation";
33
+ this.elementType = 'alternation';
34
34
  this.elementType = `${op}alternation${op}`;
35
35
  }
36
36
  apply(fs, applyOp, expr) {
37
37
  const choice1 = this.left.apply(fs, applyOp, expr);
38
38
  const choice2 = this.right.apply(fs, applyOp, expr);
39
39
  return {
40
- "dataType": "boolean",
41
- "expressionType": (0, malloy_types_1.maxExpressionType)(choice1.expressionType, choice2.expressionType),
42
- "value": (0, utils_1.compose)(choice1.value, this.op === "&" ? "and" : "or", choice2.value)
40
+ dataType: 'boolean',
41
+ expressionType: (0, malloy_types_1.maxExpressionType)(choice1.expressionType, choice2.expressionType),
42
+ value: (0, utils_1.compose)(choice1.value, this.op === '&' ? 'and' : 'or', choice2.value),
43
43
  };
44
44
  }
45
45
  requestExpression(_fs) {
46
46
  return undefined;
47
47
  }
48
48
  getExpression(_fs) {
49
- this.log(`Alternation tree has no value`);
50
- return (0, ast_utils_1.errorFor)("no value from alternation tree");
49
+ this.log('Alternation tree has no value');
50
+ return (0, ast_utils_1.errorFor)('no value from alternation tree');
51
51
  }
52
52
  }
53
53
  exports.ExprAlternationTree = ExprAlternationTree;
@@ -1,10 +1,10 @@
1
- import { FieldReference } from "../query-items/field-references";
2
- import { ExpressionDef } from "../types/expression-def";
3
- import { ExprAggregateFunction } from "./expr-aggregate-function";
1
+ import { FieldReference } from '../query-items/field-references';
2
+ import { ExpressionDef } from '../types/expression-def';
3
+ import { ExprAggregateFunction } from './expr-aggregate-function';
4
4
  export declare abstract class ExprAsymmetric extends ExprAggregateFunction {
5
- readonly func: "sum" | "avg";
5
+ readonly func: 'sum' | 'avg';
6
6
  readonly expr: ExpressionDef | undefined;
7
7
  readonly source?: FieldReference | undefined;
8
- constructor(func: "sum" | "avg", expr: ExpressionDef | undefined, source?: FieldReference | undefined);
8
+ constructor(func: 'sum' | 'avg', expr: ExpressionDef | undefined, source?: FieldReference | undefined);
9
9
  defaultFieldName(): undefined | string;
10
10
  }
@@ -30,15 +30,15 @@ class ExprAsymmetric extends expr_aggregate_function_1.ExprAggregateFunction {
30
30
  this.func = func;
31
31
  this.expr = expr;
32
32
  this.source = source;
33
- this.has({ "source": source });
33
+ this.has({ source: source });
34
34
  }
35
35
  defaultFieldName() {
36
36
  if (this.source && this.expr === undefined) {
37
37
  const tag = this.source.nameString;
38
38
  switch (this.func) {
39
- case "sum":
39
+ case 'sum':
40
40
  return `total_${tag}`;
41
- case "avg":
41
+ case 'avg':
42
42
  return `avg_${tag}`;
43
43
  }
44
44
  }
@@ -1,6 +1,6 @@
1
- import { FieldReference } from "../query-items/field-references";
2
- import { ExpressionDef } from "../types/expression-def";
3
- import { ExprAsymmetric } from "./expr-asymmetric";
1
+ import { FieldReference } from '../query-items/field-references';
2
+ import { ExpressionDef } from '../types/expression-def';
3
+ import { ExprAsymmetric } from './expr-asymmetric';
4
4
  export declare class ExprAvg extends ExprAsymmetric {
5
5
  constructor(expr: ExpressionDef | undefined, source?: FieldReference);
6
6
  }
@@ -26,8 +26,8 @@ exports.ExprAvg = void 0;
26
26
  const expr_asymmetric_1 = require("./expr-asymmetric");
27
27
  class ExprAvg extends expr_asymmetric_1.ExprAsymmetric {
28
28
  constructor(expr, source) {
29
- super("avg", expr, source);
30
- this.has({ "source": source });
29
+ super('avg', expr, source);
30
+ this.has({ source: source });
31
31
  }
32
32
  }
33
33
  exports.ExprAvg = ExprAvg;
@@ -1,7 +1,7 @@
1
- import { ExprValue } from "../types/expr-value";
2
- import { ExpressionDef } from "../types/expression-def";
3
- import { FieldSpace } from "../types/field-space";
4
- export declare type CastType = "string" | "number" | "boolean" | "date" | "timestamp";
1
+ import { ExprValue } from '../types/expr-value';
2
+ import { ExpressionDef } from '../types/expression-def';
3
+ import { FieldSpace } from '../types/field-space';
4
+ export declare type CastType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp';
5
5
  export declare function isCastType(t: string): t is CastType;
6
6
  export declare class ExprCast extends ExpressionDef {
7
7
  readonly expr: ExpressionDef;