aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test/avro/parquet-compat.avpr
blob: a83b7c990dd2eb2bc3686e2b2e604c44b3a6886f (plain) (blame)
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
{
  "protocol" : "CompatibilityTest",
  "namespace" : "org.apache.spark.sql.parquet.test.avro",
  "types" : [ {
    "type" : "record",
    "name" : "Nested",
    "fields" : [ {
      "name" : "nested_ints_column",
      "type" : {
        "type" : "array",
        "items" : "int"
      }
    }, {
      "name" : "nested_string_column",
      "type" : "string"
    } ]
  }, {
    "type" : "record",
    "name" : "ParquetAvroCompat",
    "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"
    }, {
      "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" ]
    }, {
      "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" : { }
}