2021-10-26 08:46:57 +00:00
|
|
|
[package]
|
2024-01-08 16:50:59 +00:00
|
|
|
name = "influxdb3"
|
2022-09-26 14:43:00 +00:00
|
|
|
version.workspace = true
|
|
|
|
authors.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
license.workspace = true
|
2021-10-26 08:46:57 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-02-29 21:21:41 +00:00
|
|
|
# Core Crates
|
|
|
|
clap_blocks.workspace = true
|
|
|
|
iox_query.workspace = true
|
|
|
|
iox_time.workspace = true
|
|
|
|
ioxd_common.workspace = true
|
|
|
|
metric.workspace = true
|
|
|
|
object_store.workspace = true
|
|
|
|
observability_deps.workspace = true
|
|
|
|
panic_logging.workspace = true
|
|
|
|
parquet_file.workspace = true
|
|
|
|
tokio_metrics_bridge.workspace = true
|
|
|
|
trace.workspace = true
|
|
|
|
trace_exporters.workspace = true
|
|
|
|
trogging.workspace = true
|
|
|
|
|
|
|
|
# Local Crates
|
2024-02-20 21:14:19 +00:00
|
|
|
influxdb3_client = { path = "../influxdb3_client" }
|
2024-02-29 21:21:41 +00:00
|
|
|
influxdb3_server = { path = "../influxdb3_server" }
|
2024-01-08 16:50:59 +00:00
|
|
|
influxdb3_write = { path = "../influxdb3_write" }
|
2021-10-26 08:46:57 +00:00
|
|
|
|
2024-02-29 21:21:41 +00:00
|
|
|
# Crates.io dependencies
|
|
|
|
backtrace.workspace = true
|
2024-03-06 17:43:00 +00:00
|
|
|
base64.workspace = true
|
2024-02-29 21:21:41 +00:00
|
|
|
clap.workspace = true
|
|
|
|
dotenvy.workspace = true
|
|
|
|
hex.workspace = true
|
|
|
|
libc.workspace = true
|
|
|
|
num_cpus.workspace = true
|
|
|
|
once_cell.workspace = true
|
|
|
|
parking_lot.workspace = true
|
2024-03-06 17:43:00 +00:00
|
|
|
rand.workspace = true
|
2024-02-29 21:21:41 +00:00
|
|
|
secrecy.workspace = true
|
|
|
|
sha2.workspace = true
|
|
|
|
thiserror.workspace = true
|
|
|
|
tokio.workspace = true
|
|
|
|
tokio-util.workspace = true
|
|
|
|
url.workspace = true
|
|
|
|
uuid.workspace = true
|
|
|
|
|
|
|
|
# Optional Dependencies
|
2023-07-04 12:13:49 +00:00
|
|
|
console-subscriber = { version = "0.1.10", optional = true, features = ["parking_lot"] }
|
2023-07-28 12:45:43 +00:00
|
|
|
tikv-jemalloc-ctl = { version = "0.5.4", optional = true }
|
2024-01-08 16:50:59 +00:00
|
|
|
tikv-jemalloc-sys = { version = "0.5.4", optional = true, features = ["unprefixed_malloc_on_supported_platforms"] }
|
2021-10-26 08:46:57 +00:00
|
|
|
|
|
|
|
[features]
|
2024-03-04 15:51:57 +00:00
|
|
|
default = ["jemalloc_replacing_malloc", "azure", "gcp", "aws"]
|
2021-10-26 08:46:57 +00:00
|
|
|
|
2023-05-22 13:08:20 +00:00
|
|
|
azure = ["clap_blocks/azure"] # Optional Azure Object store support
|
|
|
|
gcp = ["clap_blocks/gcp"] # Optional GCP object store support
|
|
|
|
aws = ["clap_blocks/aws"] # Optional AWS / S3 object store support
|
2022-04-08 17:46:01 +00:00
|
|
|
pprof = ["ioxd_common/pprof"] # Optional http://localhost:8080/debug/pprof/profile support
|
2022-06-21 19:53:28 +00:00
|
|
|
heappy = ["ioxd_common/heappy"] # Optional http://localhost:8080/debug/pproc/alloc support
|
2021-10-26 08:46:57 +00:00
|
|
|
|
2022-04-12 10:33:27 +00:00
|
|
|
# Enable tokio_console support (https://github.com/tokio-rs/console)
|
|
|
|
#
|
|
|
|
# Requires enabling trace level tracing events for [tokio,runtime].
|
|
|
|
tokio_console = ["console-subscriber", "tokio/tracing", "observability_deps/release_max_level_trace"]
|
|
|
|
|
2021-10-26 08:46:57 +00:00
|
|
|
# heappy is an optional feature; Not on by default as it
|
|
|
|
# runtime overhead on all allocations (calls to malloc).
|
|
|
|
# Cargo cannot currently implement mutually exclusive features so let's force every build
|
|
|
|
# to pick either heappy or jemalloc_replacing_malloc feature at least until we figure out something better.
|
2022-03-31 19:14:21 +00:00
|
|
|
jemalloc_replacing_malloc = ["tikv-jemalloc-sys", "tikv-jemalloc-ctl"]
|
2021-11-11 09:48:21 +00:00
|
|
|
|
|
|
|
# Implicit feature selected when running under `clippy --all-features` to accept mutable exclusive features during
|
|
|
|
# linting
|
|
|
|
clippy = []
|
2024-02-20 20:34:39 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-02-29 21:21:41 +00:00
|
|
|
# Core Crates
|
|
|
|
arrow_util.workspace = true
|
|
|
|
influxdb_iox_client.workspace = true
|
2024-02-26 20:07:48 +00:00
|
|
|
|
|
|
|
# Crates.io dependencies in alphabetical order:
|
2024-02-29 21:21:41 +00:00
|
|
|
arrow.workspace = true
|
|
|
|
arrow-array.workspace = true
|
|
|
|
arrow-flight.workspace = true
|
|
|
|
assert_cmd.workspace = true
|
|
|
|
futures.workspace = true
|
|
|
|
hyper.workspace = true
|
feat: add the `api/v3/query_influxql` API (#24696)
feat: add query_influxql api
This PR adds support for the /api/v3/query_influxql API. This re-uses code from the existing query_sql API, but some refactoring was done to allow for code re-use between the two.
The main change to the original code from the existing query_sql API was that the format is determined up front, in the event that the user provides some incorrect Accept header, so that the 400 BAD REQUEST is returned before performing the query.
Support of several InfluxQL queries that previously required a bridge to be executed in 3.0 was added:
SHOW MEASUREMENTS
SHOW TAG KEYS
SHOW TAG VALUES
SHOW FIELD KEYS
SHOW DATABASES
Handling of qualified measurement names in SELECT queries (see below)
This is accomplished with the newly added iox_query_influxql_rewrite crate, which provides the means to re-write an InfluxQL statement to strip out a database name and retention policy, if provided. Doing so allows the query_influxql API to have the database parameter optional, as it may be provided in the query string.
Handling qualified measurement names in SELECT
The implementation in this PR will inspect all measurements provided in a FROM clause and extract the database (DB) name and retention policy (RP) name (if not the default). If multiple DB/RP's are provided, an error is thrown.
Testing
E2E tests were added for performing basic queries against a running server on both the query_sql and query_influxql APIs. In addition, the test for query_influxql includes some of the InfluxQL-specific queries, e.g., SHOW MEASUREMENTS.
Other Changes
The influxdb3_client now has the api_v3_query_influxql method (and a basic test was added for this)
2024-03-01 17:27:38 +00:00
|
|
|
pretty_assertions.workspace = true
|
2024-02-29 21:21:41 +00:00
|
|
|
reqwest.workspace = true
|
feat: add the `api/v3/query_influxql` API (#24696)
feat: add query_influxql api
This PR adds support for the /api/v3/query_influxql API. This re-uses code from the existing query_sql API, but some refactoring was done to allow for code re-use between the two.
The main change to the original code from the existing query_sql API was that the format is determined up front, in the event that the user provides some incorrect Accept header, so that the 400 BAD REQUEST is returned before performing the query.
Support of several InfluxQL queries that previously required a bridge to be executed in 3.0 was added:
SHOW MEASUREMENTS
SHOW TAG KEYS
SHOW TAG VALUES
SHOW FIELD KEYS
SHOW DATABASES
Handling of qualified measurement names in SELECT queries (see below)
This is accomplished with the newly added iox_query_influxql_rewrite crate, which provides the means to re-write an InfluxQL statement to strip out a database name and retention policy, if provided. Doing so allows the query_influxql API to have the database parameter optional, as it may be provided in the query string.
Handling qualified measurement names in SELECT
The implementation in this PR will inspect all measurements provided in a FROM clause and extract the database (DB) name and retention policy (RP) name (if not the default). If multiple DB/RP's are provided, an error is thrown.
Testing
E2E tests were added for performing basic queries against a running server on both the query_sql and query_influxql APIs. In addition, the test for query_influxql includes some of the InfluxQL-specific queries, e.g., SHOW MEASUREMENTS.
Other Changes
The influxdb3_client now has the api_v3_query_influxql method (and a basic test was added for this)
2024-03-01 17:27:38 +00:00
|
|
|
test_helpers.workspace = true
|
2024-02-26 20:07:48 +00:00
|
|
|
tonic.workspace = true
|
2024-02-29 21:21:41 +00:00
|
|
|
tower.workspace = true
|