Skip to content

[Bug]: 带有/* cloud_user */ 注释创建view,show create view结果可以看到这个标签,正常应该看不到 #19941

Closed

Description

@xiaoshuwei

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

fb915b5

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

带有/* cloud_user */ 注释创建view,show create view结果可以看到这个标签。如下:
企业微信截图_0093d63e-7408-481a-b07c-90ac60f5a786
正常应该和show create table一样看不到,如下:
image

Expected Behavior

No response

Steps to Reproduce

同上

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s1
    on Nov 11, 2024
  2. added this to the 2.0.1 milestone on Nov 11, 2024
  3. YANGGMM commented on Nov 12, 2024

    @YANGGMM
    Contributor

    drop database if exists test;
    create database test;
    use test;
    drop table if exists table01;
    /* cloud_user /create table table01 (col1 int, col2 decimal(6), col3 varchar(30));
    insert into table01 values (1, null, 'database');
    insert into table01 values (2, 38291.32132, 'database');
    insert into table01 values (3, null, 'database management system');
    insert into table01 values (4, 10, null);
    insert into table01 values (1, -321.321, null);
    insert into table01 values (2, -1, null);
    select count(
    ) from table01;
    show create table table01;

    drop view if exists v01;
    /* cloud_user */create view v01 as select * from table01;
    show create view v01;
    drop database if exists test;

  4. YANGGMM commented on Nov 13, 2024

    @YANGGMM
    Contributor

    fixed

  5. aressu1985 commented on Nov 14, 2024

    @aressu1985
    Contributor

    fixed
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingseverity/s1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions