(improvement)(chat) Remove the special field 'data date' to avoid generating non-existent time fields. (#1596)

This commit is contained in:
lexluo09
2024-08-23 13:37:14 +08:00
committed by GitHub
parent afa82bf98d
commit be9a8bbc27
6 changed files with 127 additions and 141 deletions

View File

@@ -127,6 +127,16 @@ public class DataSetSchema {
return dimensions.stream().anyMatch(SchemaElement::containsPartitionTime);
}
public SchemaElement getPartitionDimension() {
for (SchemaElement dimension : dimensions) {
String partitionTimeFormat = dimension.getPartitionTimeFormat();
if (StringUtils.isNotBlank(partitionTimeFormat)) {
return dimension;
}
}
return null;
}
public String getPartitionTimeFormat() {
for (SchemaElement dimension : dimensions) {
String partitionTimeFormat = dimension.getPartitionTimeFormat();