public static List<String> flattenToNames(DataType dataType) {
        return flattenToNames(dataType, Collections.emptyList());
    }
@Test
    void testFlattenToNames() {
        assertThat(DataTypeUtils.flattenToNames(INT(), Collections.emptyList())).containsOnly("f0");

        assertThat(DataTypeUtils.flattenToNames(INT(), Collections.singletonList("f0")))
                .containsOnly("f0_0");

        assertThat(
                        DataTypeUtils.flattenToNames(
                                ROW(FIELD("a", INT()), FIELD("b", BOOLEAN())),
                                Collections.emptyList()))
                .containsExactly("a", "b");
    }