[FlightRPC][FlightSQL][Java] Make FlightSqlClientDemo a general purpose tool
- Vorherrschende Sprache
- Java
- Sterne
- 94
- Forks
- 152
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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.
**Reporter**: [James Duong](https://issues.apache.org/jira/browse/ARROW-15843) / @jduo
**Note**: *This issue was originally created as [ARROW-15843](https://issues.apache.org/jira/browse/ARROW-15843). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Testprogramm FlightSqlClientDemo und die Konfiguration des flight-sql-Moduls zu finden. Prüfe, wie ClientCookieMiddleware den vorgeschlagenen interaktiven Modus unterstützen könnte, und lege anschließend den Umfang für Zugangsdaten, Bearer- und beliebige Header, die interaktive Ausführung und den Einstiegspunkt des shaded JARs fest. Als erledigt gilt die Aufgabe, wenn das Tool die ausgewählten Optionen unterstützt und bequem gegen Produktionsdatenbanken ausgeführt werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- cli, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100