forked from C0urante/avro-random-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Telefonica/test/all_logical_types
test: add location logical types FPF-10479
- Loading branch information
Showing
12 changed files
with
2,562 additions
and
1 deletion.
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
183 changes: 183 additions & 0 deletions
183
..._logical_types_array_map_records/v1.0.0/qa_all_logical_types_array_map_records_1.0.0.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,183 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "array_map_records", | ||
"namespace" : "com.telefonica.baikal.qa", | ||
"doc" : "Schema for array de structs supported by spark sdk with not informed fields", | ||
"fields" : [ { | ||
"name" : "ARRAY_MAPS", | ||
"type" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "map", | ||
"values" : { | ||
"type" : "record", | ||
"name" : "VALUE", | ||
"fields" : [ { | ||
"name" : "PHONE_NUMBER", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "phone-number" | ||
}, | ||
"doc" : "International number value according to ITU E.164" | ||
}, { | ||
"name" : "IMSI", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "imsi" | ||
}, | ||
"doc" : "A valid International Mobile Subscriber Identity" | ||
}, { | ||
"name" : "IMEI", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "imei" | ||
}, | ||
"doc" : "International Mobile Equipment Identity" | ||
}, { | ||
"name" : "DATE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "iso-date" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete date representation, with no time specification" | ||
}, { | ||
"name" : "TIME", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "time" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete time representation" | ||
}, { | ||
"name" : "DATETIME", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "datetime" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete date and time representation" | ||
}, { | ||
"name" : "TIMESTAMP", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "iso8601-timestamp" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete date and time representation" | ||
}, { | ||
"name" : "DURATION", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "duration" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete duration representation" | ||
}, { | ||
"name" : "COUNTRY_CODE2", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "country-code-alpha-2" | ||
}, | ||
"doc" : "A valid ISO-3166-1 alpha-2 country code" | ||
}, { | ||
"name" : "COUNTRY_CODE3", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "country-code-alpha-3" | ||
}, | ||
"doc" : "A valid ISO-3166-1 alpha-3 country code" | ||
}, { | ||
"name" : "COUNTRY_NUMERIC", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "country-code-numeric" | ||
}, | ||
"doc" : "A valid ISO-3166-1 numeric country code" | ||
}, { | ||
"name" : "CURRENCY_CODE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "currency-code-alpha" | ||
}, | ||
"doc" : "A valid ISO-4217 alpha currency code" | ||
}, { | ||
"name" : "CURRENCY_NUMERIC", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "currency-code-numeric" | ||
}, | ||
"doc" : "A valid ISO-4217 numeric currency code" | ||
}, { | ||
"name" : "DECIMAL", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "decimal-string" | ||
}, | ||
"doc" : "A string representation of a decimal numeral" | ||
}, { | ||
"name" : "IPV4", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "ipv4" | ||
}, | ||
"doc" : "A string representation of a ipv4", | ||
"aliases" : [ "ipv4" ] | ||
}, { | ||
"name" : "IPV6", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "ipv6" | ||
}, | ||
"doc" : "A string representation of a ipv6", | ||
"aliases" : [ "ipv6" ] | ||
}, { | ||
"name" : "TIMEZONE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "time-zone" | ||
}, | ||
"doc" : "A string representation of timezone", | ||
"aliases" : [ "timezone" ] | ||
}, { | ||
"name" : "LATITUDE", | ||
"type" : { | ||
"type" : "double", | ||
"logicalType" : "latitude" | ||
}, | ||
"doc" : "A double representation of latitude", | ||
"aliases" : [ "latitude" ] | ||
}, { | ||
"name" : "LONGITUDE", | ||
"type" : { | ||
"type" : "double", | ||
"logicalType" : "longitude" | ||
}, | ||
"doc" : "A double representation of longitude", | ||
"aliases" : [ "longitude" ] | ||
},{ | ||
"name" : "GEOMETRY", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "geometry" | ||
}, | ||
"doc" : "A Geometry object represents points, curves, and surfaces in coordinate space", | ||
"aliases" : [ "geometry" ] | ||
}, { | ||
"name" : "FEATURE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "feature" | ||
}, | ||
"doc" : "A Feature object represents a spatially bounded thing", | ||
"aliases" : [ "feature" ] | ||
}, { | ||
"name" : "FEATURE_COLLECTION", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "feature_collection" | ||
}, | ||
"doc" : "List of features", | ||
"aliases" : [ "feature_collection" ] | ||
} ] | ||
} | ||
} | ||
} | ||
} ], | ||
"x-fp-version" : "1.0.0" | ||
} |
179 changes: 179 additions & 0 deletions
179
...s/qa_all_logical_types_array_records/v1.0.0/qa_all_logical_types_array_records_1.0.0.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,179 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "array_records", | ||
"namespace" : "com.telefonica.baikal.qa", | ||
"doc" : "Schema for array de structs supported by spark sdk with not informed fields", | ||
"fields" : [ { | ||
"name" : "ARRAY_RECORDS", | ||
"type" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "record", | ||
"name" : "ITEM_RECORD", | ||
"fields" : [ { | ||
"name" : "PHONE_NUMBER", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "phone-number" | ||
}, | ||
"doc" : "International number value according to ITU E.164" | ||
}, { | ||
"name" : "IMSI", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "imsi" | ||
}, | ||
"doc" : "A valid International Mobile Subscriber Identity" | ||
}, { | ||
"name" : "IMEI", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "imei" | ||
}, | ||
"doc" : "International Mobile Equipment Identity" | ||
}, { | ||
"name" : "DATE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "iso-date" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete date representation, with no time specification" | ||
}, { | ||
"name" : "TIME", | ||
"type" : { | ||
"type" : "string" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete time representation" | ||
}, { | ||
"name" : "DATETIME", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "datetime" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete date and time representation" | ||
}, { | ||
"name" : "TIMESTAMP", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "iso8601-timestamp" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete date and time representation" | ||
}, { | ||
"name" : "DURATION", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "duration" | ||
}, | ||
"doc" : "A valid ISO-8601 value that contains a complete duration representation" | ||
}, { | ||
"name" : "COUNTRY_CODE2", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "country-code-alpha-2" | ||
}, | ||
"doc" : "A valid ISO-3166-1 alpha-2 country code" | ||
}, { | ||
"name" : "COUNTRY_CODE3", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "country-code-alpha-3" | ||
}, | ||
"doc" : "A valid ISO-3166-1 alpha-3 country code" | ||
}, { | ||
"name" : "COUNTRY_NUMERIC", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "country-code-numeric" | ||
}, | ||
"doc" : "A valid ISO-3166-1 numeric country code" | ||
}, { | ||
"name" : "CURRENCY_CODE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "currency-code-alpha" | ||
}, | ||
"doc" : "A valid ISO-4217 alpha currency code" | ||
}, { | ||
"name" : "CURRENCY_NUMERIC", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "currency-code-numeric" | ||
}, | ||
"doc" : "A valid ISO-4217 numeric currency code" | ||
}, { | ||
"name" : "DECIMAL", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "decimal-string" | ||
}, | ||
"doc" : "A string representation of a decimal numeral" | ||
}, { | ||
"name" : "IPV4", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "ipv4" | ||
}, | ||
"doc" : "A string representation of a ipv4", | ||
"aliases" : [ "ipv4" ] | ||
}, { | ||
"name" : "IPV6", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "ipv6" | ||
}, | ||
"doc" : "A string representation of a ipv6", | ||
"aliases" : [ "ipv6" ] | ||
}, { | ||
"name" : "TIMEZONE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "time-zone" | ||
}, | ||
"doc" : "A string representation of timezone", | ||
"aliases" : [ "timezone" ] | ||
}, { | ||
"name" : "LATITUDE", | ||
"type" : { | ||
"type" : "double", | ||
"logicalType" : "latitude" | ||
}, | ||
"doc" : "A double representation of latitude", | ||
"aliases" : [ "latitude" ] | ||
}, { | ||
"name" : "LONGITUDE", | ||
"type" : { | ||
"type" : "double", | ||
"logicalType" : "longitude" | ||
}, | ||
"doc" : "A double representation of longitude", | ||
"aliases" : [ "longitude" ] | ||
},{ | ||
"name" : "GEOMETRY", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "geometry" | ||
}, | ||
"doc" : "A Geometry object represents points, curves, and surfaces in coordinate space", | ||
"aliases" : [ "geometry" ] | ||
}, { | ||
"name" : "FEATURE", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "feature" | ||
}, | ||
"doc" : "A Feature object represents a spatially bounded thing", | ||
"aliases" : [ "feature" ] | ||
}, { | ||
"name" : "FEATURE_COLLECTION", | ||
"type" : { | ||
"type" : "string", | ||
"logicalType" : "feature_collection" | ||
}, | ||
"doc" : "List of features", | ||
"aliases" : [ "feature_collection" ] | ||
} ] | ||
} | ||
} | ||
} ], | ||
"x-fp-version" : "1.0.0" | ||
} |
Oops, something went wrong.