influxdata / influxdata/docs-v2

docs: Impossible to get two values in one row with "duplicate-points" example query

Open
#2,094 1 comment 0 reactions 1 assignee View on GitHub

@mluu12 is already working on this.

Since Aug 3, 2021.

InfluxDB v2 product:v2
Dominant language
JavaScript
Stars
82
Forks
326
Avg merge
1d 1h
Merged PRs (30d)
82

Description

The page https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/duplicate-points/ describes how to write 2 values in the database with flux. But the returned values look completely different for me. Instead of one row with two values dnsLookup and firstByte, I get two rows:

_time _measurement host region _value _field
-------------------- ------------ ----- ------- ------ ---------
2019-05-31T00:00:00Z web host2 us_west 7 dnsLookup
2019-05-31T00:00:00Z web host2 us_west 15 firstByte

Instead of what is shown in the page

_time _measurement host region dnsLookup firstByte
-------------------- ------------ ----- ------- --------- ---------
2019-05-31T00:00:00Z web host2 us_west 7 15

Either the implicit join is not working or the example is missing an explicit join of the two rows.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.