apache / apache/iotdb

[Bug] device路径中包含关键字root, show devices 语句返回该device时,root未使用反引号引用

Open
#12,659 1 comment 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

1.3.1

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

![temp1](https://github.com/apache/iotdb/assets/28835506/98fc8b3a-8e38-4d14-80d3-10859f476056)

### What did you expect to see?

device 中如果包含root则用反引号引用
root.olm.MYSQL_05.manage_user.`327247336700160`.`root`

### What did you see instead?

![temp1](https://github.com/apache/iotdb/assets/28835506/98fc8b3a-8e38-4d14-80d3-10859f476056)

### Anything else?

_No response_

### Are you willing to submit a PR?

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing SHOW DEVICES with a device path containing the keyword root, using the version and expected output described in the issue. Locate the code that formats SHOW DEVICES results and add or update a focused regression test; done means the root path component is emitted with backticks as shown.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.