This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 9fc6b8d2f9a [feat](api) add nullable info for api _schema (#46557) 9fc6b8d2f9a is described below commit 9fc6b8d2f9a4cf5d60b19ec177925680a358e97c Author: camby <camby...@tencent.com> AuthorDate: Sat Jan 11 13:46:01 2025 +0800 [feat](api) add nullable info for api _schema (#46557) ### What problem does this PR solve? spark doris connector still use `/api/<db>/<table>/_schema` api to get column info, here we need nullable information. like information_schema.columns, we add property: `is_nullable = Yes or No` --- .../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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org