influxdata / influxdata/influxdb
[Feature request] Drop field
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Due to inattention, I have two fields, `rx_pkt` and `rx_packets`, each with a few million measurements, and I only need either of those.
Is there an equivalent to the following SQL to get rid of a single field in InfluxDB?
``` sql
alter table traffic drop `rx_pkt`, drop `tx_pkt`
```
Contributor guide
Research direction
Start by examining how InfluxDB stores fields and handles schema changes, then look for existing query-language or database alteration entry points related to the SQL example. Done means defining and implementing a supported way to remove one or more fields without removing the measurement, with tests covering the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100