influxdata / influxdata/influxdb

Linq Query Take() does not work

Open
#24,093 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
Code:
![image](https://user-images.githubusercontent.com/62056776/218435940-c491bd84-6db7-439e-bc86-471751d1ec3b.png)

__Expected behavior:__
I expected that the take(10) function in line 52 would only give me 10 entries

__Actual behavior:__
Despite the take(10) function, all entries are delivered to me
![image](https://user-images.githubusercontent.com/62056776/218436565-bda971e2-5c21-4a0d-a402-b2a774f464af.png)

__Environment info:__

* System info: Windows 10
* InfluxDB version: InfluxDB v2.6.1 build_date: 2022-12-29T15:53:06Z
* InfluxDB Linq: InfluxDB.Client.Linq --version 4.10.0

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the LINQ query shown in the issue's image with InfluxDB.Client.Linq 4.10.0 against InfluxDB 2.6.1, focusing on the Take(10) call on line 52. Trace how that query is translated and verify the fix by confirming that exactly 10 entries are returned.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.