Skip to content

Commit

Permalink
add token & basic auth support for flightsql endpoint (#318)
Browse files Browse the repository at this point in the history
required to enable SSL in grafana's flightsql plugin
  • Loading branch information
houqp committed Mar 11, 2024
1 parent 81a2520 commit c2a3268
Show file tree
Hide file tree
Showing 14 changed files with 218 additions and 91 deletions.
109 changes: 66 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ produced by `columnq` into different formats based on client request.
Building ROAPI with `simd` optimization requires nightly rust toolchain.
### Debug
To log all FlightSQL requests in console, set `RUST_LOG=tower_http=trace`.
### Build Docker image
```bash
Expand Down
1 change: 0 additions & 1 deletion columnq/src/columnq.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::hash_map::Entry;
use std::collections::HashMap;
use std::convert::TryFrom;
use std::sync::Arc;

use datafusion::arrow;
Expand Down
1 change: 0 additions & 1 deletion columnq/src/encoding/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use serde_derive::Deserialize;
use std::convert::TryFrom;

#[derive(Deserialize, Default, Clone, Copy)]
pub enum ContentType {
Expand Down
2 changes: 0 additions & 2 deletions columnq/src/io/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::convert::TryFrom;

use snafu::prelude::*;

pub mod fs;
Expand Down
1 change: 0 additions & 1 deletion columnq/src/io/object_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::table::TableSource;
use futures::TryStreamExt;
use log::debug;
use object_store::ObjectStore;
use percent_encoding;
use snafu::prelude::*;
use std::str::FromStr;
use std::sync::Arc;
Expand Down
2 changes: 0 additions & 2 deletions columnq/src/query/graphql.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::convert::TryFrom;

use datafusion::arrow;
use datafusion::logical_expr::Operator;
use datafusion::prelude::{binary_expr, Column, Expr};
Expand Down

0 comments on commit c2a3268

Please sign in to comment.