-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added test case with avro schema got during Hudi integration
- Loading branch information
1 parent
c78c13c
commit defce5e
Showing
2 changed files
with
351 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
195 changes: 195 additions & 0 deletions
195
metadata-integration/java/datahub-schematron/lib/src/test/resources/users_record.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
{ | ||
"type": "record", | ||
"name": "users_record", | ||
"namespace": "hoodie.users", | ||
"fields": [ | ||
{ | ||
"name": "_hoodie_commit_time", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"doc": "", | ||
"default": null | ||
}, | ||
{ | ||
"name": "_hoodie_commit_seqno", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"doc": "", | ||
"default": null | ||
}, | ||
{ | ||
"name": "_hoodie_record_key", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"doc": "", | ||
"default": null | ||
}, | ||
{ | ||
"name": "_hoodie_partition_path", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"doc": "", | ||
"default": null | ||
}, | ||
{ | ||
"name": "_hoodie_file_name", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"doc": "", | ||
"default": null | ||
}, | ||
{ | ||
"name": "user_id", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "name", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "address", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "record", | ||
"name": "address", | ||
"namespace": "hoodie.users.users_record", | ||
"fields": [ | ||
{ | ||
"name": "street", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "city", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "country", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "postal_code", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "created_at", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"logicalType": "timestamp-micros" | ||
} | ||
], | ||
"default": null | ||
} | ||
] | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "contact", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "record", | ||
"name": "contact", | ||
"namespace": "hoodie.users.users_record", | ||
"fields": [ | ||
{ | ||
"name": "email", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "phone", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
} | ||
] | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "created_at", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"logicalType": "timestamp-micros" | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "updated_at", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "long", | ||
"logicalType": "timestamp-micros" | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "props", | ||
"type": [ | ||
"null", | ||
{ | ||
"type": "map", | ||
"values": [ | ||
"null", | ||
"int" | ||
] | ||
} | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "country", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
} | ||
] | ||
} |