This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 4797e6fe047 branch-3.1: [feat](api) add nullable info for api _schema
#46557 (#54229)
4797e6fe047 is described below
commit 4797e6fe047cac4badf5d2e0b7ddc510b44d213c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 4 10:02:42 2025 +0800
branch-3.1: [feat](api) add nullable info for api _schema #46557 (#54229)
Cherry-picked from #46557
Co-authored-by: camby <[email protected]>
---
.../src/main/java/org/apache/doris/httpv2/rest/TableSchemaAction.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/TableSchemaAction.java
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/TableSchemaAction.java
index 0f362b4aad8..ec97c2c241f 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/TableSchemaAction.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/TableSchemaAction.java
@@ -109,6 +109,7 @@ public class TableSchemaAction extends RestBaseController {
Optional aggregationType =
Optional.ofNullable(column.getAggregationType());
baseInfo.put("aggregation_type",
aggregationType.isPresent()
? column.getAggregationType().toSql() : "");
+ baseInfo.put("is_nullable", column.isAllowNull() ?
"Yes" : "No");
propList.add(baseInfo);
}
resultMap.put("status", 200);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]