-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tag array not working #507
Comments
to use tag array feature, should create database like this:
@xiangyu5632 Please update the doc. https://docs.opengemini.org/zh/guide/features/tag_array.html |
tkx @supercz, after I update the document, I‘ll feedbacks here |
hmm, seems still not working with 'tag attribute array' > create database db0 tag attribute array
> use db0
> insert cpu,tk1=value1,tk2=[value2,value22,value222],tk3=[value3,value33,value333] value=2 1670491329000000000
ERR: error parsing query: syntax error: unexpected IDENT
> select * from cpu
ERR: measurement not found I tried on below two versions: $ ./ts-cli version
openGemini version info:
ts-cli: 1.1.0~rc1
git: main 222f626c7cf22b8a90983bd84cf5fc7e4969ef6c
os: linux
arch: amd64 $ ./ts-cli version
2024/02/29 11:06:39 proto: duplicate proto type registered: influxql.Measurements
2024/02/29 11:06:39 proto: duplicate proto type registered: influxql.Measurement
openGemini version info:
ts-cli: v1.1.1
git: HEAD bde0e11a903a87811ed3d92b5dc6f1f1c6f6713f
os: linux
arch: amd64 |
firstly, delete database |
@xiangyu5632 I haven't paste that statement, but I did it. > show databases
name: databases
+------+
| name |
+------+
| db0 |
+------+
1 columns, 1 rows in set
> drop database db0
> show databases
name: databases
+------+
| name |
+------+
+------+
1 columns, 0 rows in set
> create database db0 tag attribute array
> insert cpu,tk1=value1,tk2=[value2,value22,value222],tk3=[value3,value33,value333] value=2 1670491329000000000
ERR: error parsing query: syntax error: unexpected IDENT |
okay, right |
before inserting, maybe you missed |
no, that's not the case, this is a mistake when I want to show you the result of $ ./ts-cli
openGemini CLI 0.1.0 (rev-revision)
Please use `quit`, `exit` or `Ctrl-D` to exit this program.
> show databases
name: databases
+------+
| name |
+------+
+------+
1 columns, 0 rows in set
> create database db0 tag attribute array
> use db0
> insert cpu,tk1=value1,tk2=[value2,value22,value222],tk3=[value3,value33,value333] value=2 1670491329000000000
ERR: error parsing query: syntax error: unexpected IDENT note it says "error parsing query", that's should happen before it checks |
@supercz please check it, Why is there a grammar error? |
@localvar mmm, I found it! |
Describe the bug(Bug 描述)
I follow this document to try the tag array feature, but the examples are not working as expected.
To Reproduce(Bug 复现步骤)
Expected behavior(期望结果)
3 records been written to the database
Screenshots(屏幕截图)
No response
Logs(完整的错误日志)
No response
Additional context(其他的一些补充内容)
No response
The text was updated successfully, but these errors were encountered: