oceanbase / sql-lifecycle-management

SQL-Lifecycle-Management is an intelligent diagnosis and optimization product focusing on the SQL field.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cardinality null cause wrong meta_json,this may cause wrong Optimization.

wakaka2019 opened this issue · comments

Describe the bug
image

Environment

  • OS Version and CPU Arch(uname -a):
    Linux sqless 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Component Version:
    latest

Fast Reproduce Steps(Required)
cardinality null cause wrong result.
image

Steps to reproduce the behavior:

Expected behavior
{"schema":"DB1","table":"TABLE1",
"name":"INDEX1","column":"COL1",
"cardinality":RIGHT NUMBER,"unique":false}
Actual Behavior
wrong result
Additional context
image

1、cardinality的值为NULL 这个建议会走错了吗?
2、生成的索引名字是不是太长了,还有重复的两列
3、我创建了给出建议的这个索引,然后再去页面点优化建议 ,他还是提示这些建议

Stale issue message