Commit f36c3ee
committed
[SPARK-20946][SQL] simplify the config setting logic in SparkSession.getOrCreate
## What changes were proposed in this pull request?
The current conf setting logic is a little complex and has duplication, this PR simplifies it.
## How was this patch tested?
existing tests.
Author: Wenchen Fan <[email protected]>
Closes #18172 from cloud-fan/session.
(cherry picked from commit e11d90b)
Signed-off-by: Wenchen Fan <[email protected]>1 parent ae00d49 commit f36c3ee
File tree
3 files changed
+10
-21
lines changed- mllib/src/test/scala/org/apache/spark/ml
- recommendation
- tree/impl
- sql/core/src/main/scala/org/apache/spark/sql
3 files changed
+10
-21
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
831 | | - | |
832 | 830 | | |
833 | 831 | | |
834 | 832 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
Lines changed: 9 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
| 761 | + | |
760 | 762 | | |
761 | 763 | | |
762 | 764 | | |
| |||
854 | 856 | | |
855 | 857 | | |
856 | 858 | | |
857 | | - | |
| 859 | + | |
858 | 860 | | |
859 | 861 | | |
860 | 862 | | |
| |||
899 | 901 | | |
900 | 902 | | |
901 | 903 | | |
902 | | - | |
903 | | - | |
904 | 904 | | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
917 | 910 | | |
| 911 | + | |
918 | 912 | | |
919 | 913 | | |
920 | 914 | | |
| |||
935 | 929 | | |
936 | 930 | | |
937 | 931 | | |
938 | | - | |
939 | 932 | | |
940 | 933 | | |
941 | 934 | | |
| |||
0 commit comments