BUILD_INFO
BUILD_INFO
表提供了系统的构建信息:
USE INFORMATION_SCHEMA;
SELECT * FROM BUILD_INFO;
结果如下:
+------------+------------------------------------------+------------------+-----------+-------------+
| git_branch | git_commit | git_commit_short | git_clean | pkg_version |
+------------+------------------------------------------+------------------+-----------+-------------+
| | c595a56ac89bef78b19a76aa60d8c6bcac7354a5 | c595a56a | true | 0.9.0 |
+------------+------------------------------------------+------------------+-----------+-------------+
结果中的列:
branch
:构建的 git 分支名称。git_commit
:提交构建的commit
。git_commit_short
:提交构建的commit
缩写。git_clean
:如果构建源目录包含了所有提交的更改,则为true
。pkg_version
:GreptimeDB 版本。