Skip to content

Commit b123c60

Browse files
committed
Merge pull request #5 from apache/master
pull request from apache/master
2 parents 6c6ee12 + 6b78157 commit b123c60

1,581 files changed

Lines changed: 83785 additions & 31858 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ spark-tests.log
5050
streaming-tests.log
5151
dependency-reduced-pom.xml
5252
.ensime
53+
.ensime_cache/
5354
.ensime_lucene
5455
checkpoint
5556
derby.log
@@ -74,3 +75,7 @@ metastore/
7475
warehouse/
7576
TempStatsStore/
7677
sql/hive-thriftserver/test_warehouses
78+
79+
# For R session data
80+
.RHistory
81+
.RData

.rat-excludes

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,8 @@ TAGS
1515
RELEASE
1616
control
1717
docs
18-
docker.properties.template
19-
fairscheduler.xml.template
20-
spark-defaults.conf.template
21-
log4j.properties
22-
log4j.properties.template
23-
metrics.properties
24-
metrics.properties.template
2518
slaves
26-
slaves.template
27-
spark-env.sh
2819
spark-env.cmd
29-
spark-env.sh.template
30-
log4j-defaults.properties
31-
log4j-defaults-repl.properties
3220
bootstrap-tooltip.js
3321
jquery-1.11.1.min.js
3422
d3.min.js

LICENSE

Lines changed: 26 additions & 685 deletions
Large diffs are not rendered by default.

NOTICE

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,3 +572,38 @@ Copyright 2009-2013 The Apache Software Foundation
572572

573573
Apache Avro IPC
574574
Copyright 2009-2013 The Apache Software Foundation
575+
576+
577+
Vis.js
578+
Copyright 2010-2015 Almende B.V.
579+
580+
Vis.js is dual licensed under both
581+
582+
* The Apache 2.0 License
583+
http://www.apache.org/licenses/LICENSE-2.0
584+
585+
and
586+
587+
* The MIT License
588+
http://opensource.org/licenses/MIT
589+
590+
Vis.js may be distributed under either license.
591+
592+
593+
Vis.js uses and redistributes the following third-party libraries:
594+
595+
- component-emitter
596+
https://github.com/component/emitter
597+
The MIT License
598+
599+
- hammer.js
600+
http://hammerjs.github.io/
601+
The MIT License
602+
603+
- moment.js
604+
http://momentjs.com/
605+
The MIT License
606+
607+
- keycharm
608+
https://github.com/AlexDM0/keycharm
609+
The MIT License

R/install-dev.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ set SPARK_HOME=%~dp0..
2525
MKDIR %SPARK_HOME%\R\lib
2626

2727
R.exe CMD INSTALL --library="%SPARK_HOME%\R\lib" %SPARK_HOME%\R\pkg\
28+
29+
rem Zip the SparkR package so that it can be distributed to worker nodes on YARN
30+
pushd %SPARK_HOME%\R\lib
31+
%JAVA_HOME%\bin\jar.exe cfM "%SPARK_HOME%\R\lib\sparkr.zip" SparkR
32+
popd
33+

R/install-dev.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ Rscript -e ' if("devtools" %in% rownames(installed.packages())) { library(devtoo
4242
# Install SparkR to $LIB_DIR
4343
R CMD INSTALL --library=$LIB_DIR $FWDIR/pkg/
4444

45+
# Zip the SparkR package so that it can be distributed to worker nodes on YARN
46+
cd $LIB_DIR
47+
jar cfM "$LIB_DIR/sparkr.zip" SparkR
48+
4549
popd > /dev/null

R/pkg/DESCRIPTION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ Collate:
3333
'mllib.R'
3434
'serialize.R'
3535
'sparkR.R'
36+
'stats.R'
37+
'types.R'
3638
'utils.R'

