mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
[improvement][headless]Remove fixed TimeEnums fields.
This commit is contained in:
@@ -89,12 +89,7 @@ public class DataSetSchema implements Serializable {
|
||||
}
|
||||
|
||||
public SchemaElement getPartitionDimension() {
|
||||
for (SchemaElement dimension : dimensions) {
|
||||
if (dimension.isPartitionTime()) {
|
||||
return dimension;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return dimensions.stream().filter(SchemaElement::isPartitionTime).findFirst().orElse(null);
|
||||
}
|
||||
|
||||
public SchemaElement getPrimaryKey() {
|
||||
|
||||
Reference in New Issue
Block a user