Skip to content

Commit

Permalink
Merge pull request #34 from Telefonica/test/all_logical_types
Browse files Browse the repository at this point in the history
test: add location logical types FPF-10479
  • Loading branch information
jordipuigbou authored Sep 27, 2023
2 parents f68665f + 5365649 commit 096a7ba
Show file tree
Hide file tree
Showing 12 changed files with 2,562 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,33 @@
"logicalType": "longitude"
},
"doc": "A double representation of longitude"
},
{
"name": "GEOMETRY",
"aliases": ["geometry"],
"type": {
"type": "string",
"logicalType": "geometry"
},
"doc": "A Geometry object represents points, curves, and surfaces in coordinate space"
},
{
"name": "FEATURE",
"aliases": ["feature"],
"type": {
"type": "string",
"logicalType": "feature"
},
"doc": "A Feature object represents a spatially bounded thing"
},
{
"name": "FEATURE_COLLECTION",
"aliases": ["feature_collection"],
"type": {
"type": "string",
"logicalType": "feature-collection"
},
"doc": "List of features"
}
]
}
}
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"
}
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"
}
Loading

0 comments on commit 096a7ba

Please sign in to comment.