mirror of
https://github.com/apache/druid.git
synced 2025-03-04 08:19:40 +00:00
Merge pull request #886 from metamx/smileFix
Allow Smile to fall back to text
This commit is contained in:
commit
034347ffe9
@ -48,7 +48,9 @@ public class JacksonModule implements Module
|
||||
@Provides @LazySingleton @Smile
|
||||
public ObjectMapper smileMapper()
|
||||
{
|
||||
ObjectMapper retVal = new DefaultObjectMapper(new SmileFactory());
|
||||
final SmileFactory smileFactory = new SmileFactory();
|
||||
smileFactory.delegateToTextual(true);
|
||||
final ObjectMapper retVal = new DefaultObjectMapper(smileFactory);
|
||||
retVal.getFactory().setCodec(retVal);
|
||||
return retVal;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user