apache / apache/arrow-java

[FlightRPC][FlightSQL][Java] Make FlightSqlClientDemo a general purpose tool

Đang mở
#348 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Type: enhancement
Ngôn ngữ chính
Java
Star
94
Fork
152
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
11

Mô tả

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.*

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tìm chương trình kiểm thử FlightSqlClientDemo và cấu hình module flight-sql. Xem xét cách ClientCookieMiddleware có thể hỗ trợ chế độ tương tác được đề xuất, sau đó xác định phạm vi cho thông tin xác thực, các header bearer và header tùy ý, việc thực thi tương tác và entry point của shaded JAR. Được xem là hoàn thành khi công cụ hỗ trợ các tùy chọn đã chọn và có thể được chạy thuận tiện trên các cơ sở dữ liệu production.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
cli, tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.