mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
(improvement)(chat) Remove the special field 'data date' to avoid generating non-existent time fields. (#1596)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user