forked from implydata/plywood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rrollup
executable file
·200 lines (195 loc) · 7.59 KB
/
rrollup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
#!/bin/bash -eu
# Add the version information
export PLYWOOD_VERSION=`node ./extra/get-version.js`
echo "export var version = '$PLYWOOD_VERSION';" > build/version.js
# Full Plywood
cat \
extra/prefix.js \
build/version.js \
build/helper/verboseRequester.js \
build/helper/retryRequester.js \
build/helper/concurrentLimitRequester.js \
build/helper/promiseWhile.js \
build/helper/streamBasics.js \
build/helper/streamConcat.js \
build/helper/utils.js \
build/dialect/baseDialect.js \
build/dialect/mySqlDialect.js \
build/dialect/postgresDialect.js \
build/dialect/druidDialect.js \
build/datatypes/common.js \
build/datatypes/attributeInfo.js \
build/datatypes/range.js \
build/datatypes/numberRange.js \
build/datatypes/timeRange.js \
build/datatypes/stringRange.js \
build/datatypes/set.js \
build/datatypes/dataset.js \
build/datatypes/valueStream.js \
build/expressions/baseExpression.js \
build/expressions/literalExpression.js \
build/expressions/refExpression.js \
build/expressions/externalExpression.js \
\
build/expressions/mixins/hasTimezone.js \
build/expressions/mixins/aggregate.js \
\
build/expressions/absoluteExpression.js \
build/expressions/addExpression.js \
build/expressions/andExpression.js \
build/expressions/applyExpression.js \
build/expressions/averageExpression.js \
build/expressions/cardinalityExpression.js \
build/expressions/castExpression.js \
build/expressions/collectExpression.js \
build/expressions/concatExpression.js \
build/expressions/containsExpression.js \
build/expressions/countExpression.js \
build/expressions/countDistinctExpression.js \
build/expressions/customAggregateExpression.js \
build/expressions/customTransformExpression.js \
build/expressions/divideExpression.js \
build/expressions/extractExpression.js \
build/expressions/fallbackExpression.js \
build/expressions/filterExpression.js \
build/expressions/greaterThanExpression.js \
build/expressions/greaterThanOrEqualExpression.js \
build/expressions/inExpression.js \
build/expressions/isExpression.js \
build/expressions/joinExpression.js \
build/expressions/lengthExpression.js \
build/expressions/lessThanExpression.js \
build/expressions/lessThanOrEqualExpression.js \
build/expressions/indexOfExpression.js \
build/expressions/logExpression.js \
build/expressions/lookupExpression.js \
build/expressions/limitExpression.js \
build/expressions/matchExpression.js \
build/expressions/maxExpression.js \
build/expressions/minExpression.js \
build/expressions/multiplyExpression.js \
build/expressions/notExpression.js \
build/expressions/numberBucketExpression.js \
build/expressions/orExpression.js \
build/expressions/overlapExpression.js \
build/expressions/powerExpression.js \
build/expressions/quantileExpression.js \
build/expressions/selectExpression.js \
build/expressions/sortExpression.js \
build/expressions/splitExpression.js \
build/expressions/substrExpression.js \
build/expressions/subtractExpression.js \
build/expressions/sumExpression.js \
build/expressions/thenExpression.js \
build/expressions/timeBucketExpression.js \
build/expressions/timeFloorExpression.js \
build/expressions/timePartExpression.js \
build/expressions/timeRangeExpression.js \
build/expressions/timeShiftExpression.js \
build/expressions/transformCaseExpression.js \
\
build/external/baseExternal.js \
build/external/utils/druidExpressionBuilder.js \
build/external/utils/druidExtractionFnBuilder.js \
build/external/utils/druidFilterBuilder.js \
build/external/utils/druidHavingFilterBuilder.js \
build/external/utils/druidAggregationBuilder.js \
build/external/sqlExternal.js \
build/external/mySqlExternal.js \
build/external/postgresExternal.js \
build/external/druidSqlExternal.js \
build/external/druidExternal.js \
build/executor/basicExecutor.js \
extra/postfix.js \
| grep -v '^import ' \
| ./node_modules/.bin/f 'l.replace(/^export function ([\w$]+)\(/, "var $1 = exports.$1 = function(")' \
| ./node_modules/.bin/f 'l.replace(/^export var ([\w$]+) =/, "var $1 = exports.$1 =")' \
| ./node_modules/.bin/f 'l.replace(/^export \{ ([\w$]+) \};$/, "exports.$1 = $1;")' \
> build/plywood.js
# Plywood Lite
cat \
extra/prefix.js \
build/version.js \
build/helper/promiseWhile.js \
build/helper/streamBasics.js \
build/helper/streamConcat.js \
build/helper/utils.js \
build/datatypes/common.js \
build/datatypes/attributeInfo.js \
build/datatypes/range.js \
build/datatypes/numberRange.js \
build/datatypes/timeRange.js \
build/datatypes/stringRange.js \
build/datatypes/set.js \
build/datatypes/dataset.js \
build/datatypes/valueStream.js \
build/expressions/baseExpression.js \
build/expressions/literalExpression.js \
build/expressions/refExpression.js \
build/expressions/externalExpression.js \
\
build/expressions/mixins/hasTimezone.js \
build/expressions/mixins/aggregate.js \
\
build/expressions/absoluteExpression.js \
build/expressions/addExpression.js \
build/expressions/andExpression.js \
build/expressions/applyExpression.js \
build/expressions/averageExpression.js \
build/expressions/cardinalityExpression.js \
build/expressions/castExpression.js \
build/expressions/collectExpression.js \
build/expressions/concatExpression.js \
build/expressions/containsExpression.js \
build/expressions/countExpression.js \
build/expressions/countDistinctExpression.js \
build/expressions/customAggregateExpression.js \
build/expressions/customTransformExpression.js \
build/expressions/divideExpression.js \
build/expressions/extractExpression.js \
build/expressions/fallbackExpression.js \
build/expressions/filterExpression.js \
build/expressions/greaterThanExpression.js \
build/expressions/greaterThanOrEqualExpression.js \
build/expressions/inExpression.js \
build/expressions/isExpression.js \
build/expressions/joinExpression.js \
build/expressions/lengthExpression.js \
build/expressions/lessThanExpression.js \
build/expressions/lessThanOrEqualExpression.js \
build/expressions/indexOfExpression.js \
build/expressions/logExpression.js \
build/expressions/lookupExpression.js \
build/expressions/limitExpression.js \
build/expressions/matchExpression.js \
build/expressions/maxExpression.js \
build/expressions/minExpression.js \
build/expressions/multiplyExpression.js \
build/expressions/notExpression.js \
build/expressions/numberBucketExpression.js \
build/expressions/orExpression.js \
build/expressions/overlapExpression.js \
build/expressions/powerExpression.js \
build/expressions/quantileExpression.js \
build/expressions/selectExpression.js \
build/expressions/sortExpression.js \
build/expressions/splitExpression.js \
build/expressions/substrExpression.js \
build/expressions/subtractExpression.js \
build/expressions/sumExpression.js \
build/expressions/thenExpression.js \
build/expressions/timeBucketExpression.js \
build/expressions/timeFloorExpression.js \
build/expressions/timePartExpression.js \
build/expressions/timeRangeExpression.js \
build/expressions/timeShiftExpression.js \
build/expressions/transformCaseExpression.js \
\
build/external/baseExternal.js \
build/executor/basicExecutor.js \
extra/postfix-lite.js \
| grep -v '^import ' \
| ./node_modules/.bin/f 'l.replace(/^export function ([\w$]+)\(/, "var $1 = exports.$1 = function(")' \
| ./node_modules/.bin/f 'l.replace(/^export var ([\w$]+) =/, "var $1 = exports.$1 =")' \
| ./node_modules/.bin/f 'l.replace(/^export \{ ([\w$]+) \};$/, "exports.$1 = $1;")' \
> build/plywood-lite.js