public static List<String> getFieldNames(LogicalType logicalType) {
        return logicalType.accept(FIELD_NAMES_EXTRACTOR);
    }
@Test
    void testFieldNameExtraction() {
        DataType dataType = ROW(FIELD("f0", INT()), FIELD("f1", STRING()));
        assertThat(LogicalTypeChecks.getFieldNames(dataType.getLogicalType()))
                .containsExactly("f0", "f1");
    }