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
|
{
"protocol" : "CompatibilityTest",
"namespace" : "org.apache.spark.sql.execution.datasources.parquet.test.avro",
"types" : [ {
"type" : "enum",
"name" : "Suit",
"symbols" : [ "SPADES", "HEARTS", "DIAMONDS", "CLUBS" ]
}, {
"type" : "record",
"name" : "ParquetEnum",
"fields" : [ {
"name" : "suit",
"type" : "Suit"
} ]
}, {
"type" : "record",
"name" : "Nested",
"fields" : [ {
"name" : "nested_ints_column",
"type" : {
"type" : "array",
"items" : "int"
}
}, {
"name" : "nested_string_column",
"type" : "string"
} ]
}, {
"type" : "record",
"name" : "AvroPrimitives",
"fields" : [ {
"name" : "bool_column",
"type" : "boolean"
}, {
"name" : "int_column",
"type" : "int"
}, {
"name" : "long_column",
"type" : "long"
}, {
"name" : "float_column",
"type" : "float"
}, {
"name" : "double_column",
"type" : "double"
}, {
"name" : "binary_column",
"type" : "bytes"
}, {
"name" : "string_column",
"type" : "string"
} ]
}, {
"type" : "record",
"name" : "AvroOptionalPrimitives",
"fields" : [ {
"name" : "maybe_bool_column",
"type" : [ "null", "boolean" ]
}, {
"name" : "maybe_int_column",
"type" : [ "null", "int" ]
}, {
"name" : "maybe_long_column",
"type" : [ "null", "long" ]
}, {
"name" : "maybe_float_column",
"type" : [ "null", "float" ]
}, {
"name" : "maybe_double_column",
"type" : [ "null", "double" ]
}, {
"name" : "maybe_binary_column",
"type" : [ "null", "bytes" ]
}, {
"name" : "maybe_string_column",
"type" : [ "null", "string" ]
} ]
}, {
"type" : "record",
"name" : "AvroNonNullableArrays",
"fields" : [ {
"name" : "strings_column",
"type" : {
"type" : "array",
"items" : "string"
}
}, {
"name" : "maybe_ints_column",
"type" : [ "null", {
"type" : "array",
"items" : "int"
} ]
} ]
}, {
"type" : "record",
"name" : "AvroArrayOfArray",
"fields" : [ {
"name" : "int_arrays_column",
"type" : {
"type" : "array",
"items" : {
"type" : "array",
"items" : "int"
}
}
} ]
}, {
"type" : "record",
"name" : "AvroMapOfArray",
"fields" : [ {
"name" : "string_to_ints_column",
"type" : {
"type" : "map",
"values" : {
"type" : "array",
"items" : "int"
}
}
} ]
}, {
"type" : "record",
"name" : "ParquetAvroCompat",
"fields" : [ {
"name" : "strings_column",
"type" : {
"type" : "array",
"items" : "string"
}
}, {
"name" : "string_to_int_column",
"type" : {
"type" : "map",
"values" : "int"
}
}, {
"name" : "complex_column",
"type" : {
"type" : "map",
"values" : {
"type" : "array",
"items" : "Nested"
}
}
} ]
} ],
"messages" : { }
}
|