Describe the bug, including details regarding any error messages, version, and platform.
FlightEndpoint returned by GetFlightInfoPreparedStatement is another flight server, but JDBC Flight SQL driver still fetch results from main flight server connection.
version: 15.0.0 release and 15.0.0 nightlies 2024.2.20
#38785, In fact I found this problem in arrow 14.0.1, It was solved using 15.0.0 nightlies at that time, but today I tried again and found problem occurred again.
#38521 This PR seems to actually solve this problem.
Component(s)
FlightRPC