Comments (3)
If anyone wants to take a stab for both serialization and deserialization, I can merge it.
I can't quite tell from description exactly how logical types should work so some investigation would be needed to figure out the whole system. There seem to be other logical types that could be supported as well.
from jackson-dataformats-binary.
FWTW, there has been lots of recent activity wrt Avro module, and I think BigDecimal
values may now be handled as Strings. I think this isn't 100% what was asked here but thought I'll mention as it may be relevant for further improvements.
from jackson-dataformats-binary.
Correct, in master BigDecimal
is now correctly handled in a manner that is consistent with the avro reference implementation and fully preserves all precision.
Because BigDecimal
is dynamic precision and the avro logical Decimal
type is fixed precision, I would not generate schemas with logical Decimal
fields for java's BigDecimal
; However, the NonBSGenericDatumWriter
could be updated such that Jackson is supported writing a BigDecimal
into a logical Decimal
field, assuming you have a hand-generated schema or used the @AvroSchema
annotation. (It already coerces BigDecimals
into a double
if the field schema is DOUBLE
instead of STRING
to preserve compatibility with previously-generated schemas)
from jackson-dataformats-binary.
Related Issues (20)
- `SmileParser` throws unexpected IOOBE for corrupt content HOT 1
- `IonParser.getIntValue()` fails or does not handle value overflow checks HOT 1
- CBOR: negative BigInteger values not handled correctly HOT 1
- More methods from `IonReader` could throw an unexpected `AssertionError`
- Unexpected `NullPointerException` thrown from `IonParser::getNumberType()` HOT 1
- `IonFactory.createParser(IonReader)` does not initialize state
- `IonReader.next()` throws NPEs for some invalid content
- Implement `JsonParser.getNumberTypeFP()` for binary backends HOT 1
- `IndexOutOfBoundsException` in `JacksonAvroParserImpl` for invalid input
- `IndexOutOfBoundsException` in `CBORParser` for invalid input
- Unexpected NullPointerException in `CBORParser`
- Unexpected `NullPointerException` in `ProtobufParser.currentName()`
- `ProtobufParser.currentName()` returns wrong value at root level
- Unexpected `ArrayIndexOutOfBoundsException` in `CBORParser` for corrupt String value
- IonReader.newBytes() throwing `NegativeArraySizeException` HOT 1
- `IonReader` throws `AssertionError` for Timestamp value HOT 1
- `IonReader.next()` throws `ArrayIndexOutOfBoundsException` for some corrupt content HOT 4
- Support for `StreamReadConstraints.maxNameLength` validation for CBOR, Smile backends
- protobuf LocalDateTime UnsupportedOperationException HOT 1
- Upgrade `ion-java` to latest (1.11.4)
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 jackson-dataformats-binary.