Skip to content

Commit 8222a0c

Browse files
committed
Merge branch 'master' into SqlHistoryUI
2 parents 5270209 + 9693b0d commit 8222a0c

File tree

1,141 files changed

+52838
-21392
lines changed

Some content is hidden

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

1,141 files changed

+52838
-21392
lines changed

.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

LICENSE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
250250
(Interpreter classes (all .scala files in repl/src/main/scala
251251
except for Main.Scala, SparkHelper.scala and ExecutorClassLoader.scala),
252252
and for SerializableMapWrapper in JavaUtils.scala)
253-
(BSD-like) Scala Actors library (org.scala-lang:scala-actors:2.10.4 - http://www.scala-lang.org/)
254-
(BSD-like) Scala Compiler (org.scala-lang:scala-compiler:2.10.4 - http://www.scala-lang.org/)
255-
(BSD-like) Scala Compiler (org.scala-lang:scala-reflect:2.10.4 - http://www.scala-lang.org/)
256-
(BSD-like) Scala Library (org.scala-lang:scala-library:2.10.4 - http://www.scala-lang.org/)
257-
(BSD-like) Scalap (org.scala-lang:scalap:2.10.4 - http://www.scala-lang.org/)
253+
(BSD-like) Scala Actors library (org.scala-lang:scala-actors:2.10.5 - http://www.scala-lang.org/)
254+
(BSD-like) Scala Compiler (org.scala-lang:scala-compiler:2.10.5 - http://www.scala-lang.org/)
255+
(BSD-like) Scala Compiler (org.scala-lang:scala-reflect:2.10.5 - http://www.scala-lang.org/)
256+
(BSD-like) Scala Library (org.scala-lang:scala-library:2.10.5 - http://www.scala-lang.org/)
257+
(BSD-like) Scalap (org.scala-lang:scalap:2.10.5 - http://www.scala-lang.org/)
258258
(BSD-style) scalacheck (org.scalacheck:scalacheck_2.10:1.10.0 - http://www.scalacheck.org)
259259
(BSD-style) spire (org.spire-math:spire_2.10:0.7.1 - http://spire-math.org)
260260
(BSD-style) spire-macros (org.spire-math:spire-macros_2.10:0.7.1 - http://spire-math.org)

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ Collate:
3434
'serialize.R'
3535
'sparkR.R'
3636
'stats.R'
37+
'types.R'
3738
'utils.R'

R/pkg/NAMESPACE

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ export("setJobGroup",
2323
exportClasses("DataFrame")
2424

2525
exportMethods("arrange",
26+
"as.data.frame",
2627
"attach",
2728
"cache",
2829
"collect",
30+
"colnames",
31+
"colnames<-",
32+
"coltypes",
33+
"coltypes<-",
2934
"columns",
3035
"count",
3136
"cov",
@@ -54,6 +59,7 @@ exportMethods("arrange",
5459
"mutate",
5560
"na.omit",
5661
"names",
62+
"names<-",
5763
"ncol",
5864
"nrow",
5965
"orderBy",
@@ -83,6 +89,7 @@ exportMethods("arrange",
8389
"unique",
8490
"unpersist",
8591
"where",
92+
"with",
8693
"withColumn",
8794
"withColumnRenamed",
8895
"write.df")
@@ -95,6 +102,7 @@ exportMethods("%in%",
95102
"add_months",
96103
"alias",
97104
"approxCountDistinct",
105+
"array_contains",
98106
"asc",
99107
"ascii",
100108
"asin",
@@ -119,13 +127,14 @@ exportMethods("%in%",
119127
"count",
120128
"countDistinct",
121129
"crc32",
122-
"cumeDist",
130+
"cume_dist",
123131
"date_add",
124132
"date_format",
125133
"date_sub",
126134
"datediff",
127135
"dayofmonth",
128136
"dayofyear",
137+
"dense_rank",
129138
"desc",
130139
"endsWith",
131140
"exp",
@@ -151,6 +160,7 @@ exportMethods("%in%",
151160
"isNaN",
152161
"isNotNull",
153162
"isNull",
163+
"kurtosis",
154164
"lag",
155165
"last",
156166
"last_day",
@@ -182,16 +192,19 @@ exportMethods("%in%",
182192
"next_day",
183193
"ntile",
184194
"otherwise",
195+
"percent_rank",
185196
"pmod",
186197
"quarter",
187198
"rand",
188199
"randn",
200+
"rank",
189201
"regexp_extract",
190202
"regexp_replace",
191203
"reverse",
192204
"rint",
193205
"rlike",
194206
"round",
207+
"row_number",
195208
"rpad",
196209
"rtrim",
197210
"second",
@@ -200,12 +213,18 @@ exportMethods("%in%",
200213
"shiftLeft",
201214
"shiftRight",
202215
"shiftRightUnsigned",
216+
"sd",
203217
"sign",
204218
"signum",
205219
"sin",
206220
"sinh",
207221
"size",
222+
"skewness",
223+
"sort_array",
208224
"soundex",
225+
"stddev",
226+
"stddev_pop",
227+
"stddev_samp",
209228
"sqrt",
210229
"startsWith",
211230
"substr",
@@ -224,6 +243,10 @@ exportMethods("%in%",
224243
"unhex",
225244
"unix_timestamp",
226245
"upper",
246+
"var",
247+
"variance",
248+
"var_pop",
249+
"var_samp",
227250
"weekofyear",
228251
"when",
229252
"year")
@@ -258,5 +281,3 @@ export("structField",
258281
"structType.jobj",
259282
"structType.structField",
260283
"print.structType")
261-
262-
export("as.data.frame")

0 commit comments

Comments
 (0)