pitrou commented on a change in pull request #11507:
URL: https://github.com/apache/arrow/pull/11507#discussion_r756372030



##########
File path: cpp/src/arrow/flight/sql/sql_info_internal.h
##########
@@ -0,0 +1,87 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include "arrow/flight/sql/sql_info_types.h"
+
+namespace arrow {
+namespace flight {
+namespace sql {
+namespace internal {
+
+/// \brief Auxiliary class used to populate GetSqlInfo's DenseUnionArray with 
different
+/// data types.
+class SqlInfoResultAppender {
+ public:
+  /// \brief Appends a string to the DenseUnionBuilder.
+  /// \param[in] value Value to be appended.
+  Status operator()(const std::string& value);
+
+  /// \brief Appends a bool to the DenseUnionBuilder.
+  /// \param[in] value Value to be appended.
+  Status operator()(bool value);
+
+  /// \brief Appends a int64_t to the DenseUnionBuilder.
+  /// \param[in] value Value to be appended.
+  Status operator()(int64_t value);
+
+  /// \brief Appends a int64_t to the DenseUnionBuilder.
+  /// \param[in] value Value to be appended.
+  Status operator()(int32_t value);
+
+  /// \brief Appends a string list to the DenseUnionBuilder.
+  /// \param[in] value Value to be appended.
+  Status operator()(const std::vector<std::string>& value);
+
+  /// \brief Appends a int32 to int32 list map to the DenseUnionBuilder.
+  /// \param[in] value Value to be appended.
+  Status operator()(const std::unordered_map<int32_t, std::vector<int32_t>>& 
value);

Review comment:
       Hmm, woops, I had misread the snippet above. My bad.




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to