apache / apache/iotdb

[v0.12.2]用户使用文件导入数据时,返回失败,报错信息“org.apache.iotdb.db.exception.metadata.IllegalPathException: is not a legal path”

Open
#4,623 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

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. 使用root用户登录sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root
2. 使用show devices root.ln.wf02.wt02;
show timeseries root.ln.wf02.wt02;查看,设备已创建好

![111](https://user-images.githubusercontent.com/96515689/147048720-8a80e134-bde0-4bb3-9935-e7e3c3a09a42.png)

3. 执行命令,导入数据:
./import-csv.sh -h 127.0.0.1 -p 6667 -u root -pw root -f /opt/apache-iotdb-0.12.2-server-bin/sbin/111.csv
导入失败。
导入数据文件格式如下:
Time,Device,status
1970-01-01T08:00:00.001+08:00,root.ln.wf02.wt02,123

4. See error
![222](https://user-images.githubusercontent.com/96515689/147049027-dfd66b00-feaa-44ca-ac36-d6c25d66d5ed.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with sbin/import-csv.sh, the provided 111.csv contents, and the commands shown in the report. Inspect the import path handling around the reported IllegalPathException and verify that the valid device path imports successfully without that error.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.