-
Notifications
You must be signed in to change notification settings - Fork 6
/
test_1.0.0-RC6_3.2.4.out
4959 lines (4943 loc) · 424 KB
/
test_1.0.0-RC6_3.2.4.out
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
[info] Loading settings for project global-plugins from sonatype.sbt,gpg.sbt ...
[info] Loading global plugins from /Users/olivertupran/.sbt/1.0/plugins
[info] Loading settings for project spark-utils-build from plugins.sbt ...
[info] Loading project definition from /Users/olivertupran/work/tupol/spark-utils/project
[info] Loading settings for project spark-utils from version.sbt,build.sbt ...
[info] Set current project to spark-utils (in build file:/Users/olivertupran/work/tupol/spark-utils/)
[success] Total time: 0 s, completed 4 Apr 2024, 19:41:17
[info] Forcing Scala version to 2.12.19 on all projects.
[info] Reapplying settings...
[info] Set current project to spark-utils (in build file:/Users/olivertupran/work/tupol/spark-utils/)
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Compiling 15 Scala sources to /Users/olivertupran/work/tupol/spark-utils/utils-core/target/scala-2.12/classes ...
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Done compiling.
[info] Compiling 20 Scala sources to /Users/olivertupran/work/tupol/spark-utils/utils-io/target/scala-2.12/classes ...
[info] Compiling 29 Scala sources to /Users/olivertupran/work/tupol/spark-utils/utils-core/target/scala-2.12/test-classes ...
[info] Done compiling.
[info] Compiling 7 Scala sources to /Users/olivertupran/work/tupol/spark-utils/utils-io-pureconfig/target/scala-2.12/classes ...
[info] Done compiling.
[info] Compiling 27 Scala sources to /Users/olivertupran/work/tupol/spark-utils/utils-io/target/scala-2.12/test-classes ...
[info] + makeNameAvroCompliant.makeNameAvroCompliant should not change the name if the name is Avro compliant: OK, passed 100 tests.
[info] + makeNameAvroCompliant.makeNameAvroCompliant should change the name if the name is not Avro compliant: OK, passed 100 tests.
[info] + makeNameAvroCompliant.makeNameAvroCompliant should produce shorter names if the name is not Avro compliant and replaceWith, prefix and suffix are empty: OK, passed 100 tests.
[info] + makeNameAvroCompliant.makeNameAvroCompliant should produce same size names if the name is not Avro compliant and replaceWith is a single char, prefix and suffix are empty: OK, passed 100 tests.
[info] + makeNameAvroCompliant.makeNameAvroCompliant should prepend the specified prefix if the name is not Avro compliant: OK, passed 100 tests.
[info] + makeNameAvroCompliant.makeNameAvroCompliant should append the specified suffix if the name is not Avro compliant: OK, passed 100 tests.
[info] ConfigSpec:
[info] FuzzyTypesafeConfigBuilder.getConfiguration
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
MockApp.whoami="app.param"
MockApp.param="param"
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-bbb05c25-1927-4317-9eaa-2fb8ea974dc9/app.conf is available.
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:117 - SparkFiles configuration file: successfully parsed at '/private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-bbb05c25-1927-4317-9eaa-2fb8ea974dc9/app.conf'
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/app.conf is not available.
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'app.conf'
2024-04-04 19:42:14 WARN config$FuzzyTypesafeConfigBuilder:165 - Failed to resolve the variables locally.
2024-04-04 19:42:14 WARN config$FuzzyTypesafeConfigBuilder:167 - Failed to resolve the variables from the arguments.
[info] - should load first the app params then defaults to the Spark app.conf file, then to the app.conf in the classpath and then to reference.conf
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
MockFun.param="param"
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-a575fdc9-dc32-4298-87f3-ce2389a28559/fun.conf is available.
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:117 - SparkFiles configuration file: successfully parsed at '/private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-a575fdc9-dc32-4298-87f3-ce2389a28559/fun.conf'
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/fun.conf is not available.
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'fun.conf'
2024-04-04 19:42:14 WARN config$FuzzyTypesafeConfigBuilder:165 - Failed to resolve the variables locally.
2024-04-04 19:42:14 WARN config$FuzzyTypesafeConfigBuilder:167 - Failed to resolve the variables from the arguments.
[info] - should load first the app.conf then defaults to reference.conf
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
MockApp.param="param"
my.var="MYVAR"
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-b859e019-7388-44ec-84c3-d750a5b443a8/app.conf is available.
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:117 - SparkFiles configuration file: successfully parsed at '/private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-b859e019-7388-44ec-84c3-d750a5b443a8/app.conf'
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/app.conf is not available.
2024-04-04 19:42:14 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'app.conf'
[info] - should perform variable substitution
2024-04-04 19:42:15 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
MockApp.param=param
MockApp.my.var=MYVAR
MockApp.substitute.my-other-var=MY_OTHER_VAR
2024-04-04 19:42:15 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-ad1b550a-1339-47cb-bcfd-07c43cd6b500/MockApp/app2.conf is not available.
2024-04-04 19:42:15 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/MockApp/app2.conf is not available.
2024-04-04 19:42:15 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'MockApp/app2.conf'
[info] - should perform variable substitution and addition
[info] SimpleTypesafeConfigBuilder
[info] - should loads first the app params then defaults to app.conf file, then to the app.conf in the classpath and then to reference.conf
[info] - should defaults to reference.conf
[info] - should perform variable substitution
[info] SparkFunSpec:
2024-04-04 19:42:16 INFO SparkFunSpec$MockFun$:62 - Running MockFun
2024-04-04 19:42:16 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
2024-04-04 19:42:16 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-b2521b93-9a91-4c44-9df5-6a4d0758990f/application.conf is not available.
2024-04-04 19:42:16 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/application.conf is not available.
2024-04-04 19:42:16 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'application.conf'
2024-04-04 19:42:16 DEBUG SparkFunSpec$MockFun$:97 - MockFun: Configuration:
{
"classpath" : {
"application" : {
"conf" : false
}
},
"reference" : "reference_mock_fun",
"whoami" : "./src/test/resources/reference.conf"
}
2024-04-04 19:42:17 INFO SparkFunSpec$MockFun$:72 - MockFun: Job successfully completed.
[info] - SparkFun.main successfully completes
2024-04-04 19:42:17 INFO SparkFunSpec$MockFunNoConfig:62 - Running MockFunNoConfig
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-31474f11-cf6b-4212-9247-580076d17729/application.conf is not available.
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/application.conf is not available.
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'application.conf'
2024-04-04 19:42:17 ERROR SparkFunSpec$MockFunNoConfig:101 - MockFunNoConfig: Failed to load application configuration from the MockFunNoConfig path; using the root configuration instead; merge of system properties,reference.conf @ file:/Users/olivertupran/work/tupol/spark-utils/utils-core/target/scala-2.12/test-classes/reference.conf: 1: No configuration setting found for key 'MockFunNoConfig'
2024-04-04 19:42:17 INFO SparkFunSpec$MockFunNoConfig:72 - MockFunNoConfig: Job successfully completed.
[info] - SparkFun.main successfully completes with no configuration expected
2024-04-04 19:42:17 INFO SparkFunSpec$MockFunFailure:62 - Running MockFunFailure
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-7e5dcd3c-d741-482f-a073-46e3d44f13a8/application.conf is not available.
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/application.conf is not available.
2024-04-04 19:42:17 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'application.conf'
2024-04-04 19:42:17 ERROR SparkFunSpec$MockFunFailure:101 - MockFunFailure: Failed to load application configuration from the MockFunFailure path; using the root configuration instead; merge of system properties,reference.conf @ file:/Users/olivertupran/work/tupol/spark-utils/utils-core/target/scala-2.12/test-classes/reference.conf: 1: No configuration setting found for key 'MockFunFailure'
2024-04-04 19:42:17 ERROR SparkFunSpec$MockFunFailure:73 - MockFunFailure: Job failed.
org.tupol.spark.SparkFunSpec$MockApException
at org.tupol.spark.SparkFunSpec$MockFunFailure$.run(SparkFunSpec.scala:54)
at org.tupol.spark.SparkFunSpec$MockFunFailure$.run(SparkFunSpec.scala:53)
at org.tupol.spark.SparkApp.$anonfun$main$4(SparkApp.scala:68)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.SparkApp.$anonfun$main$2(SparkApp.scala:66)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.SparkApp.$anonfun$main$1(SparkApp.scala:65)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.SparkApp.main(SparkApp.scala:64)
at org.tupol.spark.SparkApp.main$(SparkApp.scala:61)
at org.tupol.spark.SparkFun.main(SparkFun.scala:20)
at org.tupol.spark.SparkFunSpec.$anonfun$new$6(SparkFunSpec.scala:31)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at org.scalatest.matchers.should.Matchers.$anonfun$thrownBy$1(Matchers.scala:3029)
at org.scalatest.matchers.dsl.ResultOfThrownByApplication.execute(ResultOfThrownByApplication.scala:30)
at org.scalatest.matchers.dsl.ResultOfATypeInvocation.shouldBe(ResultOfATypeInvocation.scala:72)
at org.tupol.spark.SparkFunSpec.$anonfun$new$5(SparkFunSpec.scala:31)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:189)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.funsuite.AnyFunSuite.withFixture(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:187)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:199)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:199)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:181)
at org.tupol.spark.SparkFunSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(SparkFunSpec.scala:11)
at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
at org.tupol.spark.SparkFunSpec.runTest(SparkFunSpec.scala:11)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:232)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:232)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:231)
at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1562)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:236)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:236)
at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:235)
at org.scalatest.funsuite.AnyFunSuite.run(AnyFunSuite.scala:1562)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
[info] - SparkFun.main fails gracefully if SparkFun.run fails
[info] - SparkFun.appName gets the simple class name
[info] MakeNameAvroCompliantSpec:
[info] - makeNameAvroCompliant removes the non-compliant chars
[info] - makeNameAvroCompliant replaces the first non-compliant char
[info] - makeNameAvroCompliant does not replace the first non-compliant char if a prefix is specified
[info] - makeNameAvroCompliant does not work with empty strings
[info] - makeNameAvroCompliant reports non-compliant prefix
[info] - makeNameAvroCompliant reports non-compliant replaceWith
[info] - makeNameAvroCompliant reports non-compliant replaceWith first char if prefix is not specified
[info] - makeNameAvroCompliant works with non-compliant replaceWith first char if prefix is specified
[info] - makeNameAvroCompliant reports non-compliant suffix
[info] Done compiling.
[info] - makeNameAvroCompliant successfully cleans the schema
[info] KeyValueDatasetOpsTest:
[info] mapValues
[info] - should map only the values and not the keys
[info] - should return an empty dataset for an empty dataset
[info] flatMapValues
[info] - should flatMap only the values and not the keys
[info] - should return an empty dataset for an empty dataset
[info] SchemaOpsSpec:
[info] - mapFields & checkAllFields
[info] - checkAllFields should fail inside array
[info] - checkAllFields should fail inside map
[info] - checkAnyFields plainly
[info] - checkAnyFields inside arrays
[info] - checkAnyFields inside maps
[info] DataFrameOpsSpec:
[info] - flattenFields on a flat DataFrame should produce no changes.
[info] - flattenFields on a structured DataFrame should flatten it.
2024-04-04 19:42:31 ERROR package:93 - Failed to load text resource from ''.
java.lang.IllegalArgumentException: Cannot load a text resource from an empty path.
at org.tupol.spark.utils.package$.createBufferedSource$1(utils.scala:47)
at org.tupol.spark.utils.package$.$anonfun$fuzzyLoadTextResourceFile$21(utils.scala:76)
at scala.util.Try$.apply(Try.scala:213)
at org.tupol.utils.Bracket$.apply(Bracket.scala:43)
at org.tupol.utils.Bracket$.auto(Bracket.scala:59)
at org.tupol.spark.utils.package$.fuzzyLoadTextResourceFile(utils.scala:76)
at org.tupol.spark.utils.UtilsSpec.$anonfun$new$1(UtilsSpec.scala:14)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:189)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.funsuite.AnyFunSuite.withFixture(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:187)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:199)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:199)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:181)
at org.scalatest.funsuite.AnyFunSuite.runTest(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:232)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:232)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:231)
at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1562)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:236)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:236)
at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:235)
at org.scalatest.funsuite.AnyFunSuite.run(AnyFunSuite.scala:1562)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from local file '/unknown/path/leading/to/unknown/file/s1n.ci7y'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URI '/unknown/path/leading/to/unknown/file/s1n.ci7y'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URL '/unknown/path/leading/to/unknown/file/s1n.ci7y'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from classpath '/unknown/path/leading/to/unknown/file/s1n.ci7y'.
2024-04-04 19:42:31 ERROR package:93 - Failed to load text resource from '/unknown/path/leading/to/unknown/file/s1n.ci7y'.
java.lang.IllegalArgumentException: Unable to find '/unknown/path/leading/to/unknown/file/s1n.ci7y' in the classpath.
at org.tupol.spark.utils.package$.$anonfun$fuzzyLoadTextResourceFile$15(utils.scala:69)
at scala.util.Failure.orElse(Try.scala:224)
at org.tupol.spark.utils.package$.createBufferedSource$1(utils.scala:63)
at org.tupol.spark.utils.package$.$anonfun$fuzzyLoadTextResourceFile$21(utils.scala:76)
at scala.util.Try$.apply(Try.scala:213)
at org.tupol.utils.Bracket$.apply(Bracket.scala:43)
at org.tupol.utils.Bracket$.auto(Bracket.scala:59)
at org.tupol.spark.utils.package$.fuzzyLoadTextResourceFile(utils.scala:76)
at org.tupol.spark.utils.UtilsSpec.$anonfun$new$2(UtilsSpec.scala:19)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:189)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.funsuite.AnyFunSuite.withFixture(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:187)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:199)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:199)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:181)
at org.scalatest.funsuite.AnyFunSuite.runTest(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:232)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:232)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:231)
at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1562)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:236)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:236)
at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:235)
at org.scalatest.funsuite.AnyFunSuite.run(AnyFunSuite.scala:1562)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from local file 'src/test/resources/utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Successfully loaded resource from local path 'src/test/resources/utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from local file 'utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URI 'utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URL 'utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from classpath 'utils/sample-text.resource'.
[info] UtilsSpec:
[info] - fuzzyLoadTextResourceFile fails while trying to load an empty path
[info] - fuzzyLoadTextResourceFile fails while trying to load a path that does not exist anywhere
[info] - fuzzyLoadTextResourceFile successfully loads a text from a local path
2024-04-04 19:42:31 DEBUG package:56 - Successfully loaded text resource from classpath 'utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from local file 'file:/Users/olivertupran/work/tupol/spark-utils/utils-core/src/test/resources/utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URI 'file:/Users/olivertupran/work/tupol/spark-utils/utils-core/src/test/resources/utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Successfully loaded resource from URI 'file:/Users/olivertupran/work/tupol/spark-utils/utils-core/src/test/resources/utils/sample-text.resource'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from local file 'http://info.cern.ch'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URI 'http://info.cern.ch'.
2024-04-04 19:42:31 DEBUG package:56 - Try loading text resource from URL 'http://info.cern.ch'.
[info] - fuzzyLoadTextResourceFile successfully loads a text from the class path
[info] - fuzzyLoadTextResourceFile successfully loads a text from the URI
2024-04-04 19:42:31 DEBUG package:56 - Successfully loaded resource from URL 'http://info.cern.ch'.
[info] - fuzzyLoadTextResourceFile successfully loads a text from the URL
[info] MapOpsRowOpsSpec:
[info] Done compiling.
[info] - Converting a map to a row and the conversion back from a row to a map
[info] Compiling 29 Scala sources to /Users/olivertupran/work/tupol/spark-utils/utils-io-pureconfig/target/scala-2.12/test-classes ...
[info] DatasetOpsTest:
[info] withTupledColumn
[info] - should return a tuple of input and column with a simple dataset of 1 value
[info] - should return a tuple of input and column with a simple dataset of 2 values
[info] - should return a tuple of input and column with a simple dataset of nested values
[info] - should return an empty dataset for an empty dataset
[info] - should fail if the specified column type does not match the actual column type
[info] SparkAppSpec:
2024-04-04 19:42:33 INFO SparkAppSpec$MockApp$:62 - Running MockApp
2024-04-04 19:42:33 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
2024-04-04 19:42:33 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-b33f8d5d-e190-4564-a0c6-cc2599852c51/application.conf is not available.
2024-04-04 19:42:33 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/application.conf is not available.
2024-04-04 19:42:33 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'application.conf'
2024-04-04 19:42:33 DEBUG SparkAppSpec$MockApp$:97 - MockApp: Configuration:
{
"classpath" : {
"application" : {
"conf" : false
}
},
"reference" : "reference_mock_app",
"whoami" : "./src/test/resources/reference.conf"
}
2024-04-04 19:42:33 INFO SparkAppSpec$MockApp$:72 - MockApp: Job successfully completed.
[info] - SparkApp.main successfully completes
2024-04-04 19:42:34 INFO SparkAppSpec$MockAppNoConfig:62 - Running MockAppNoConfig
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-4d1847cd-c674-4522-be18-165add42ac27/application.conf is not available.
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/application.conf is not available.
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'application.conf'
2024-04-04 19:42:34 ERROR SparkAppSpec$MockAppNoConfig:101 - MockAppNoConfig: Failed to load application configuration from the MockAppNoConfig path; using the root configuration instead; merge of system properties,reference.conf @ file:/Users/olivertupran/work/tupol/spark-utils/utils-core/target/scala-2.12/test-classes/reference.conf: 1: No configuration setting found for key 'MockAppNoConfig'
2024-04-04 19:42:34 INFO SparkAppSpec$MockAppNoConfig:72 - MockAppNoConfig: Job successfully completed.
[info] - SparkApp.main successfully completes with no configuration expected
2024-04-04 19:42:34 INFO SparkAppSpec$MockAppFailure:62 - Running MockAppFailure
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:94 - Arguments:
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:113 - SparkFiles configuration file: /private/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark-11af63d7-80fe-42c4-b2d7-b5c5fa30ab5a/userFiles-1bca19eb-523d-4c6b-91c4-1ba4df82ed06/application.conf is not available.
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:113 - Local configuration file: /Users/olivertupran/work/tupol/spark-utils/utils-core/application.conf is not available.
2024-04-04 19:42:34 INFO config$FuzzyTypesafeConfigBuilder:140 - Successfully parsed the classpath configuration at 'application.conf'
2024-04-04 19:42:34 ERROR SparkAppSpec$MockAppFailure:101 - MockAppFailure: Failed to load application configuration from the MockAppFailure path; using the root configuration instead; merge of system properties,reference.conf @ file:/Users/olivertupran/work/tupol/spark-utils/utils-core/target/scala-2.12/test-classes/reference.conf: 1: No configuration setting found for key 'MockAppFailure'
2024-04-04 19:42:34 ERROR SparkAppSpec$MockAppFailure:73 - MockAppFailure: Job failed.
org.tupol.spark.SparkAppSpec$MockApException
at org.tupol.spark.SparkAppSpec$MockAppFailure$.run(SparkAppSpec.scala:56)
at org.tupol.spark.SparkAppSpec$MockAppFailure$.run(SparkAppSpec.scala:54)
at org.tupol.spark.SparkApp.$anonfun$main$4(SparkApp.scala:68)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.SparkApp.$anonfun$main$2(SparkApp.scala:66)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.SparkApp.$anonfun$main$1(SparkApp.scala:65)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.SparkApp.main(SparkApp.scala:64)
at org.tupol.spark.SparkApp.main$(SparkApp.scala:61)
at org.tupol.spark.SparkAppSpec$MockAppFailure$.main(SparkAppSpec.scala:54)
at org.tupol.spark.SparkAppSpec.$anonfun$new$6(SparkAppSpec.scala:33)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at org.scalatest.matchers.should.Matchers.$anonfun$thrownBy$1(Matchers.scala:3029)
at org.scalatest.matchers.dsl.ResultOfThrownByApplication.execute(ResultOfThrownByApplication.scala:30)
at org.scalatest.matchers.dsl.ResultOfATypeInvocation.shouldBe(ResultOfATypeInvocation.scala:72)
at org.tupol.spark.SparkAppSpec.$anonfun$new$5(SparkAppSpec.scala:33)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:189)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.funsuite.AnyFunSuite.withFixture(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:187)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:199)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:199)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:181)
at org.tupol.spark.SparkAppSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(SparkAppSpec.scala:12)
at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
at org.tupol.spark.SparkAppSpec.runTest(SparkAppSpec.scala:12)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:232)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:232)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:231)
at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1562)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:236)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:236)
at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:235)
at org.scalatest.funsuite.AnyFunSuite.run(AnyFunSuite.scala:1562)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
[info] - SparkApp.main fails gracefully if SparkApp.run fails
[info] - SparkApp.appName gets the simple class name
[info] GenericDataSourceSpec:
2024-04-04 19:42:39 INFO GenericDataSource:53 - Reading data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'unknown/path/to/inexistent/file.no.way' }, schema: not specified'.
2024-04-04 19:42:40 DEBUG GenericDataSource:56 - Initializing the 'com.databricks.spark.avro' DataFrame loader inferring the schema.
2024-04-04 19:42:40 ERROR GenericDataSource:93 - Failed to read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'unknown/path/to/inexistent/file.no.way' }, schema: not specified'
org.tupol.spark.io.DataSourceException: Failed to read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'unknown/path/to/inexistent/file.no.way' }, schema: not specified'
at org.tupol.spark.io.GenericDataSource.$anonfun$read$3(GenericDataSource.scala:67)
at org.tupol.utils.TryOps$TryOps.mapFailure(TryOps.scala:88)
at org.tupol.spark.io.GenericDataSource.read(GenericDataSource.scala:67)
at org.tupol.spark.io.GenericDataSourceSpec.$anonfun$new$2(GenericDataSourceSpec.scala:23)
at org.scalatest.matchers.MatchersHelper$.checkExpectedException(MatchersHelper.scala:298)
at org.scalatest.matchers.dsl.ResultOfBeWordForAType.thrownBy(ResultOfBeWordForAType.scala:44)
at org.tupol.spark.io.GenericDataSourceSpec.$anonfun$new$1(GenericDataSourceSpec.scala:23)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.wordspec.AnyWordSpecLike$$anon$3.apply(AnyWordSpecLike.scala:1076)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.wordspec.AnyWordSpec.withFixture(AnyWordSpec.scala:1879)
at org.scalatest.wordspec.AnyWordSpecLike.invokeWithFixture$1(AnyWordSpecLike.scala:1074)
at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$runTest$1(AnyWordSpecLike.scala:1086)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.wordspec.AnyWordSpecLike.runTest(AnyWordSpecLike.scala:1086)
at org.scalatest.wordspec.AnyWordSpecLike.runTest$(AnyWordSpecLike.scala:1068)
at org.scalatest.wordspec.AnyWordSpec.runTest(AnyWordSpec.scala:1879)
at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$runTests$1(AnyWordSpecLike.scala:1145)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.wordspec.AnyWordSpecLike.runTests(AnyWordSpecLike.scala:1145)
at org.scalatest.wordspec.AnyWordSpecLike.runTests$(AnyWordSpecLike.scala:1144)
at org.scalatest.wordspec.AnyWordSpec.runTests(AnyWordSpec.scala:1879)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.wordspec.AnyWordSpec.org$scalatest$wordspec$AnyWordSpecLike$$super$run(AnyWordSpec.scala:1879)
at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$run$1(AnyWordSpecLike.scala:1190)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.wordspec.AnyWordSpecLike.run(AnyWordSpecLike.scala:1190)
at org.scalatest.wordspec.AnyWordSpecLike.run$(AnyWordSpecLike.scala:1188)
at org.tupol.spark.io.GenericDataSourceSpec.org$scalatest$BeforeAndAfterAll$$super$run(GenericDataSourceSpec.scala:13)
at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
at org.tupol.spark.io.GenericDataSourceSpec.run(GenericDataSourceSpec.scala:13)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.apache.spark.sql.AnalysisException: Path does not exist: file:/Users/olivertupran/work/tupol/spark-utils/utils-io/unknown/path/to/inexistent/file.no.way
at org.apache.spark.sql.errors.QueryCompilationErrors$.dataPathNotExistError(QueryCompilationErrors.scala:978)
at org.apache.spark.sql.execution.datasources.DataSource$.$anonfun$checkAndGlobPathIfNecessary$4(DataSource.scala:780)
at org.apache.spark.sql.execution.datasources.DataSource$.$anonfun$checkAndGlobPathIfNecessary$4$adapted(DataSource.scala:777)
at org.apache.spark.util.ThreadUtils$.$anonfun$parmap$2(ThreadUtils.scala:372)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:42)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:74)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
2024-04-04 19:42:40 INFO GenericDataSource:53 - Reading data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'unknown/path/to/inexistent/file.no.way' }, schema: not specified'.
2024-04-04 19:42:40 DEBUG GenericDataSource:56 - Initializing the 'com.databricks.spark.avro' DataFrame loader inferring the schema.
2024-04-04 19:42:40 ERROR GenericDataSource:93 - Failed to read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'unknown/path/to/inexistent/file.no.way' }, schema: not specified'
org.tupol.spark.io.DataSourceException: Failed to read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'unknown/path/to/inexistent/file.no.way' }, schema: not specified'
at org.tupol.spark.io.GenericDataSource.$anonfun$read$3(GenericDataSource.scala:67)
at org.tupol.utils.TryOps$TryOps.mapFailure(TryOps.scala:88)
at org.tupol.spark.io.GenericDataSource.read(GenericDataSource.scala:67)
at org.tupol.spark.io.GenericDataSourceSpec.$anonfun$new$3(GenericDataSourceSpec.scala:25)
at org.scalatest.matchers.MatchersHelper$.checkExpectedException(MatchersHelper.scala:298)
at org.scalatest.matchers.dsl.ResultOfBeWordForAType.thrownBy(ResultOfBeWordForAType.scala:44)
at org.tupol.spark.io.GenericDataSourceSpec.$anonfun$new$1(GenericDataSourceSpec.scala:25)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.wordspec.AnyWordSpecLike$$anon$3.apply(AnyWordSpecLike.scala:1076)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.wordspec.AnyWordSpec.withFixture(AnyWordSpec.scala:1879)
at org.scalatest.wordspec.AnyWordSpecLike.invokeWithFixture$1(AnyWordSpecLike.scala:1074)
at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$runTest$1(AnyWordSpecLike.scala:1086)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.wordspec.AnyWordSpecLike.runTest(AnyWordSpecLike.scala:1086)
at org.scalatest.wordspec.AnyWordSpecLike.runTest$(AnyWordSpecLike.scala:1068)
at org.scalatest.wordspec.AnyWordSpec.runTest(AnyWordSpec.scala:1879)
at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$runTests$1(AnyWordSpecLike.scala:1145)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.wordspec.AnyWordSpecLike.runTests(AnyWordSpecLike.scala:1145)
at org.scalatest.wordspec.AnyWordSpecLike.runTests$(AnyWordSpecLike.scala:1144)
at org.scalatest.wordspec.AnyWordSpec.runTests(AnyWordSpec.scala:1879)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.wordspec.AnyWordSpec.org$scalatest$wordspec$AnyWordSpecLike$$super$run(AnyWordSpec.scala:1879)
at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$run$1(AnyWordSpecLike.scala:1190)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.wordspec.AnyWordSpecLike.run(AnyWordSpecLike.scala:1190)
at org.scalatest.wordspec.AnyWordSpecLike.run$(AnyWordSpecLike.scala:1188)
at org.tupol.spark.io.GenericDataSourceSpec.org$scalatest$BeforeAndAfterAll$$super$run(GenericDataSourceSpec.scala:13)
at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
at org.tupol.spark.io.GenericDataSourceSpec.run(GenericDataSourceSpec.scala:13)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.apache.spark.sql.AnalysisException: Path does not exist: file:/Users/olivertupran/work/tupol/spark-utils/utils-io/unknown/path/to/inexistent/file.no.way
at org.apache.spark.sql.errors.QueryCompilationErrors$.dataPathNotExistError(QueryCompilationErrors.scala:978)
at org.apache.spark.sql.execution.datasources.DataSource$.$anonfun$checkAndGlobPathIfNecessary$4(DataSource.scala:780)
at org.apache.spark.sql.execution.datasources.DataSource$.$anonfun$checkAndGlobPathIfNecessary$4$adapted(DataSource.scala:777)
at org.apache.spark.util.ThreadUtils$.$anonfun$parmap$2(ThreadUtils.scala:372)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:42)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:74)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
[info] - Loading the data fails if the file does not exist
2024-04-04 19:42:40 INFO GenericDataSource:53 - Reading data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: not specified'.
2024-04-04 19:42:40 DEBUG GenericDataSource:56 - Initializing the 'com.databricks.spark.avro' DataFrame loader inferring the schema.
[info] Done compiling.
2024-04-04 19:42:44 INFO GenericDataSource:53 - Successfully read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: not specified
2024-04-04 19:42:46 DEBUG package:56 - Try loading text resource from local file 'src/test/resources/sources/avro/sample_schema.json'.
2024-04-04 19:42:46 DEBUG package:56 - Successfully loaded resource from local path 'src/test/resources/sources/avro/sample_schema.json'.
2024-04-04 19:42:46 INFO GenericDataSource:53 - Reading data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: not specified'.
2024-04-04 19:42:46 DEBUG GenericDataSource:56 - Initializing the 'com.databricks.spark.avro' DataFrame loader inferring the schema.
2024-04-04 19:42:46 INFO GenericDataSource:53 - Successfully read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: not specified
[info] - The number of records in the file provided and the schema must match
2024-04-04 19:42:51 DEBUG package:56 - Try loading text resource from local file 'src/test/resources/sources/avro/sample_schema-2.json'.
2024-04-04 19:42:51 DEBUG package:56 - Successfully loaded resource from local path 'src/test/resources/sources/avro/sample_schema-2.json'.
2024-04-04 19:42:51 INFO GenericDataSource:53 - Reading data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: {
"type" : "struct",
"fields" : [ {
"name" : "array",
"type" : {
"type" : "array",
"elementType" : "long",
"containsNull" : true
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "dict",
"type" : {
"type" : "struct",
"fields" : [ {
"name" : "extra_key",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "key",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "int",
"type" : "long",
"nullable" : true,
"metadata" : { }
}, {
"name" : "string",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "other_string",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
}'.
2024-04-04 19:42:51 DEBUG GenericDataSource:56 - Initializing the 'com.databricks.spark.avro' DataFrame loader using the specified schema.
2024-04-04 19:42:51 INFO GenericDataSource:53 - Successfully read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: {
"type" : "struct",
"fields" : [ {
"name" : "array",
"type" : {
"type" : "array",
"elementType" : "long",
"containsNull" : true
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "dict",
"type" : {
"type" : "struct",
"fields" : [ {
"name" : "extra_key",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "key",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "int",
"type" : "long",
"nullable" : true,
"metadata" : { }
}, {
"name" : "string",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "other_string",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
}
2024-04-04 19:42:52 INFO GenericDataSource:53 - Reading data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: {
"type" : "struct",
"fields" : [ {
"name" : "array",
"type" : {
"type" : "array",
"elementType" : "long",
"containsNull" : true
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "dict",
"type" : {
"type" : "struct",
"fields" : [ {
"name" : "extra_key",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "key",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "int",
"type" : "long",
"nullable" : true,
"metadata" : { }
}, {
"name" : "string",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "other_string",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
}'.
2024-04-04 19:42:52 DEBUG GenericDataSource:56 - Initializing the 'com.databricks.spark.avro' DataFrame loader using the specified schema.
2024-04-04 19:42:52 INFO GenericDataSource:53 - Successfully read the data as 'com.databricks.spark.avro' from 'format: 'com.databricks.spark.avro', options: { path: 'src/test/resources/sources/avro/sample.avro' }, schema: {
"type" : "struct",
"fields" : [ {
"name" : "array",
"type" : {
"type" : "array",
"elementType" : "long",
"containsNull" : true
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "dict",
"type" : {
"type" : "struct",
"fields" : [ {
"name" : "extra_key",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "key",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
},
"nullable" : true,
"metadata" : { }
}, {
"name" : "int",
"type" : "long",
"nullable" : true,
"metadata" : { }
}, {
"name" : "string",
"type" : "string",
"nullable" : true,
"metadata" : { }
}, {
"name" : "other_string",
"type" : "string",
"nullable" : true,
"metadata" : { }
} ]
}
[info] - The number of records in the file provided and the other schema must match
[info] addOptions
[info] - should leave the empty options unchanged
[info] - should leave the options unchanged
[info] - should add extra options
[info] - should override options
[info] withSchema
[info] - should set a new schema
[info] - should change an existing schema
[info] - should remove an existing schema
[info] OrcFileDataSourceSpec:
2024-04-04 19:42:55 INFO FileDataSource:53 - Reading data as 'orc' from 'src/test/resources/sources/orc/sample.orc'.
2024-04-04 19:42:55 DEBUG FileDataSource:56 - Initializing the 'orc' DataFrame loader inferring the schema.
2024-04-04 19:42:56 INFO FileDataSource:53 - Successfully read the data as 'orc' from 'src/test/resources/sources/orc/sample.orc'
2024-04-04 19:42:56 DEBUG package:56 - Try loading text resource from local file 'src/test/resources/sources/orc/sample_schema.json'.
2024-04-04 19:42:56 DEBUG package:56 - Successfully loaded resource from local path 'src/test/resources/sources/orc/sample_schema.json'.
2024-04-04 19:42:56 INFO FileDataSource:53 - Reading data as 'orc' from 'src/test/resources/sources/orc/sample.orc'.
2024-04-04 19:42:56 DEBUG FileDataSource:56 - Initializing the 'orc' DataFrame loader inferring the schema.
2024-04-04 19:42:56 INFO FileDataSource:53 - Successfully read the data as 'orc' from 'src/test/resources/sources/orc/sample.orc'
[info] - The number of records in the file provided and the schema must match
[info] StreamingSinkConfigurationSpec:
[info] addOptions
[info] - should overwrite existing options for GenericStreamDataSinkConfiguration
[info] - should overwrite existing options for FileStreamDataSinkConfiguration
[info] - should overwrite existing options for KafkaStreamDataSinkConfiguration
[info] FileDataSinkSpec:
2024-04-04 19:42:59 INFO FileDataSink:53 - Writing data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_643dea2a-f479-4abf-9307-76232a3dd32c.temp'.
2024-04-04 19:43:00 INFO FileDataSink:53 - Successfully saved the data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_643dea2a-f479-4abf-9307-76232a3dd32c.temp' (Full configuration: path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_643dea2a-f479-4abf-9307-76232a3dd32c.temp', format: 'parquet', save mode: 'default', partitioning: None, bucketing: None, options: {}).
[info] - Saving the input data results in the same data
2024-04-04 19:43:05 INFO FileDataSink:53 - Writing data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp'.
2024-04-04 19:43:06 INFO FileDataSink:53 - Successfully saved the data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp' (Full configuration: path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp', format: 'parquet', save mode: 'default', partitioning: None, bucketing: None, options: {}).
2024-04-04 19:43:06 INFO FileDataSink:53 - Writing data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp'.
2024-04-04 19:43:06 ERROR FileDataSink:93 - Failed to save the data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp' (Full configuration: path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp', format: 'parquet', save mode: 'default', partitioning: None, bucketing: None, options: {}).
org.tupol.spark.io.DataSinkException: Failed to save the data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp' (Full configuration: path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp', format: 'parquet', save mode: 'default', partitioning: None, bucketing: None, options: {}).
at org.tupol.spark.io.FileDataSink.$anonfun$write$12(FileDataSink.scala:115)
at org.tupol.utils.TryOps$TryOps.mapFailure(TryOps.scala:88)
at org.tupol.spark.io.FileDataSink.write(FileDataSink.scala:112)
at org.tupol.spark.io.DataAwareSink.write(DataSink.scala:43)
at org.tupol.spark.io.DataAwareSink.write$(DataSink.scala:43)
at org.tupol.spark.io.FileDataAwareSink.write(FileDataSink.scala:122)
at org.tupol.spark.io.DataAwareSink.write(DataSink.scala:44)
at org.tupol.spark.io.DataAwareSink.write$(DataSink.scala:44)
at org.tupol.spark.io.FileDataAwareSink.write(FileDataSink.scala:122)
at org.tupol.spark.io.FileDataSinkSpec.$anonfun$new$2(FileDataSinkSpec.scala:37)
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
at org.scalatest.Transformer.apply(Transformer.scala:20)
at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:189)
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
at org.scalatest.funsuite.AnyFunSuite.withFixture(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:187)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:199)
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:199)
at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:181)
at org.tupol.spark.io.FileDataSinkSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(FileDataSinkSpec.scala:13)
at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
at org.tupol.spark.io.FileDataSinkSpec.runTest(FileDataSinkSpec.scala:13)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:232)
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:232)
at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:231)
at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1562)
at org.scalatest.Suite.run(Suite.scala:1112)
at org.scalatest.Suite.run$(Suite.scala:1094)
at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1562)
at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:236)
at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:236)
at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:235)
at org.tupol.spark.io.FileDataSinkSpec.org$scalatest$BeforeAndAfterAll$$super$run(FileDataSinkSpec.scala:13)
at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
at org.tupol.spark.io.FileDataSinkSpec.run(FileDataSinkSpec.scala:13)
at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:318)
at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:513)
at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.apache.spark.sql.AnalysisException: path file:/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_2a4f0b07-1b92-48b8-bc9e-fb3c2b5be1bf.temp already exists.
at org.apache.spark.sql.errors.QueryCompilationErrors$.outputPathAlreadyExistsError(QueryCompilationErrors.scala:1142)
at org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelationCommand.run(InsertIntoHadoopFsRelationCommand.scala:120)
at org.apache.spark.sql.execution.command.DataWritingCommandExec.sideEffectResult$lzycompute(commands.scala:113)
at org.apache.spark.sql.execution.command.DataWritingCommandExec.sideEffectResult(commands.scala:111)
at org.apache.spark.sql.execution.command.DataWritingCommandExec.executeCollect(commands.scala:125)
at org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.$anonfun$applyOrElse$1(QueryExecution.scala:97)
at org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$5(SQLExecution.scala:103)
at org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:163)
at org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$1(SQLExecution.scala:90)
at org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:775)
at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:64)
at org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.applyOrElse(QueryExecution.scala:97)
at org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.applyOrElse(QueryExecution.scala:93)
at org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$transformDownWithPruning$1(TreeNode.scala:481)
at org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:82)
at org.apache.spark.sql.catalyst.trees.TreeNode.transformDownWithPruning(TreeNode.scala:481)
at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.org$apache$spark$sql$catalyst$plans$logical$AnalysisHelper$$super$transformDownWithPruning(LogicalPlan.scala:30)
at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.transformDownWithPruning(AnalysisHelper.scala:267)
at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.transformDownWithPruning$(AnalysisHelper.scala:263)
at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.transformDownWithPruning(LogicalPlan.scala:30)
at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.transformDownWithPruning(LogicalPlan.scala:30)
at org.apache.spark.sql.catalyst.trees.TreeNode.transformDown(TreeNode.scala:457)
at org.apache.spark.sql.execution.QueryExecution.eagerlyExecuteCommands(QueryExecution.scala:93)
at org.apache.spark.sql.execution.QueryExecution.commandExecuted$lzycompute(QueryExecution.scala:80)
at org.apache.spark.sql.execution.QueryExecution.commandExecuted(QueryExecution.scala:78)
at org.apache.spark.sql.execution.QueryExecution.assertCommandExecuted(QueryExecution.scala:115)
at org.apache.spark.sql.DataFrameWriter.runCommand(DataFrameWriter.scala:848)
at org.apache.spark.sql.DataFrameWriter.saveToV1Source(DataFrameWriter.scala:382)
at org.apache.spark.sql.DataFrameWriter.saveInternal(DataFrameWriter.scala:355)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:239)
at org.tupol.spark.io.FileDataSink.$anonfun$write$8(FileDataSink.scala:100)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.Option.getOrElse(Option.scala:189)
at org.tupol.spark.io.FileDataSink.$anonfun$write$5(FileDataSink.scala:100)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.util.Try$.apply(Try.scala:213)
at org.tupol.spark.io.FileDataSink.$anonfun$write$1(FileDataSink.scala:100)
at scala.util.Success.flatMap(Try.scala:251)
at org.tupol.spark.io.FileDataSink.write(FileDataSink.scala:86)
... 53 more
[info] - Saving the input data can fail if the mode is default and the target file already exists
2024-04-04 19:43:06 DEBUG FileDataSink:56 - Initializing the DataFrameWriter to partition the data using the following partition columns: [int, string].
2024-04-04 19:43:06 INFO FileDataSink:53 - Writing data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_6372e83e-f489-4caa-a0ee-3de4805929ce.temp'.
2024-04-04 19:43:07 INFO FileDataSink:53 - Successfully saved the data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_6372e83e-f489-4caa-a0ee-3de4805929ce.temp' (Full configuration: path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_6372e83e-f489-4caa-a0ee-3de4805929ce.temp', format: 'parquet', save mode: 'default', partitioning: number of partition: 'Unchanged', partition columns: [int, string], bucketing: None, options: {}).
[info] - Saving the input partitioned results in the same data
2024-04-04 19:43:11 DEBUG FileDataSink:56 - Initializing the DataFrameWriter after repartitioning data to 1 partitions.
2024-04-04 19:43:11 DEBUG FileDataSink:56 - Initializing the DataFrameWriter to partition the data using the following partition columns: [int, string].
2024-04-04 19:43:11 INFO FileDataSink:53 - Writing data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_47dd9076-789a-4033-9134-dec2ff2afe27.temp'.
2024-04-04 19:43:11 INFO FileDataSink:53 - Successfully saved the data as 'parquet' to '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_47dd9076-789a-4033-9134-dec2ff2afe27.temp' (Full configuration: path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_47dd9076-789a-4033-9134-dec2ff2afe27.temp', format: 'parquet', save mode: 'default', partitioning: number of partition: '1', partition columns: [int, string], bucketing: None, options: {}).
[info] - Saving the input partitioned with a partition number specified results in the same data
2024-04-04 19:43:13 DEBUG FileDataSink:56 - Initializing the DataFrameWriter to bucket the data into 1 buckets using the following partition columns: int, string].
2024-04-04 19:43:13 DEBUG FileDataSink:56 - Buckets will be sorted by the following columns: int, string].
2024-04-04 19:43:13 INFO FileDataSink:53 - Writing data to Hive as 'json' in the 'test_output_table' table due to the buckets configuration: number of buckets: '1', bucketing columns: [int, string], sortBy columns: [int, string]. Notice that the path parameter is used as a table name in this case.
2024-04-04 19:43:14 INFO FileDataSink:53 - Successfully saved the data as 'json' to 'test_output_table' (Full configuration: path: 'test_output_table', format: 'json', save mode: 'overwrite', partitioning: None, bucketing: number of buckets: '1', bucketing columns: [int, string], sortBy columns: [int, string], options: {}).
[info] - Saving the input bucketed results in the same data
[info] FileStreamDataSourceSpec:
2024-04-04 19:43:16 INFO FileStreamDataSource:53 - Reading data as 'text' from '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_15b8392a-95bc-40cd-abb3-a381fc76f312.temp'.
2024-04-04 19:43:16 DEBUG FileStreamDataSource:56 - Initializing the 'text' DataFrame loader inferring the schema.
2024-04-04 19:43:16 INFO FileStreamDataSource:53 - Successfully read the data as 'text' from '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_15b8392a-95bc-40cd-abb3-a381fc76f312.temp'
[info] - String messages should be written to the file stream and read back
[info] - Fail gracefully
[info] GenericFileStreamDataSourceSpec:
2024-04-04 19:43:23 INFO GenericStreamDataSource:53 - Reading data as 'text' from 'format: 'text', options: { path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_ded7ff8d-f3f9-4972-a2cf-c5a8009279b4.temp' }, schema: not specified'.
2024-04-04 19:43:23 INFO GenericStreamDataSource:53 - Successfully read the data as 'text' from 'format: 'text', options: { path: '/var/folders/6r/0r60xw6n0c5dhqcrv49cxvbw0000gn/T/spark_tests_ded7ff8d-f3f9-4972-a2cf-c5a8009279b4.temp' }, schema: not specified'
[info] - String messages should be written to the file stream and read back using a GenericStreamDataSource
[info] - Fail gracefully
[info] FormatTypeSpec:
[info] - fromString works on known types
[info] - fromString returns a Custom format type
[info] CsvFileDataSourceSpec:
2024-04-04 19:43:26 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:26 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader inferring the schema.
2024-04-04 19:43:27 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
2024-04-04 19:43:28 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:28 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader inferring the schema.
2024-04-04 19:43:29 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
[info] - The number of records in the csv provided must be the same in the output result
2024-04-04 19:43:30 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars*.csv'.
2024-04-04 19:43:30 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader inferring the schema.
2024-04-04 19:43:31 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars*.csv'
2024-04-04 19:43:31 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:31 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
[info] - The number of records in multiple csv files provided must be the same in the output result
2024-04-04 19:43:31 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
[info] - User must be able to specify a schema
2024-04-04 19:43:31 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:31 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
2024-04-04 19:43:31 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
[info] - Providing a good csv schema with the parsing option PERMISSIVE, expecting a success run and a successful dataframe materialization
2024-04-04 19:43:31 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:31 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
2024-04-04 19:43:31 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
[info] - Providing a good csv schema with the parsing option DROPMALFORMED, expecting a success run and a successful dataframe materialization
2024-04-04 19:43:31 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars_modified.csv'.
2024-04-04 19:43:31 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
2024-04-04 19:43:31 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars_modified.csv'
[info] - Providing a good csv schema fitting perfectly the data with the parsing option FAILFAST, expecting a success run and a successful dataframe materialization
2024-04-04 19:43:31 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:31 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
2024-04-04 19:43:31 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
[info] - Providing a wrong csv schema with the parsing option PERMISSIVE, expecting a success run and a successful dataframe materialization
2024-04-04 19:43:32 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:32 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
2024-04-04 19:43:32 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
[info] - Providing a wrong csv schema with the parsing option DROPMALFORMED, expecting a success run and a successful dataframe materialization
2024-04-04 19:43:32 INFO FileDataSource:53 - Reading data as 'csv' from 'src/test/resources/sources/csv/cars.csv'.
2024-04-04 19:43:32 DEBUG FileDataSource:56 - Initializing the 'csv' DataFrame loader using the specified schema.
2024-04-04 19:43:32 INFO FileDataSource:53 - Successfully read the data as 'csv' from 'src/test/resources/sources/csv/cars.csv'
2024-04-04 19:43:32 ERROR Executor:94 - Exception in task 0.0 in stage 59.0 (TID 43)
org.apache.spark.SparkException: Malformed records are detected in record parsing. Parse Mode: FAILFAST. To process malformed records as null result, try setting the option 'mode' as 'PERMISSIVE'.
at org.apache.spark.sql.errors.QueryExecutionErrors$.malformedRecordsDetectedInRecordParsingError(QueryExecutionErrors.scala:1236)
at org.apache.spark.sql.catalyst.util.FailureSafeParser.parse(FailureSafeParser.scala:68)
at org.apache.spark.sql.catalyst.csv.UnivocityParser$.$anonfun$parseIterator$2(UnivocityParser.scala:410)
at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:486)
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:492)
at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.hasNext(FileScanRDD.scala:104)
at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.nextIterator(FileScanRDD.scala:191)
at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.hasNext(FileScanRDD.scala:104)
at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
at org.apache.spark.sql.execution.SparkPlan.$anonfun$getByteArrayRdd$1(SparkPlan.scala:350)
at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2(RDD.scala:898)
at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2$adapted(RDD.scala:898)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:373)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:337)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
at org.apache.spark.scheduler.Task.run(Task.scala:131)
at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1491)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.apache.spark.sql.catalyst.util.BadRecordException: java.lang.RuntimeException: Malformed CSV record
at org.apache.spark.sql.catalyst.csv.UnivocityParser.org$apache$spark$sql$catalyst$csv$UnivocityParser$$convert(UnivocityParser.scala:319)
at org.apache.spark.sql.catalyst.csv.UnivocityParser.$anonfun$parse$2(UnivocityParser.scala:264)
at org.apache.spark.sql.catalyst.csv.UnivocityParser$.$anonfun$parseIterator$1(UnivocityParser.scala:406)