matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]: All show statements should add the limits of account, user, role, otherwise the output table may not be correct.

Open nnsgmsone opened this issue 3 years ago • 1 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

return system table

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

nnsgmsone avatar Oct 11 '22 07:10 nnsgmsone

it is not a bug.

daviszhen avatar Oct 11 '22 08:10 daviszhen

@nnsgmsone @domingozhang @daviszhen pls record a result and update the status of this issue, thank you.

sukki37 avatar Oct 29 '22 05:10 sukki37

It only has already known problems introduced by pr #5824 @nnsgmsone the database system of general account has the extra views or tables from sys account:

  • rawlog
  • log_info
  • error_info
  • span_info
  • statement_info

the database system_metrics of general account has the extra views or tables from sys account :

  • views started by process_, sys_

daviszhen avatar Oct 30 '22 04:10 daviszhen

checking

dongdongyang33 avatar Nov 08 '22 10:11 dongdongyang33

in progress

dongdongyang33 avatar Nov 10 '22 10:11 dongdongyang33

add account limit for

  • show databases
  • show table
  • show table status
  • show index
  • show columns

dongdongyang33 avatar Nov 14 '22 07:11 dongdongyang33

working on tomorrow

heni02 avatar Dec 20 '22 09:12 heni02

confirm,closed commit id:f78df23895c59bbe3f662ecbf5f5ae9d590bac03 sys and non sys account show commad results: show databases 企业微信截图_2f65229b-ce21-45a8-b345-44b2c8e3b14c 企业微信截图_de70e5c3-1128-43df-94f8-88fe8d0a1fdd show tables 企业微信截图_16d309bf-7181-4e63-ab99-53ef0f1165ab 企业微信截图_dab3940d-4d60-45b2-ad1c-e6053ab18e07 show table status 企业微信截图_fda57823-9838-42ef-b2e3-3827d2042bd9 企业微信截图_6b9cc686-0ad7-445f-9edc-e2a0fcb97e38 show index 企业微信截图_057a53c6-7da8-439b-b9b6-3122e0c7134b 企业微信截图_3cd62c5b-8c5e-418e-930f-741e1b151d66 show columns 企业微信截图_44bfda1e-c1d5-493a-adc6-55dd1184eeb6 企业微信截图_d039fbe9-ba7e-4cb4-b2fc-d8c5eaf2a5b3

heni02 avatar Dec 25 '22 02:12 heni02

@dongdongyang33 plz remove bvt tag

heni02 avatar Dec 26 '22 00:12 heni02

@dongdongyang33

florashi181 avatar Dec 30 '22 07:12 florashi181

@aressu1985 plz closed issue

heni02 avatar Jan 06 '23 08:01 heni02