add spark-sql case

This commit is contained in:
2024-10-12 16:56:39 +08:00
parent 8b4a30b940
commit 4726888819
22 changed files with 364 additions and 11 deletions

Binary file not shown.

0
Spark/data/csv/_SUCCESS Normal file
View File

View File

@@ -0,0 +1,15 @@
1,Toy Story (1995),Animation
1,Toy Story (1995),Children's
1,Toy Story (1995),Comedy
2,Jumanji (1995),Adventure
2,Jumanji (1995),Children's
2,Jumanji (1995),Fantasy
3,Grumpier Old Men (1995),Comedy
3,Grumpier Old Men (1995),Romance
4,Waiting to Exhale (1995),Comedy
4,Waiting to Exhale (1995),Drama
5,Father of the Bride Part II (1995),Comedy
6,Heat (1995),Action
6,Heat (1995),Crime
6,Heat (1995),Thriller
7,Sabrina (1995),Comedy
1 1 Toy Story (1995) Animation
2 1 Toy Story (1995) Children's
3 1 Toy Story (1995) Comedy
4 2 Jumanji (1995) Adventure
5 2 Jumanji (1995) Children's
6 2 Jumanji (1995) Fantasy
7 3 Grumpier Old Men (1995) Comedy
8 3 Grumpier Old Men (1995) Romance
9 4 Waiting to Exhale (1995) Comedy
10 4 Waiting to Exhale (1995) Drama
11 5 Father of the Bride Part II (1995) Comedy
12 6 Heat (1995) Action
13 6 Heat (1995) Crime
14 6 Heat (1995) Thriller
15 7 Sabrina (1995) Comedy

Binary file not shown.

0
Spark/data/json/_SUCCESS Normal file
View File

View File

@@ -0,0 +1,2 @@
{"age":30,"name":"John"}
{"age":25,"name":"Doe"}

3
Spark/data/salary.txt Normal file
View File

@@ -0,0 +1,3 @@
1 zhangsan 20000 10000
2 lisi 21000 20000
3 wangwu 22000 21000

4
Spark/data/stu.json Normal file
View File

@@ -0,0 +1,4 @@
[
{"name": "John", "age": 30},
{"name": "Doe", "age": 25}
]

Binary file not shown.

0
Spark/data/text/_SUCCESS Normal file
View File

View File

@@ -0,0 +1,13 @@
shenjianZ poop yuqing yuqin
yuqing yuqin shenjianZ poop
shenjianZ poop yuqing yuqin
yuqing yuqin shenjianZ poop
shenjianZ poop yuqing yuqin
yuqing yuqin shenjianZ poop
shenjianZ poop yuqing yuqin
yuqing yuqin shenjianZ poop
shenjianZ poop yuqing yuqin
yuqing yuqin shenjianZ poop
shenjianZ poop yuqing yuqin
yuqing yuqin shenjianZ poop