Conversation
| Ok(Self::new(channel)) | ||
| } | ||
|
|
||
| /// Creates a new HTTPs FlightSql Client that connects via TCP to a server |
| - name: Test --examples | ||
| run: | | ||
| cargo test -p arrow-flight --features=flight-sql-experimental --examples | ||
| - name: Test --examples with TLS |
| .tls_config(tls_config) | ||
| .map_err(|_| ArrowError::IoError("Cannot create endpoint".to_string()))?; | ||
|
|
||
| let channel = endpoint.connect().await.map_err(|e| { |
There was a problem hiding this comment.
FWIW my eventual plan is to change the signature of the FlightSQL client to be fn new(channel: Channel) (thus leaving the TLS configuration / setup up to the caller. It is great to have an example implementation / test in arrow-rs however
There was a problem hiding this comment.
Yea, this is basically similar signature as http version api. We can have a fn new(channel: Channel) for more customized usage.
There was a problem hiding this comment.
👍 I am going to propose (in some future PR) that instead of these higher level APIs we'll just have the Channel API and have doc examples showing how to configure the Channel for these usecases
|
Thank you @alamb |
|
Benchmark runs are scheduled for baseline = 17b3210 and contender = 733b7e7. 733b7e7 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #3309.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?