-
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.
[feat] parse json fixed width schema to arrow2 schema (#6)
* [test] add schema spec. for dtypes and dummy test scheman * [feat] serde read json schema and parse to arrow2 schema
- Loading branch information
1 parent
3e7c3d5
commit 29cf78d
Showing
5 changed files
with
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Evolution resources | ||
|
||
Common resources used during development, testing, and for documentation. | ||
|
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,30 @@ | ||
{ | ||
"name": "EvolutionTestSchema", | ||
"version": 418901, | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"length": 9, | ||
"dtype": "i32", | ||
"is_nullable": false | ||
}, | ||
{ | ||
"name": "name", | ||
"length": 32, | ||
"dtype": "utf8", | ||
"is_nullable": false | ||
}, | ||
{ | ||
"name": "city", | ||
"length": 32, | ||
"dtype": "utf8", | ||
"is_nullable": true | ||
}, | ||
{ | ||
"name": "employed", | ||
"length": 1, | ||
"dtype": "boolean", | ||
"is_nullable": true | ||
} | ||
] | ||
} |
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,30 @@ | ||
{ | ||
"name": "EvolutionTestSchema", | ||
"version": 418901, | ||
"columns": [ | ||
{ | ||
"name": "id", | ||
"length": 9, | ||
"dtype": "i32", | ||
"is_nullable": false | ||
}, | ||
{ | ||
"name": "name", | ||
"length": 32, | ||
"dtype": "utf8", | ||
"is_nullable": false | ||
}, | ||
{ | ||
"name": "city", | ||
"length": 32, | ||
"dtype": "utf8", | ||
"is_nullable": false, | ||
}, | ||
{ | ||
"name": "employed", | ||
"length": 1, | ||
"dtype": "boolean", | ||
"is_nullable": false, | ||
} | ||
] | ||
} |
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,52 @@ | ||
{ | ||
[ | ||
{ | ||
"evolution": "bool", | ||
"arrow2": "Boolean" | ||
}, | ||
{ | ||
"evolution": "boolean", | ||
"arrow2": "Boolean" | ||
}, | ||
{ | ||
"evolution": "i16", | ||
"arrow2": "Int16" | ||
}, | ||
{ | ||
"evolution": "i32", | ||
"arrow2": "Int32" | ||
}, | ||
{ | ||
"evolution": "i64", | ||
"arrow2": "Int64" | ||
}, | ||
{ | ||
"evolution": "f16", | ||
"arrow2": "Float16" | ||
}, | ||
{ | ||
"evolution": "f32", | ||
"arrow2": "Float32" | ||
}, | ||
{ | ||
"evolution": "f64", | ||
"arrow2": "Float64" | ||
}, | ||
{ | ||
"evolution": "utf8", | ||
"arrow2": "Utf8" | ||
}, | ||
{ | ||
"evolution": "string", | ||
"arrow2": "Utf8" | ||
}, | ||
{ | ||
"evolution": "l-utf8", | ||
"arrow2": "LargeUtf8" | ||
}, | ||
{ | ||
"evolution": "l-string", | ||
"arrow2": "LargeUtf8" | ||
} | ||
] | ||
} |
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