Fix DECIMAL handling in Avrorouter

The DECIMAL value type is now properly handled in Avrorouter. It is
processed into an Avro double value when before it was ignored and
replaced with a zero integer.
This commit is contained in:
Markus Mäkelä
2016-12-17 12:15:16 +02:00
parent 488a9d24e3
commit 269a97b2de
4 changed files with 94 additions and 28 deletions

View File

@ -44,7 +44,6 @@ static const char* column_type_to_avro_type(uint8_t type)
{
switch (type)
{
case TABLE_COL_TYPE_NEWDECIMAL:
case TABLE_COL_TYPE_TINY:
case TABLE_COL_TYPE_SHORT:
case TABLE_COL_TYPE_LONG:
@ -56,6 +55,7 @@ static const char* column_type_to_avro_type(uint8_t type)
return "float";
case TABLE_COL_TYPE_DOUBLE:
case TABLE_COL_TYPE_NEWDECIMAL:
return "double";
case TABLE_COL_TYPE_NULL: