We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dd559c commit ba31dc1Copy full SHA for ba31dc1
1 file changed
cpp/src/arrow/flight/sql/server.cc
@@ -537,7 +537,13 @@ arrow::Result<std::string> CreateStatementQueryTicket(
537
ticket_statement_query.set_statement_handle(statement_handle);
538
539
google::protobuf::Any ticket;
540
+#if PROTOBUF_VERSION >= 3015000
541
+ if (!ticket.PackFrom(ticket_statement_query)) {
542
+ return Status::IOError("Failed to pack ticket");
543
+ }
544
+#else
545
ticket.PackFrom(ticket_statement_query);
546
+#endif
547
548
std::string ticket_string;
549
0 commit comments