From 9cc5aaf09a6805da0e175653b9c996f5f7f07238 Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Fri, 27 Oct 2023 13:21:26 +0800 Subject: [PATCH] 4 --- .../doris/service/arrowflight/DorisFlightSqlProducer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java index 66fd75610631f03..7eaeca3281593a2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java +++ b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java @@ -30,7 +30,6 @@ import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Message; -import static java.util.Arrays.asList; import org.apache.arrow.flight.CallStatus; import org.apache.arrow.flight.Criteria; import org.apache.arrow.flight.FlightDescriptor; @@ -130,7 +129,7 @@ public FlightInfo getFlightInfoStatement(final CommandStatementQuery request, fi ticket = new Ticket(Any.pack(ticketStatement).toByteArray()); location = Location.forGrpcInsecure(Env.getCurrentEnv().getSelfNode().getHost(), Env.getCurrentEnv().getSelfNode().getPort()); - schema = new Schema(asList( + schema = new Schema(Collections.singletonList( new Field("i", new FieldType(true, new Bool(), null, null), null) )); } else {