public static Schema convertToSchema(LogicalType schema) {
        return convertToSchema(schema, true);
    }
@Test
    void testInvalidTimeTypeAvroSchemaConversion() {
        RowType rowType =
                (RowType)
                        ResolvedSchema.of(
                                        Column.physical("a", DataTypes.STRING()),
                                        Column.physical("b", DataTypes.TIME(6)))
                                .toSourceRowDataType()
                                .getLogicalType();

        assertThatThrownBy(() -> AvroSchemaConverter.convertToSchema(rowType))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessage(
                        "Avro does not support TIME type with precision: 6, it only supports precision less than 3.");
    }