Comments (2)
Thanks for the bug.
I will fix it in the near future.
from fastavro.
For now you can use this code to monkey-patch
import fastavro
def read_date(data, writer_schema=None, reader_schema=None):
return datetime.date.fromordinal(data+719163)
def prepare_date(data, schema):
return data.toordinal() - 719163
fastavro._writer.LOGICAL_WRITERS['int-date']=prepare_date
fastavro._reader.LOGICAL_READERS['int-date']=read_date
from fastavro.
Related Issues (20)
- Optional value in case of logicalType timestamp-mills HOT 3
- Alias not working when using JSON HOT 3
- Schema Failed - DateAndDateTime2Choice HOT 11
- Default type enforcement should be relaxed for int->float HOT 4
- Optionally support Jackson encoded nonfinite doubles (NaN, +Infinity, -Infinity) as default values HOT 4
- Be more forgiving of incorrect schemas in Avro Object Container Files HOT 4
- aarch linux wheels (again?) HOT 3
- Support `cramjam` codec package as an alternative to `python-snappy` HOT 3
- `fastavro.write` does not persist `named_schemas` HOT 2
- read from aiofiles HOT 5
- Understanding the use of schema in json_reader HOT 6
- Append writer is inefficient HOT 2
- KeyError : 'type' occurs when using 'parse_schema' function HOT 8
- Implement a validation option when reading (currently validation only is possible when writing)
- 'utf-8' codec can't decode byte 0xe2 in position 37: invalid continuation byte HOT 18
- Deserialization with reader schema. Compatibility validation failure. HOT 2
- fastavro doesn't compile with Cython 3 HOT 12
- Installing Hopswork 3.2.0 pep517 issues HOT 2
- fastavro installation throwing wheels error HOT 1
- fastavro installation throwing wheels error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastavro.