James Duong created ARROW-15843:
-----------------------------------
Summary: [FlightRPC][FlightSQL][Java] Make FlightSqlExample a
general purpose tool
Key: ARROW-15843
URL: https://issues.apache.org/jira/browse/ARROW-15843
Project: Apache Arrow
Issue Type: Improvement
Components: FlightRPC, Java
Reporter: James Duong
The FlightSqlClientDemo test program has a limited set of options that prevents
it from being used against production databases. It does work against the Derby
and SQLite examples though.
The major limitation is that there is no way to supply authentication
information. The proposal here is to add support for passing in HTTP basic
credentials and Authorization: Bearer headers.
Another useful feature would be an option to supply arbitrary headers (as a way
of support server-specific options).
Lastly, it would be good to add an interactive mode that just ran the tool in a
loop based on user input (and use ClientCookieMiddleware in this mode to
persist state).
A shaded configuration of the flight-sql module that set this tool's main
function as the JAR entry point would make it more friendly to run as well.
This would make the tool comparable to SQLLine.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)