Skip to content

NIFI-6158 Fix conversion of Avro fixed type with logicalType decimal#3665

Closed
bbende wants to merge 1 commit intoapache:masterfrom
bbende:NIFI-6158
Closed

NIFI-6158 Fix conversion of Avro fixed type with logicalType decimal#3665
bbende wants to merge 1 commit intoapache:masterfrom
bbende:NIFI-6158

Conversation

@bbende
Copy link
Contributor

@bbende bbende commented Aug 22, 2019

This fixes an issue reported through the Parquet processors, but was really a general problem when reading records with a field that used the "fixed" type and a logicalType of decimal. Our type util code was missing the check for the logicalType and just converting to byte array.

I added a unit test to FetchParquet to prove that it is resolved, although there are no code changes to the Parquert bundle itself.

Also noticed that unit tests were failing to initialize logging correctly due to finding multiple SLF4J bindings, so this PR includes a small change to enforce that logback-core is marked as provided which allows tests to use the slf4j-simple module which is already on the test classpath of all NARs.

@ijokarumawak
Copy link
Member

@bbende Thanks for the fix and detailed explanation about changes. All LGTM, +1. Merging to master. Thank you!

@asfgit asfgit closed this in cc88dd4 Aug 26, 2019
szaboferee pushed a commit to szaboferee/nifi that referenced this pull request Oct 7, 2019
This closes apache#3665.

Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
patricker pushed a commit to patricker/nifi that referenced this pull request Jan 22, 2020
This closes apache#3665.

Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants