Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Sep 24, 2024
1 parent d4c1b39 commit 4f35d30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 0 additions & 6 deletions fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,6 @@ public void readFields(DataInput in) throws IOException {
this.createTime = in.readLong();
}

// return if this table is partitioned.
// For OlapTable, return true only if its partition type is RANGE or HASH
public boolean isPartitionedTable() {
return false;
}

// return if this table is partitioned, for planner.
// For OlapTable ture when is partitioned, or distributed by hash when no partition
public boolean isPartitionDistributed() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,4 +556,8 @@ default boolean isPartitionColumn(String columnName) {
default Set<String> getDistributionColumnNames() {
return Sets.newHashSet();
}

default boolean isPartitionedTable() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -920,4 +920,10 @@ private List<HiveMetaStoreCache.FileCacheValue> getFilesForPartitions(
String bindBrokerName = catalog.bindBrokerName();
return cache.getFilesByPartitionsWithoutCache(hivePartitions, bindBrokerName);
}

@Override
public boolean isPartitionedTable() {
makeSureInitialized();
return remoteTable.getPartitionKeysSize() > 0;
}
}

0 comments on commit 4f35d30

Please sign in to comment.