R/pkg/NAMESPACE

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ export("setJobGroup",
2323
exportClasses("DataFrame")
2424

2525
exportMethods("arrange",
26+
"as.data.frame",
27+
"attach",
2628
"cache",
2729
"collect",
30+
"coltypes",
2831
"columns",
2932
"count",
33+
"cov",
34+
"corr",
3035
"crosstab",
3136
"describe",
3237
"dim",
@@ -38,6 +43,7 @@ exportMethods("arrange",
3843
"fillna",
3944
"filter",
4045
"first",
46+
"freqItems",
4147
"group_by",
4248
"groupBy",
4349
"head",
@@ -61,6 +67,7 @@ exportMethods("arrange",
6167
"repartition",
6268
"sample",
6369
"sample_frac",
70+
"sampleBy",
6471
"saveAsParquetFile",
6572
"saveAsTable",
6673
"saveDF",
@@ -78,6 +85,7 @@ exportMethods("arrange",
7885
"unique",
7986
"unpersist",
8087
"where",
88+
"with",
8189
"withColumn",
8290
"withColumnRenamed",
8391
"write.df")
@@ -90,6 +98,7 @@ exportMethods("%in%",
9098
"add_months",
9199
"alias",
92100
"approxCountDistinct",
101+
"array_contains",
93102
"asc",
94103
"ascii",
95104
"asin",
@@ -104,6 +113,7 @@ exportMethods("%in%",
104113
"cbrt",
105114
"ceil",
106115
"ceiling",
116+
"column",
107117
"concat",
108118
"concat_ws",
109119
"contains",
@@ -113,12 +123,14 @@ exportMethods("%in%",
113123
"count",
114124
"countDistinct",
115125
"crc32",
126+
"cumeDist",
116127
"date_add",
117128
"date_format",
118129
"date_sub",
119130
"datediff",
120131
"dayofmonth",
121132
"dayofyear",
133+
"denseRank",
122134
"desc",
123135
"endsWith",
124136
"exp",
@@ -144,8 +156,11 @@ exportMethods("%in%",
144156
"isNaN",
145157
"isNotNull",
146158
"isNull",
159+
"kurtosis",
160+
"lag",
147161
"last",
148162
"last_day",
163+
"lead",
149164
"least",
150165
"length",
151166
"levenshtein",
@@ -171,17 +186,21 @@ exportMethods("%in%",
171186
"nanvl",
172187
"negate",
173188
"next_day",
189+
"ntile",
174190
"otherwise",
191+
"percentRank",
175192
"pmod",
176193
"quarter",
177194
"rand",
178195
"randn",
196+
"rank",
179197
"regexp_extract",
180198
"regexp_replace",
181199
"reverse",
182200
"rint",
183201
"rlike",
184202
"round",
203+
"rowNumber",
185204
"rpad",
186205
"rtrim",
187206
"second",
@@ -190,12 +209,18 @@ exportMethods("%in%",
190209
"shiftLeft",
191210
"shiftRight",
192211
"shiftRightUnsigned",
212+
"sd",
193213
"sign",
194214
"signum",
195215
"sin",
196216
"sinh",
197217
"size",
218+
"skewness",
219+
"sort_array",
198220
"soundex",
221+
"stddev",
222+
"stddev_pop",
223+
"stddev_samp",
199224
"sqrt",
200225
"startsWith",
201226
"substr",
@@ -214,6 +239,10 @@ exportMethods("%in%",
214239
"unhex",
215240
"unix_timestamp",
216241
"upper",
242+
"var",
243+
"variance",
244+
"var_pop",
245+
"var_samp",
217246
"weekofyear",
218247
"when",
219248
"year")
@@ -224,7 +253,8 @@ exportMethods("agg")
224253
export("sparkRSQL.init",
225254
"sparkRHive.init")
226255

227-
export("cacheTable",
256+
export("as.DataFrame",
257+
"cacheTable",
228258
"clearCache",
229259
"createDataFrame",
230260
"createExternalTable",
@@ -246,4 +276,4 @@ export("structField",
246276
"structType",
247277
"structType.jobj",
248278
"structType.structField",
249-
"print.structType")
279+
"print.structType")

0 commit comments

Comments
 (0)