Skip to content

Commit fa20ae7

Browse files
committed
chore(examples): add example for AwsGlueSchema
1 parent 4aa08d5 commit fa20ae7

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
apiVersion: "aws.jikkou.io/v1"
3+
kind: "AwsGlueSchema"
4+
metadata:
5+
name: "PersonAvro"
6+
labels:
7+
glue.aws.amazon.com/registry-name: Test
8+
annotations:
9+
glue.aws.amazon.com/normalize-schema: true
10+
spec:
11+
compatibility: "BACKWARD"
12+
dataFormat: "AVRO"
13+
schemaDefinition: |
14+
{
15+
"namespace": "example",
16+
"type": "record",
17+
"name": "Person",
18+
"fields": [
19+
{
20+
"name": "id",
21+
"type": "int",
22+
"doc": "The person's unique ID (required)"
23+
},
24+
{
25+
"name": "firstname",
26+
"type": "string",
27+
"doc": "The person's legal firstname (required)"
28+
},
29+
{
30+
"name": "lastname",
31+
"type": "string",
32+
"doc": " The person's legal lastname (required)"
33+
},
34+
{
35+
"name": "age",
36+
"type": [ "null", "int"],
37+
"default": null,
38+
"doc": "The person's age (optional)"
39+
},
40+
{
41+
"name": "height",
42+
"type": [ "null", "int"],
43+
"default": null,
44+
"doc": "The person's height measures in centimeters (optional)"
45+
},
46+
{
47+
"name": "any",
48+
"type": [ "null", "int"],
49+
"default": null,
50+
"doc": "The person's height measures in centimeters (optional)"
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)