This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 1b326d799b GH-46920: [FlightRPC] Fix Flight SQL ColumnMetadata 
retrieval (#46921)
1b326d799b is described below

commit 1b326d799badf1ae243449253adc6a3615589f66
Author: Igor Antropov <[email protected]>
AuthorDate: Fri Jun 27 00:37:27 2025 +0100

    GH-46920: [FlightRPC] Fix Flight SQL ColumnMetadata retrieval (#46921)
    
    ### Rationale for this change
    Fix column metadata retrieval for flight sql.
    
    ### Are these changes tested?
    Yes
    
    ### Are there any user-facing changes?
    No
    
    * GitHub Issue: #46920
    
    Authored-by: Igor Antropov <[email protected]>
    Signed-off-by: David Li <[email protected]>
---
 cpp/src/arrow/flight/sql/column_metadata.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpp/src/arrow/flight/sql/column_metadata.cc 
b/cpp/src/arrow/flight/sql/column_metadata.cc
index e9b9db05d8..30f557084b 100644
--- a/cpp/src/arrow/flight/sql/column_metadata.cc
+++ b/cpp/src/arrow/flight/sql/column_metadata.cc
@@ -99,20 +99,20 @@ arrow::Result<bool> ColumnMetadata::GetIsAutoIncrement() 
const {
 
 arrow::Result<bool> ColumnMetadata::GetIsCaseSensitive() const {
   std::string is_case_sensitive;
-  ARROW_ASSIGN_OR_RAISE(is_case_sensitive, 
metadata_map_->Get(kIsAutoIncrement));
+  ARROW_ASSIGN_OR_RAISE(is_case_sensitive, 
metadata_map_->Get(kIsCaseSensitive));
   return StringToBoolean(is_case_sensitive);
 }
 
 arrow::Result<bool> ColumnMetadata::GetIsReadOnly() const {
   std::string is_read_only;
-  ARROW_ASSIGN_OR_RAISE(is_read_only, metadata_map_->Get(kIsAutoIncrement));
+  ARROW_ASSIGN_OR_RAISE(is_read_only, metadata_map_->Get(kIsReadOnly));
   return StringToBoolean(is_read_only);
 }
 
 arrow::Result<bool> ColumnMetadata::GetIsSearchable() const {
-  std::string is_case_sensitive;
-  ARROW_ASSIGN_OR_RAISE(is_case_sensitive, 
metadata_map_->Get(kIsAutoIncrement));
-  return StringToBoolean(is_case_sensitive);
+  std::string is_searchable;
+  ARROW_ASSIGN_OR_RAISE(is_searchable, metadata_map_->Get(kIsSearchable));
+  return StringToBoolean(is_searchable);
 }
 
 arrow::Result<std::string> ColumnMetadata::GetRemarks() const {

Reply via email to