Skip to content

Commit

Permalink
added handling for dynamic param in cottontail
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed Aug 29, 2024
1 parent df0b555 commit afaf25c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ public static CottontailGrpc.Literal toData( PolyValue value, PolyType actualTyp
case DECIMAL: {
if ( value.isNumber() ) {
return builder.setStringData( value.asNumber().BigDecimalValue().toString() ).build();
} else if ( value.isString() ) {
return builder.setStringData( value.asString().value ).build();
}
break;
}
Expand Down

0 comments on commit afaf25c

Please sign in to comment.