This is an automated email from the ASF dual-hosted git repository. twalthr pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 094bf1ead5ba0a02b6b4f711f991638da8076841 Author: slinkydeveloper <[email protected]> AuthorDate: Wed Sep 29 17:53:59 2021 +0200 [FLINK-24399][table-common] Fix DataTypeUtils#flattenToNames javadoc Signed-off-by: slinkydeveloper <[email protected]> --- .../java/org/apache/flink/table/types/utils/DataTypeUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/DataTypeUtils.java b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/DataTypeUtils.java index 110b97f..d9076bd 100644 --- a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/DataTypeUtils.java +++ b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/DataTypeUtils.java @@ -334,12 +334,15 @@ public final class DataTypeUtils { return Collections.singletonList(dataType); } - /** Returns the names of the flat representation in the first level of the given data type. */ + /** + * Returns the names of the flat representation of the given data type. In case of {@link + * StructuredType}, the list also includes the super type fields. + */ public static List<String> flattenToNames(DataType dataType) { return flattenToNames(dataType, Collections.emptyList()); } - /** Returns the names of the flat representation in the first level of the given data type. */ + /** @see DataTypeUtils#flattenToNames(DataType) */ public static List<String> flattenToNames(DataType dataType, List<String> existingNames) { final LogicalType type = dataType.getLogicalType(); if (hasRoot(type, LogicalTypeRoot.DISTINCT_TYPE)) {
