fn build_ts_value(value: i64, unit: TsUnit) -> Result<Value, AvroError>