influxdata / influxdata/influx-cli

Support chunked responses for REPL queries

Open
#390 0 comments 0 reactions 1 assignee Claimed by @candrewlee14 View on GitHub
Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

The 1.x InfluxDB CLI supported chunked responses with the command `chunked`.
The 2.x REPL does not yet, but it should. The 2.x docs don't show that this functionality is available, but this code exists in OSS (and similar code in cloud):
```go
// Parse chunk size. Use default if not provided or cannot be parsed
chunked := r.FormValue("chunked") == "true"
chunkSize := DefaultChunkSize
if chunked {
if n, err := strconv.ParseInt(r.FormValue("chunk_size"), 10, 64); err == nil && int(n) > 0 {
chunkSize = int(n)
}
}
```
Relevant docs page:
https://docs.influxdata.com/influxdb/v2.2/query-data/influxql/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.