oceanbase / odc

OceanBase Developer Center(ODC), An open-source, enterprise-grade database tool for collaborative development
https://github.com/oceanbase/odc
Apache License 2.0
529 stars 50 forks source link

[Bug]: sql-check report a syntax error when a sql is executed successfully #746

Closed yhilmare closed 10 months ago

yhilmare commented 10 months ago

ODC version

4.2.2

OB version

not replated

What happened?

  1. switch on the 'syntax error' rule

    截屏2023-11-09 11 37 24
  2. type and execute the sql as follow:

    drop table if exists t1;
    create table t1 (c1 text) ;
    insert into t1 select  (randstr(1+zipf(1, 43250, random()), random())) from table(generator(1000));
  3. as you can see, the database execute these sqls successfully but the sql-check gives a syntax error: 0F35EBB1-2ECC-40A5-B749-5986BBF75501

What did you expect to happen?

if a sql is executed by observer without any syntax error, the sql-check should not report syntax error.

How can we reproduce it (as minimally and precisely as possible)?

follow 'what happened'

Anything else we need to know?

No response

Cloud

No response

tonghan-gsh commented 10 months ago

Image

pass