You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jmao-denver (via GitHub)" <gi...@apache.org> on 2026/01/23 15:32:08 UTC

[PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

jmao-denver opened a new pull request, #48967:
URL: https://github.com/apache/arrow/pull/48967

   
   ### Rationale for this change
   
   The bug breaks a Flight SQL server that refreshens the auth token when cookie authentication is enabled
   
   ### What changes are included in this PR?
   
   1. In the ODBC layer, removed the code that adds a 2nd ClientCookieMiddlewareFactory in the client options (the 1st one is registered in `BuildFlightClientOptions`). This fixes the issue of the duplicate header cookie fields.
   2. In the flight client layer, uses the case-insensitive equality comparator instead of the case-insensitive less-than comparator for the cookies cache which is an unordered map. This fixes the issue of duplicate cookie keys.
   
   ### Are these changes tested?
   Manually on Windows, and CI
   
   ### Are there any user-facing changes?
   
   No


-- 
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-unsubscribe@arrow.apache.org

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


Re: [PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #48967:
URL: https://github.com/apache/arrow/pull/48967#issuecomment-3803423721

   After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 5272a68c134deea82040f2f29bb6257ad7b52be0.
   
   There were 3 benchmark results with an error:
   
   - Commit Run on `amd64-m5-4xlarge-linux` at [2026-01-27 03:53:27Z](https://conbench.arrow-dev.org/compare/runs/2982b782b9bb424a90e51c79a8f9105e...f862fdc3b3db4c9e97a21292ec1f6a1a/)
     - [`dataset-selectivity` (Python) with dataset=chi_traffic_2020_Q1, selectivity=10%](https://conbench.arrow-dev.org/benchmark-results/0697834c1f3c78838000b58252866c4b)
     - [`file-write` (Python) with compression=snappy, dataset=nyctaxi_2010-01, file_type=parquet, input_type=dataframe](https://conbench.arrow-dev.org/benchmark-results/0697849242ea7f2f8000db96ae44a899)
   - and 1 more (see the report linked below)
   
   There were no benchmark performance regressions. 🎉
   
   The [full Conbench report](https://github.com/apache/arrow/runs/61566845320) has more details. It also includes information about 138 possible false positives for unstable benchmarks that are known to sometimes produce them.


-- 
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-unsubscribe@arrow.apache.org

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


Re: [PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #48967:
URL: https://github.com/apache/arrow/pull/48967#issuecomment-3790822528

   :warning: GitHub issue #48966 **has been automatically assigned in GitHub** to PR creator.


-- 
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-unsubscribe@arrow.apache.org

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


Re: [PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on code in PR #48967:
URL: https://github.com/apache/arrow/pull/48967#discussion_r2723792879


##########
cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_connection.cc:
##########


Review Comment:
   CC @alinaliBQ 



-- 
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-unsubscribe@arrow.apache.org

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


Re: [PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm merged PR #48967:
URL: https://github.com/apache/arrow/pull/48967


-- 
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-unsubscribe@arrow.apache.org

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


Re: [PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

Posted by "alinaliBQ (via GitHub)" <gi...@apache.org>.
alinaliBQ commented on code in PR #48967:
URL: https://github.com/apache/arrow/pull/48967#discussion_r2728952120


##########
cpp/src/arrow/flight/sql/odbc/odbc_impl/flight_sql_connection.cc:
##########


Review Comment:
   This ODBC change LGTM



-- 
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-unsubscribe@arrow.apache.org

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


Re: [PR] GH-48966: [C++] Fix cookie duplication in the Flight SQL ODBC driver and the Flight Client [arrow]

Posted by "alinaliBQ (via GitHub)" <gi...@apache.org>.
alinaliBQ commented on PR #48967:
URL: https://github.com/apache/arrow/pull/48967#issuecomment-3801368830

   @lidavidm Please help approve the 2 workflows to run


-- 
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-unsubscribe@arrow.apache.org

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