return AvroUtils._logicalTime();
/** * Checks {@link AvroTypeConverter#convertToAvro(String, String)} returns logical time-millis avro schema with in case * "time-millis" logical type is passed */ @Test public void testConvertToAvroLogicalTime() { Schema expectedSchema = AvroUtils._logicalTime(); assertEquals(expectedSchema, AvroTypeConverter.convertToAvro(null, "time-millis")); }
.noDefault() .name("time_fld") .type(AvroUtils._logicalTime()) .noDefault() .name("boolean_fld")
/** * Checks {@link TalendType#convertFromAvro(Schema)} converts logical time-millis avro type to "id_Integer" di type */ @Test public void testConvertFromAvroLogicalTimeMillis() { TalendType expectedType = TalendType.INTEGER; Schema fieldSchema = AvroUtils._logicalTime(); assertEquals(expectedType, TalendType.convertFromAvro(fieldSchema)); }
field = new Field(name, AvroUtils._logicalTime(), null, (Object) null); field.addProp(SchemaConstants.TALEND_COLUMN_PATTERN, "HH:mm:ss.SSS'Z'"); break;
field = new Field(name, AvroUtils._logicalTime(), null, (Object) null); field.addProp(SchemaConstants.TALEND_COLUMN_PATTERN, "HH:mm:ss.SSS'Z'"); break;