-
Notifications
You must be signed in to change notification settings - Fork 61
/
rrollup
executable file
·119 lines (117 loc) · 4.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
#!/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/ip.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/ipMatchExpression.js \
build/expressions/ipSearchExpression.js \
build/expressions/ipStringifyExpression.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/mvContainsExpression.js \
build/expressions/mvFilterOnlyExpression.js \
build/expressions/mvOverlapExpression.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/sqlAggregateExpression.js \
build/expressions/sqlRefExpression.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