This is an automated email from the ASF dual-hosted git repository.
w41ter pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new dfe7db7094c branch-3.0: [chore](binlog) Add table type to getMeta
method #45942 (#45971)
dfe7db7094c is described below
commit dfe7db7094c8c88b24dbfced365a10a48aed3395
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 27 14:45:43 2024 +0800
branch-3.0: [chore](binlog) Add table type to getMeta method #45942 (#45971)
Cherry-picked from #45942
Co-authored-by: walter <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 1 +
gensrc/thrift/FrontendService.thrift | 1 +
2 files changed, 2 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
index f703fa0926a..4cedb49ee6c 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
@@ -6452,6 +6452,7 @@ public class Env {
try {
tableMeta.setId(olapTable.getId());
tableMeta.setName(olapTable.getName());
+ tableMeta.setType(olapTable.getType().name());
PartitionInfo tblPartitionInfo = olapTable.getPartitionInfo();
diff --git a/gensrc/thrift/FrontendService.thrift
b/gensrc/thrift/FrontendService.thrift
index cb2f3fe9b9a..bd8b83420d8 100644
--- a/gensrc/thrift/FrontendService.thrift
+++ b/gensrc/thrift/FrontendService.thrift
@@ -1612,6 +1612,7 @@ struct TGetMetaTableMeta {
2: optional string name
3: optional bool in_trash
4: optional list<TGetMetaPartitionMeta> partitions
+ 5: optional string type
}
struct TGetMetaDBMeta {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]