apache / apache/iotdb

[Bug] apache-iotdb 2.04 在查询返回列名和结果顺序不匹配

Open
#16,463 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

apache-iotdb 2.04 在查询
SELECT VS001 FROM root.gn.10000001_1.BTA06.AE0001* WHERE time>= 2021-08-27 19:26:00 模糊查询多测点时候,
result = session.execute_query_statement(sql)时候
df = result.todf()
df.columns 返回列名和结果顺序不匹配

### Describe the bug and provide the minimal reproduce step

apache-iotdb 2.04 在查询
SELECT VS001 FROM root.gn.10000001_1.BTA06.AE0001* WHERE time>= 2021-08-27 19:26:00 模糊查询多测点时候,
result = session.execute_query_statement(sql)时候
df = result.todf()
df.columns 返回列名和结果顺序不匹配

### What did you expect to see?

字段和结果顺序一样

### What did you see instead?

字段和结果顺序不一样

### Anything else?

_No response_

### Are you willing to submit a PR?

- [x] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the wildcard query with session.execute_query_statement(sql), then compare result.todf().columns with the returned data order. The fix is complete when column names and result values have the same order for this multi-measurement query.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.