-
Notifications
You must be signed in to change notification settings - Fork 55
/
invoke.txt
6254 lines (6254 loc) · 256 KB
/
invoke.txt
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
*** getSparkContext ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(backend, "getSparkContext")
*** setAppName ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(conf, "setAppName", sc$app_name)
*** setMaster ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(conf, "setMaster", sc$master)
*** setSparkHome ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(conf, "setSparkHome", sc$spark_home)
*** set ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: apply_config(context_config, conf, "set", "spark.")
9: lapply(names(params), function(paramName) {
configValue <- params[[paramName]]
if (is.logical(configValue)) {
configValue <- if (configValue)
"true"
10: FUN(X[[i]], ...)
11: invoke(object, method, paste0(prefix, paramName), configValue)
*** set ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: apply_config(default_config, conf, "set", "spark.")
9: lapply(names(params), function(paramName) {
configValue <- params[[paramName]]
if (is.logical(configValue)) {
configValue <- if (configValue)
"true"
10: FUN(X[[i]], ...)
11: invoke(object, method, paste0(prefix, paramName), configValue)
*** setSparkContext ***
1: spark_connect(master = "local", config = config)
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(backend, "setSparkContext", sc$spark_context)
*** sql ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
*** version ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: spark_version(sc)
15: invoke(spark_context(sc), "version")
*** enableHiveSupport ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: invoke(builder, "enableHiveSupport")
*** getOrCreate ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: invoke(builder, "getOrCreate")
*** conf ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: invoke(session, "conf")
*** set ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: apply_config(params, conf, "set", "spark.sql.")
16: lapply(names(params), function(paramName) {
configValue <- params[[paramName]]
if (is.logical(configValue)) {
configValue <- if (configValue)
"true"
17: FUN(X[[i]], ...)
18: invoke(object, method, paste0(prefix, paramName), configValue)
*** version ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_is_streaming(object)
12: spark_version(sc)
13: invoke(spark_context(sc), "version")
*** isStreaming ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_is_streaming(object)
12: invoke(x, "isStreaming")
*** version ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_collect_static(object, ...)
12: spark_version(sc)
13: invoke(spark_context(sc), "version")
*** columns ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_collect_static(object, ...)
12: invoke(sdf, "columns")
*** defaultMinPartitions ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: invoke(spark_context(sc), "defaultMinPartitions")
*** range ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: invoke(spark_context(sc), "range", from, to, by, repartition)
*** createDataFrame ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: invoke(hive_context(sc), "createDataFrame", rdd, schema)
*** registerTempTable ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: sdf_register(sdf)
8: sdf_register.spark_jobj(sdf)
9: invoke(x, "registerTempTable", name)
*** sql ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: sdf_register(sdf)
8: sdf_register.spark_jobj(sdf)
9: tbl(sc, name)
10: tbl.spark_connection(sc, name)
11: tbl_sql("spark", src = src, from = from, ...)
12: db_query_fields(src$con, from)
13: db_query_fields.spark_connection(src$con, from)
14: hive_context(con) %>% invoke("sql", as.character(sqlFields)) %>%
invoke("schema") %>% invoke("fieldNames") %>% as.character()
15: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
16: eval(quote(`_fseq`(`_lhs`)), env, env)
17: eval(quote(`_fseq`(`_lhs`)), env, env)
18: `_fseq`(`_lhs`)
19: freduce(value, `_function_list`)
20: function_list[[i]](value)
21: invoke(., "sql", as.character(sqlFields))
*** schema ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: sdf_register(sdf)
8: sdf_register.spark_jobj(sdf)
9: tbl(sc, name)
10: tbl.spark_connection(sc, name)
11: tbl_sql("spark", src = src, from = from, ...)
12: db_query_fields(src$con, from)
13: db_query_fields.spark_connection(src$con, from)
14: hive_context(con) %>% invoke("sql", as.character(sqlFields)) %>%
invoke("schema") %>% invoke("fieldNames") %>% as.character()
15: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
16: eval(quote(`_fseq`(`_lhs`)), env, env)
17: eval(quote(`_fseq`(`_lhs`)), env, env)
18: `_fseq`(`_lhs`)
19: freduce(value, `_function_list`)
20: function_list[[i]](value)
21: invoke(., "schema")
*** fieldNames ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: sdf_register(sdf)
8: sdf_register.spark_jobj(sdf)
9: tbl(sc, name)
10: tbl.spark_connection(sc, name)
11: tbl_sql("spark", src = src, from = from, ...)
12: db_query_fields(src$con, from)
13: db_query_fields.spark_connection(src$con, from)
14: hive_context(con) %>% invoke("sql", as.character(sqlFields)) %>%
invoke("schema") %>% invoke("fieldNames") %>% as.character()
15: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
16: eval(quote(`_fseq`(`_lhs`)), env, env)
17: eval(quote(`_fseq`(`_lhs`)), env, env)
18: `_fseq`(`_lhs`)
19: freduce(value, `_function_list`)
20: function_list[[i]](value)
21: invoke(., "fieldNames")
*** sql ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: spark_dataframe(con, sql)
17: spark_dataframe.spark_connection(con, sql)
18: invoke(hive_context(x), "sql", as.character(sql))
*** registerTempTable ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: sdf_register(df, name)
17: sdf_register.spark_jobj(df, name)
18: invoke(x, "registerTempTable", name)
*** sql ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: sdf_register(df, name)
17: sdf_register.spark_jobj(df, name)
18: tbl(sc, name)
19: tbl.spark_connection(sc, name)
20: tbl_sql("spark", src = src, from = from, ...)
21: db_query_fields(src$con, from)
22: db_query_fields.spark_connection(src$con, from)
23: hive_context(con) %>% invoke("sql", as.character(sqlFields)) %>%
invoke("schema") %>% invoke("fieldNames") %>% as.character()
24: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
25: eval(quote(`_fseq`(`_lhs`)), env, env)
26: eval(quote(`_fseq`(`_lhs`)), env, env)
27: `_fseq`(`_lhs`)
28: freduce(value, `_function_list`)
29: function_list[[i]](value)
30: invoke(., "sql", as.character(sqlFields))
*** schema ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: sdf_register(df, name)
17: sdf_register.spark_jobj(df, name)
18: tbl(sc, name)
19: tbl.spark_connection(sc, name)
20: tbl_sql("spark", src = src, from = from, ...)
21: db_query_fields(src$con, from)
22: db_query_fields.spark_connection(src$con, from)
23: hive_context(con) %>% invoke("sql", as.character(sqlFields)) %>%
invoke("schema") %>% invoke("fieldNames") %>% as.character()
24: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
25: eval(quote(`_fseq`(`_lhs`)), env, env)
26: eval(quote(`_fseq`(`_lhs`)), env, env)
27: `_fseq`(`_lhs`)
28: freduce(value, `_function_list`)
29: function_list[[i]](value)
30: invoke(., "schema")
*** fieldNames ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: sdf_register(df, name)
17: sdf_register.spark_jobj(df, name)
18: tbl(sc, name)
19: tbl.spark_connection(sc, name)
20: tbl_sql("spark", src = src, from = from, ...)
21: db_query_fields(src$con, from)
22: db_query_fields.spark_connection(src$con, from)
23: hive_context(con) %>% invoke("sql", as.character(sqlFields)) %>%
invoke("schema") %>% invoke("fieldNames") %>% as.character()
24: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
25: eval(quote(`_fseq`(`_lhs`)), env, env)
26: eval(quote(`_fseq`(`_lhs`)), env, env)
27: `_fseq`(`_lhs`)
28: freduce(value, `_function_list`)
29: function_list[[i]](value)
30: invoke(., "fieldNames")
*** version ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: tbl_cache(con, name)
17: spark_version(sc)
18: invoke(spark_context(sc), "version")
*** sql ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: tbl_cache(con, name)
17: tbl_cache_sql(sc, name, force)
18: invoke(hive_context(sc), "sql", sql)
*** cancelAllJobs ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% dplyr::compute())
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
dplyr::compute()
3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
4: eval(quote(`_fseq`(`_lhs`)), env, env)
5: eval(quote(`_fseq`(`_lhs`)), env, env)
6: `_fseq`(`_lhs`)
7: freduce(value, `_function_list`)
8: withVisible(function_list[[k]](value))
9: function_list[[k]](value)
10: dplyr::compute(.)
11: compute.tbl_sql(.)
12: db_compute(x$src$con, name, sql, temporary = temporary, unique_indexes = unique_indexes,
indexes = indexes, analyze = analyze, ...)
13: db_compute.DBIConnection(x$src$con, name, sql, temporary = temporary,
unique_indexes = unique_indexes, indexes = indexes, analyze = analyze,
...)
14: db_save_query(con, sql, table, temporary = temporary)
15: db_save_query.spark_connection(con, sql, table, temporary = temporary)
16: tbl_cache(con, name)
17: tbl_cache_sql(sc, name, force)
18: invoke(hive_context(sc), "sql", sql)
19: invoke.shell_jobj(hive_context(sc), "sql", sql)
20: invoke_method(spark_connection(jobj), FALSE, jobj, method, ...)
21: invoke_method.spark_shell_connection(spark_connection(jobj),
FALSE, jobj, method, ...)
22: core_invoke_method(sc, static, object, method, ...)
23: core_invoke_cancel_running(sc)
24: connection_progress_context(sc, function() {
sc$state$cancelling_all_jobs <- TRUE
on.exit(sc$state$cancelling_all_jobs <- FALSE)
invoke(sc$spark_context, "cancelAllJobs")
})
25: f()
26: invoke(sc$spark_context, "cancelAllJobs")
*** sql ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
*** getSparkContext ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(backend, "getSparkContext")
*** setAppName ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(conf, "setAppName", sc$app_name)
*** setMaster ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(conf, "setMaster", sc$master)
*** setSparkHome ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(conf, "setSparkHome", sc$spark_home)
*** set ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: apply_config(context_config, conf, "set", "spark.")
9: lapply(names(params), function(paramName) {
configValue <- params[[paramName]]
if (is.logical(configValue)) {
configValue <- if (configValue)
"true"
10: FUN(X[[i]], ...)
11: invoke(object, method, paste0(prefix, paramName), configValue)
*** set ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: apply_config(default_config, conf, "set", "spark.")
9: lapply(names(params), function(paramName) {
configValue <- params[[paramName]]
if (is.logical(configValue)) {
configValue <- if (configValue)
"true"
10: FUN(X[[i]], ...)
11: invoke(object, method, paste0(prefix, paramName), configValue)
*** setSparkContext ***
1: spark_connect(master = "local")
2: initialize_connection(scon)
3: initialize_connection.spark_shell_connection(scon)
4: tryCatch({
backend <- invoke_static(sc, "sparklyr.Shell", "getBackend")
sc$spark_context <- invoke(backend, "getSparkContext")
if (is.null(sc$spark_context)) {
conf <- invoke_new(sc, "org.apache.spark.SparkConf")
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: doTryCatch(return(expr), name, parentenv, handler)
8: invoke(backend, "setSparkContext", sc$spark_context)
*** sql ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
*** version ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: spark_version(sc)
15: invoke(spark_context(sc), "version")
*** enableHiveSupport ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: invoke(builder, "enableHiveSupport")
*** getOrCreate ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: invoke(builder, "getOrCreate")
*** conf ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: invoke(session, "conf")
*** set ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: invoke(hive_context(sc), "sql", as.character(sql))
10: hive_context(sc)
11: hive_context.spark_shell_connection(sc)
12: create_hive_context(sc)
13: create_hive_context.spark_shell_connection(sc)
14: create_hive_context_v2(sc)
15: apply_config(params, conf, "set", "spark.sql.")
16: lapply(names(params), function(paramName) {
configValue <- params[[paramName]]
if (is.logical(configValue)) {
configValue <- if (configValue)
"true"
17: FUN(X[[i]], ...)
18: invoke(object, method, paste0(prefix, paramName), configValue)
*** version ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_is_streaming(object)
12: spark_version(sc)
13: invoke(spark_context(sc), "version")
*** isStreaming ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_is_streaming(object)
12: invoke(x, "isStreaming")
*** version ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_collect_static(object, ...)
12: spark_version(sc)
13: invoke(spark_context(sc), "version")
*** columns ***
1: (function (type, host, ...)
{
connection <- .rs.findActiveConnection(type, host)
if (!is.null(connection))
connection$listObjects(...)
2: connection$listObjects(...)
3: connection_list_tables(scon, includeType = TRUE)
4: sort(dbListTables(sc))
5: dbListTables(sc)
6: dbListTables(sc)
7: .local(conn, ...)
8: df_from_sql(conn, "SHOW TABLES")
9: df_from_sdf(sc, sdf)
10: sdf_collect(sdf)
11: sdf_collect_static(object, ...)
12: invoke(sdf, "columns")
*** defaultMinPartitions ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% spark_write_csv("100m.csv"))
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
spark_write_csv("100m.csv")
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: invoke(spark_context(sc), "defaultMinPartitions")
*** range ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% spark_write_csv("100m.csv"))
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
spark_write_csv("100m.csv")
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: invoke(spark_context(sc), "range", from, to, by, repartition)
*** createDataFrame ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% spark_write_csv("100m.csv"))
2: sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>% dplyr::arrange(x) %>%
spark_write_csv("100m.csv")
3: eval(lhs, parent, parent)
4: eval(lhs, parent, parent)
5: sdf_len(sc, entries)
6: sdf_seq(sc, 1, length, repartition = repartition)
7: invoke(hive_context(sc), "createDataFrame", rdd, schema)
*** registerTempTable ***
1: system.time(sdf_len(sc, entries) %>% dplyr::mutate(x = rand()) %>%
dplyr::arrange(x) %>% spark_write_csv("100m.csv"))