influxdata / influxdata/influxdb

[Feature request] Drop field

Open
#6,150 52 comments 204 reactions 0 assignees View on GitHub
1.x area/queries kind/feature-request
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.