horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

Write table fail when field name is `timestamp`

Open MichaelLeeHZ opened this issue 1 year ago • 0 comments

Describe this problem

Write table fail when field name is timestamp, I know timestamp is a keyword in CeresDB, but can we remove this restrict in sdk.

[2023-05-24 11:20:44 ERROR] [data-async-executor] {com.alipay.pontus.service.storage.DataAsyncWriter:114}-Invalid name, not allow keyword `timestamp`
java.lang.IllegalArgumentException: Invalid name, not allow keyword `timestamp`
        at io.shaded.ceresdb.util.Utils.ensureNotKeyword(Utils.java:421)
        at io.shaded.ceresdb.util.Utils.checkKeywords(Utils.java:415)
        at io.shaded.ceresdb.models.Point$PointBuilder.check(Point.java:84)
        at io.shaded.ceresdb.models.Point$PointBuilder.build(Point.java:78)

Server version

  • 1.2.0

Steps to reproduce

  • Create a table with a field named timestamp
  • Use java sdk to write data

Expected behavior

  • Write data successfully

Additional Information

No response

MichaelLeeHZ avatar May 24 '23 03:05 MichaelLeeHZ