HybridRow/test-data/CrossVersioningSchema.json
David Noble c36b0adfe8
Feature/java/port from dotnet (#1)
* Add pom.xml placeholder and Hybrid Row whitepaper

* Checkpoint for safe keeping

* Progressed on port from dotnet to java

* Progressed on port from C# to Java

* Brought in Utf8AnyString.java

* Progressed on port from C# to Java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Updated documents releated to release of Microsoft Code under MIT License

* Updated JRE copyright notices

* Progressed on port from dotnet to java

* Renamed jre as java because Java is used to can refer to two things: the platform and the language. In this case we are referring to the Java Platform, not the Java Runtime Environment.

* Progressed on port

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on dotnet port to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Progressed on port from dotnet to java

* Code cleanup, especially in Utf8String class which is much improved.

* Progressed on port from dotnet to java.

* Simplified Utf8String some more

* Code cleanup

* Excluding most tests with the expectation that we'll bring them in as we continue to expand our test matrix.

* Added and debugged some tests

* Added and debugged some tests

* Added and debugged some tests

* Added, revised, and debugged some tests and test issues

* Added, revised, and debugged some tests and test issues

* Added, revised, and debugged some tests and test issues

* Optimized imports

* Removed dead code

* Updated java docs

* Added, revised, and debugged some tests and test issues

* Added, revised, and debugged some tests and test issues

* Added, revised, and debugged some tests and test issues

* Added, revised, and debugged some tests and test issues. Updated javadocs and pom.xml. We now add SystemSchema.json to azure-cosmos-serialization.jar. Javadocs don't currently build.

* Javadoc update

* Test update

* Progressed on deserializing schemas.

* Progressed on deserializing schemas.

* Progressed on deserializing schemas.

* testLoadSchmea passes

* code cleanup in prep for next step: loading a namespace that includes a schema with a udt: the one that the Spark connector team needs.

* code cleanup in prep for next step: loading a namespace that includes a schema with a udt: the one that the Spark connector team needs.

* RootSegment.json now loads

* Progressed on RowReader

* Progressed on RowReader

* RowReaderTest against RootSegment.json/RootSegment.hybridrow succeeds

* RowReaderTest against RootSegment.json/RootSegment.hybridrow succeeds

* Move RowScanner and DataItem out of test into main

* Move RowScanner and DataItem out of test into main

* Move RowScanner and DataItem out of test into main

* RowIterable now works. RowIterable and RowScanner now include indexes of array elements.

* RowIterable and RowScanner now support additional data types

* RowScanner now implements Iterable<DataItem> and RowIterable has been removed.

* POM now packages SystemSchema.json and SystemSchema class now loads the packaged SystemSchema.json

* Updated pom.xml with required licensing info and attempted to produce javadocs.

* Progressed on adding support for unsupported Utf8String features

* Refinements to Utf8String and Utf8StringTest

* Utf8StringTest improvements

* Refinements to Utf8String and Utf8StringTest

* Added caching of UTF-16 string caching to Utf8String to reduce the time and space cost of Utf8String.toUtf16(). Also: addressed a number of javadoc issues.

* Addressed a number of javadoc issues and the javadocs now build.

* Utf8String refinements with inefficient support instead of no support for Utf8String.charAt(int)

* Bumped netty.version and updated javadocs for Utf8String

* Code cleanup (javadoc improvements + tidying)

* Utf8String optimizations

* Tweaks

* Tweaks
2019-10-09 14:07:57 -07:00

128 lines
6.0 KiB
JSON

// Set of types used in the cross versioning tests.
{
"schemas": [
{ "name": "Fixed", "id": 1, "type": "schema",
"properties": [
{ "path": "null", "type": { "type": "null", "storage": "fixed" } },
{ "path": "bool", "type": { "type": "bool", "storage": "fixed" } },
{ "path": "int8", "type": { "type": "int8", "storage": "fixed" } },
{ "path": "int16", "type": { "type": "int16", "storage": "fixed" } },
{ "path": "int32", "type": { "type": "int32", "storage": "fixed" } },
{ "path": "int64", "type": { "type": "int64", "storage": "fixed" } },
{ "path": "uint8", "type": { "type": "uint8", "storage": "fixed" } },
{ "path": "uint16", "type": { "type": "uint16", "storage": "fixed" } },
{ "path": "uint32", "type": { "type": "uint32", "storage": "fixed" } },
{ "path": "uint64", "type": { "type": "uint64", "storage": "fixed" } },
{ "path": "float32", "type": { "type": "float32", "storage": "fixed" } },
{ "path": "float64", "type": { "type": "float64", "storage": "fixed" } },
{ "path": "float128", "type": { "type": "float128", "storage": "fixed" } },
{ "path": "decimal", "type": { "type": "decimal", "storage": "fixed" } },
{ "path": "datetime", "type": { "type": "datetime", "storage": "fixed" } },
{ "path": "unixdatetime", "type": { "type": "unixdatetime", "storage": "fixed" } },
{ "path": "guid", "type": { "type": "guid", "storage": "fixed" } },
{ "path": "mongodbobjectid", "type": { "type": "mongodbobjectid", "storage": "fixed" } },
{ "path": "utf8", "type": { "type": "utf8", "storage": "fixed", "length": 3 } },
{ "path": "binary", "type": { "type": "binary", "storage": "fixed", "length": 3 } }
]},
{ "name": "Variable", "id": 2, "type": "schema",
"properties": [
{ "path": "varint", "type": { "type": "varint", "storage": "variable" } },
{ "path": "varuint", "type": { "type": "varuint", "storage": "variable" } },
{ "path": "utf8", "type": { "type": "utf8", "storage": "variable"} },
{ "path": "binary", "type": { "type": "binary", "storage": "variable" } }
]},
{ "name": "Sparse", "id": 3, "type": "schema",
"properties": [
{ "path": "null", "type": { "type": "null" } },
{ "path": "bool", "type": { "type": "bool" } },
{ "path": "int8", "type": { "type": "int8" } },
{ "path": "int16", "type": { "type": "int16" } },
{ "path": "int32", "type": { "type": "int32" } },
{ "path": "int64", "type": { "type": "int64" } },
{ "path": "uint8", "type": { "type": "uint8" } },
{ "path": "uint16", "type": { "type": "uint16" } },
{ "path": "uint32", "type": { "type": "uint32" } },
{ "path": "uint64", "type": { "type": "uint64" } },
{ "path": "float32", "type": { "type": "float32" } },
{ "path": "float64", "type": { "type": "float64" } },
{ "path": "float128", "type": { "type": "float128" } },
{ "path": "decimal", "type": { "type": "decimal" } },
{ "path": "datetime", "type": { "type": "datetime" } },
{ "path": "unixdatetime", "type": { "type": "unixdatetime" } },
{ "path": "guid", "type": { "type": "guid" } },
{ "path": "mongodbobjectid", "type": { "type": "mongodbobjectid" } },
{ "path": "utf8", "type": { "type": "utf8" } },
{ "path": "binary", "type": { "type": "binary" } },
{ "path": "array_t<int8>", "type": {
"type": "array",
"items": { "type": "int8", "nullable": false }
} },
{ "path": "array_t<array_t<float32>>", "type": {
"type": "array",
"items": { "type": "array", "nullable": false, "items": { "type": "float32", "nullable": false } }
} },
{ "path": "array_t<utf8>", "type": { "type": "array", "items": { "type": "utf8", "nullable": false } } },
{ "path": "tuple<varint,int64>", "type": {
"type": "tuple",
"items": [ { "type": "varint", "nullable": false }, { "type": "int64", "nullable": false }]
} },
{ "path": "tuple<null,tuple<int8,int8>>", "type": {
"type": "tuple", "items": [
{ "type": "null", "nullable": false },
{ "type": "tuple", "nullable": false, "items": [ { "type": "int8", "nullable": false }, { "type": "int8", "nullable": false } ] }
]}},
{ "path": "tuple<bool,udt>", "type": {
"type": "tuple", "items": [
{ "type": "bool", "nullable": false },
{ "type": "schema", "name": "Point", "nullable": false}
]}},
{ "path": "set_t<utf8>", "type": {
"type": "set",
"items": { "type": "utf8", "nullable": false }
} },
{ "path": "set_t<array_t<int8>>", "type": {
"type": "set",
"items": { "type": "array", "nullable": false, "items": { "type": "int8", "nullable": false } }
} },
{ "path": "set_t<set_t<int32>>", "type": {
"type": "set",
"items": { "type": "set", "nullable": false, "items": { "type": "int32", "nullable": false } }
} },
{ "path": "set_t<udt>", "type": {
"type": "set",
"items": { "type": "schema", "name": "Point", "nullable": false}
} },
{ "path": "map_t<utf8,utf8>", "type": {
"type": "map",
"keys": { "type": "utf8", "nullable": false },
"values": { "type": "utf8", "nullable": false }
} },
{ "path": "map_t<int8,array_t<int8>>", "type": {
"type": "map",
"keys": { "type": "int8", "nullable": false },
"values": { "type": "array", "nullable": false, "items": { "type": "int8", "nullable": false } }
} },
{ "path": "map_t<int16,map_t<int32,int32>>", "type": {
"type": "map",
"keys": { "type": "int16", "nullable": false },
"values": {
"type": "map",
"nullable": false,
"keys": { "type": "int32", "nullable": false },
"values": { "type": "int32", "nullable": false }
}
} },
{ "path": "map_t<float64,udt>", "type": {
"type": "map",
"keys": { "type": "float64", "nullable": false },
"values": { "type": "schema", "name": "Point", "nullable": false}
} }
]},
{ "name": "Point", "id": 4, "type": "schema",
"properties": [
{ "path": "x", "type": { "type": "int32", "storage": "fixed" } },
{ "path": "y", "type": { "type": "int32", "storage": "fixed" } }
]}
]
}