influxdata / influxdata/influxdb-client-csharp

System.NotSupportedException: 'The expression 'Contains', type: 'System.Linq.Expressions.MethodCallExpression' is not supported.'

Open
#517 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
377
Forks
93
Avg merge
9m
Merged PRs (30d)
2

Description

I have this specific error with linq:
"System.NotSupportedException: 'The expression '[s].Node.Contains("0")', type: 'System.Linq.Expressions.MethodCallExpression' is not supported.'"

this is the code:


var query = (from s in InfluxDBQueryable.Queryable(BucketName,
Organization,
queryApiTest,
memberResolver)
where s.Measurament == _MEASUREMENT_LAST_DATA
&& s.Node.Contains(0.ToString())
select s).ToList();

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at InfluxDBQueryable.Queryable and reproduce the shown LINQ query using s.Node.Contains(0.ToString()). Trace the expression-handling path that rejects the MethodCallExpression and check existing query translation coverage. Done should be defined by the project’s expected behavior for this Contains expression and a regression check for the reported query.

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.