Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add location logical types FPF-10479 #34

Merged
merged 6 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
yaizaff marked this conversation as resolved.
Show resolved Hide resolved
jordipuigbou marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading