ALIGN BY DEVICE 查询结果错误
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the supplied C# console reproduction and the ExecuteQueryStatementAsync entry point, then inspect how the returned query rows and Values are iterated for the ALIGN BY DEVICE statement. Compare the client output with the CLI result, focusing on why the second row is missing. Done means the C# client returns the same rows as the CLI for this SQL.
Written by the indexing model from the issue text.
Description
版本:Apache.IoTDB.Data 1.0.0.3
查询这样的语句,第2行获取不到数据。
sql:select FIRST_VALUE(ctwingCmdBody) as ctwingCmdBody ,MIN_TIME(ctwingCmdBody) as ts from root.beijingheat.commandCreate.IOT16810103.T10495873.P16810103.* where Time >= 2012-05-22T21:51:48.929 and Time < 2023-10-19T13:51:48.929 ALIGN BY DEVICE
cli的执行有结果:
测试代码如下:
using System.Data;
using Apache.IoTDB.Data;
using Microsoft.Extensions.Logging;
namespace ConsoleApp2
{
internal class Program
{
static void Main(string[] args)
{
string sql = "select FIRST_VALUE(ctwingCmdBody) as ctwingCmdBody ,MIN_TIME(ctwingCmdBody) as ts from root.beijingheat.commandCreate.IOT16810103.T10495873.P16810103.* where Time >= 2012-05-22T21:51:48.929 and Time < 2023-10-19T13:51:48.929 ALIGN BY DEVICE ";
IoTDBConnection _ioTDB= new IoTDBConnection("DataSource=192.168.1.101;Port=6667;Username=root;Password=root;Compression=false"); ;
Apache.IoTDB.SessionPool _session= _ioTDB.SessionPool;
Task.Run(async () =>
{
_session.Open();
var query =await _session.ExecuteQueryStatementAsync(sql);
while (query.HasNext())
{
var next = query.Next();
var values = next.Values;
var time = next.GetDateTime();
foreach (var item in values)
{
Console.WriteLine($"{item}");
}
}
});
Console.ReadLine();
}
}
}
执行结果如下:
- Dominant language
- C#
- Stars
- 24
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/iotdb-client-csharp
-
网络波动后导致获取连接失败 Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
apache/iotdb-client-csharp#58 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
apache/iotdb-client-csharp#55 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
apache/iotdb-client-csharp#54 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
apache/iotdb-client-csharp#53 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
apache/iotdb-client-csharp#50 · 5 comments · 1 reaction ·
All issues in apache/iotdb-client-csharp
Similar issues
-
Status: Waiting triage Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nanoframework/Home#1857 ·
-
kind/bug kind/regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
unoplatform/uno.toolkit.ui#1646 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightscout/nocturne#1379 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
elastic/esql-dotnet#47 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100