aucahuasi commented on code in PR #14082:
URL: https://github.com/apache/arrow/pull/14082#discussion_r1009529802


##########
cpp/src/arrow/flight/sql/server.h:
##########
@@ -686,50 +686,50 @@ class ARROW_FLIGHT_SQL_EXPORT SqlSchema {
  public:
   /// \brief Get the Schema used on GetCatalogs response.
   /// \return The default schema template.
-  static std::shared_ptr<Schema> GetCatalogsSchema();
+  static const std::shared_ptr<Schema>& GetCatalogsSchema();

Review Comment:
   In which cases it was not ideal? when invoking from 
`FlightSqlServerBase::DoGet`?
   If that's the case, I think there are other `DoGet*Schema`s that keep 
returning just a shared ptr instead a reference.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to