GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.2k stars 301 forks source link

Failed to use table name which is valid in MySQL #4749

Open shuiyisong opened 2 hours ago

shuiyisong commented 2 hours ago

What type of bug is this?

Incorrect result

What subsystems are affected?

Table Engine

Minimal reproduce step

CREATE TABLE IF NOT EXISTS `p_perftest001@cc3kvQ_D1D9H9GOZGMIY97TWH20R1LRC8U0SFBA` (
    ts TIMESTAMP TIME INDEX,
    a INT
);

What did you expect to see?

Query OK, 0 rows affected (0.02 sec)

What did you see instead?

ERROR 1210 (HY000): (InvalidArguments): Invalid table name: p_perftest001@cc3kvQ_D1D9H9GOZGMIY97TWH20R1LRC8U0SFBA

What operating system did you use?

macOS

What version of GreptimeDB did you use?

0.9.3

Relevant log output and stack trace

No response

shuiyisong commented 2 hours ago

Addition

v0y4g3r commented 2 hours ago

Looks loke @ is not considered a valid character in table name: