执行tools工具遇到sql执行异常

【StarRocks版本】2.2.2
【集群规模】3fe(1 follower+2observer)+10be
执行 官方的tools工具

  • 查询报错:
    (1064, “You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘partitions’ at line 1”)
    Traceback (most recent call last):
    File “healthy_report.py”, line 172, in
    File “healthy_report.py”, line 156, in print_table
    File “healthy_report.py”, line 121, in table_healthy
    File “healthy_report.py”, line 88, in get_table_info
    File “db_handler.py”, line 46, in query
    UnboundLocalError: local variable ‘fields’ referenced before assignment
    [24972] Failed to execute script ‘healthy_report’ due to unhandled exception!

用最新的代码试试

https://github.com/DanJing-coder/database-tools/tree/main/starrocks

好的,谢谢