jcralmeida commented on a change in pull request #11982:
URL: https://github.com/apache/arrow/pull/11982#discussion_r811378519



##########
File path: cpp/src/arrow/flight/sql/client.h
##########
@@ -135,6 +135,19 @@ class ARROW_EXPORT FlightSqlClient {
   arrow::Result<std::unique_ptr<FlightInfo>> GetTableTypes(
       const FlightCallOptions& options);
 
+  /// \brief Request the information about all the data types supported.
+  /// \param[in] options          RPC-layer hints for this call.
+  /// \return The FlightInfo describing where to access the dataset.
+  arrow::Result<std::unique_ptr<FlightInfo>> GetTypeInfo(
+      const FlightCallOptions& options);
+
+  /// \brief Request the information about all the data types supported.
+  /// \param[in] options          RPC-layer hints for this call.
+  /// \param[in] data_type        The data type to search for as filtering.
+  /// \return The FlightInfo describing where to access the dataset.
+  arrow::Result<std::unique_ptr<FlightInfo>> GetTypeInfo(const 
FlightCallOptions& options,
+                                                         int data_type);

Review comment:
       For the JDBC use no, since it always return all the typeInfo. However, 
when the ODBC start using this implementaion, it will require a filter. 
   
   The ODBC call for the sqlType info takes a parameter
   
   **e.g.**
   When calling like this, it will return all the types. In this case the ODBC 
layer would call the one without filtering.
   ```
         result = SQLGetTypeInfo(g_stmt, SQL_ALL_TYPES);
   ```
   
   If you want to filter you should call like this. Then, the ODBC layer would 
call the one that takes the filter parameter
   ```
         result = SQLGetTypeInfo(g_stmt, SQL_INTEGER);
   ```




-- 
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