lidavidm commented on code in PR #14082:
URL: https://github.com/apache/arrow/pull/14082#discussion_r1009609330
##########
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:
Then ideally we should make them return 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]