use of io.questdb.cutlass.text.DefaultTextConfiguration in project questdb by bluestreak01.
the class TypeManagerTest method createTypeManager.
private TypeManager createTypeManager(String fileResource) throws JsonException {
InputFormatConfiguration inputFormatConfiguration = new InputFormatConfiguration(new DateFormatFactory(), DateLocaleFactory.INSTANCE, new TimestampFormatFactory(), DateFormatUtils.enLocale);
inputFormatConfiguration.parseConfiguration(jsonLexer, fileResource);
return new TypeManager(new DefaultTextConfiguration(fileResource), utf8Sink);
}
use of io.questdb.cutlass.text.DefaultTextConfiguration in project questdb by bluestreak01.
the class TypeManagerTest method testIllegalParameterForGetTypeAdapter.
private void testIllegalParameterForGetTypeAdapter(int columnType) {
TextConfiguration textConfiguration = new DefaultTextConfiguration();
TypeManager typeManager = new TypeManager(textConfiguration, utf8Sink);
try {
typeManager.getTypeAdapter(columnType);
Assert.fail();
} catch (CairoException e) {
TestUtils.assertContains(e.getFlyweightMessage(), "no adapter for type");
}
}
Aggregations