@Override
  public List<String> mapRow(Row element) {
    List<String> res = new ArrayList<>();

    Schema s = element.getSchema();
    for (int i = 0; i < s.getFieldCount(); i++) {
      res.add(convertFieldToString(s.getField(i).getType(), element.getValue(i)));
    }

    return res;
  }
@Test
  public void testAllDataTypes() {
    Schema.Builder schemaBuilder = new Schema.Builder();
    schemaBuilder.addField("byte", Schema.FieldType.BYTE);
    schemaBuilder.addField("int16", Schema.FieldType.INT16);
    schemaBuilder.addField("int32", Schema.FieldType.INT32);
    schemaBuilder.addField("int64", Schema.FieldType.INT64);
    schemaBuilder.addField("float", Schema.FieldType.FLOAT);
    schemaBuilder.addField("double", Schema.FieldType.DOUBLE);
    schemaBuilder.addField("decimal", Schema.FieldType.DECIMAL);
    schemaBuilder.addField("boolean", Schema.FieldType.BOOLEAN);
    schemaBuilder.addField("datetime", Schema.FieldType.DATETIME);
    schemaBuilder.addField("bytes", Schema.FieldType.BYTES);
    schemaBuilder.addField("string", Schema.FieldType.STRING);
    Schema schema = schemaBuilder.build();

    Row.Builder rowBuilder = Row.withSchema(schema);
    rowBuilder.addValue((byte) 10);
    rowBuilder.addValue((short) 10);
    rowBuilder.addValue(10);
    rowBuilder.addValue((long) 10);
    rowBuilder.addValue((float) 10.1);
    rowBuilder.addValue(10.1);
    rowBuilder.addValue(new BigDecimal("10.1"));
    rowBuilder.addValue(false);
    rowBuilder.addValue(new DateTime("2022-01-01T10:10:10.012Z"));
    rowBuilder.addValue("asd".getBytes(StandardCharsets.UTF_8));
    rowBuilder.addValue("asd");
    Row row = rowBuilder.build();

    SingleStoreDefaultUserDataMapper mapper = new SingleStoreDefaultUserDataMapper();
    List<String> res = mapper.mapRow(row);

    assertEquals(11, res.size());
    assertEquals("10", res.get(0));
    assertEquals("10", res.get(1));
    assertEquals("10", res.get(2));
    assertEquals("10", res.get(3));
    assertEquals("10.1", res.get(4));
    assertEquals("10.1", res.get(5));
    assertEquals("10.1", res.get(6));
    assertEquals("0", res.get(7));
    assertEquals("2022-01-01 10:10:10.012", res.get(8));
    assertEquals("asd", res.get(9));
    assertEquals("asd", res.get(10));
  }