influxdata / influxdata/influxdb-client-csharp
EndsWith() is not supported
- Dominant language
- C#
- Stars
- 377
- Forks
- 93
- Avg merge
- 9m
- Merged PRs (30d)
- 2
Description
__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.
var client = new InfluxDL(null);
var influxDBQuery = client.Query();
var query = from s in influxDBQuery
where s.Timestamp > new DateTime(2023, 02, 17, 6, 10, 0, DateTimeKind.Utc)
&& s.Name.EndsWith(".ServiceData.General.OperatingTime")
select s;
System.Diagnostics.Debugger.Break();
var data = query.ToList();
__Expected behavior:__
The function should filter on the string. in the Linq query for sql this is supported. Contains() doesn't work either. Is there a solution for this?
**The following exception occurs:**
The expression '[s].Name.EndsWith(".ServiceData.General.OperatingTime")', type: 'System.Linq.Expressions.MethodCallExpression' is not supported.
__Specifications:__
- Client Version: 4.10.0
- InfluxDB Version: InfluxDB v2.6.1 build_date: 2022-12-29T15:53:06Z
- Platform: Windows 10
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the LINQ query shown in the issue, focusing on the expression visitor or query translation path that rejects MethodCallExpression. Check the existing query translation tests, if present, and consider the work complete when the EndsWith and Contains filters execute successfully without the reported unsupported-expression exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100