public static TypeSerializer toInternalSerializer(LogicalType logicalType) {
        return logicalType.accept(new LogicalTypetoInternalSerializerConverter());
    }
@Test
    void testLogicalTypetoInternalSerializer() {
        List<RowType.RowField> rowFields = new ArrayList<>();
        rowFields.add(new RowType.RowField("f1", new BigIntType()));
        RowType rowType = new RowType(rowFields);
        TypeSerializer baseSerializer = PythonTypeUtils.toInternalSerializer(rowType);
        assertThat(baseSerializer).isInstanceOf(RowDataSerializer.class);

        assertThat(((RowDataSerializer) baseSerializer).getArity()).isEqualTo(1);
    }