iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

[Bug] the 'ALTER timeseries {ts} DROP {tag1 .. tagN}' clause is confusing (no tags/attributes discrimination)

Open mmano opened this issue 1 year ago • 1 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Version

1.3 release

Describe the bug and provide the minimal reproduce step

If a same name is used for TAGS and ATTRIBUTES, the DROP clause doesn't know to discriminate them.

ALTER timeseries root.turbine.d1.s1 ADD TAGS meta1=tag_value
ALTER timeseries root.turbine.d1.s1 ADD ATTRIBUTES meta1=attr_value
ALTER timeseries root.turbine.d1.s1 DROP meta1
ALTER timeseries root.turbine.d1.s1 DROP meta1

What did you expect to see?

DROP should accept a TAGS/ATTRIBUTES specifier (as the others clauses, ADD/UPSERT)

What did you see instead?

IoTDB seems to drop the TAGS at 1th call. The second call removes the attribute

Anything else?

The SET or RENAME clauses exhibit same behavior

Are you willing to submit a PR?

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

mmano avatar May 17 '24 09:05 mmano

Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!

github-actions[bot] avatar May 17 '24 09:05 github-actions[bot]