-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add function get_query_dump #48105
[Feature] Add function get_query_dump #48105
Conversation
Signed-off-by: zihe.liu <[email protected]>
fe/fe-core/src/main/java/com/starrocks/sql/optimizer/dump/QueryDumper.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/com/starrocks/sql/optimizer/function/MetaFunctions.java
Show resolved
Hide resolved
Signed-off-by: zihe.liu <[email protected]>
Quality Gate passedIssues Measures |
[FE Incremental Coverage Report]✅ pass : 70 / 73 (95.89%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@mergify backport branch-2.5 branch-3.0 branch-3.1 branch-3.2 branch-3.3 |
✅ Backports have been created
|
Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit d42320f) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/Function.java # fe/fe-core/src/main/java/com/starrocks/http/rest/QueryDumpAction.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/function/MetaFunctions.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rewrite/scalar/FoldConstantsRule.java # fe/fe-core/src/test/java/com/starrocks/http/StarRocksHttpTestCase.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/ConstantExpressionTest.java
Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit d42320f) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/Function.java # fe/fe-core/src/main/java/com/starrocks/http/rest/QueryDumpAction.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/function/MetaFunctions.java # fe/fe-core/src/test/java/com/starrocks/http/StarRocksHttpTestCase.java
Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit d42320f) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/Function.java # fe/fe-core/src/main/java/com/starrocks/http/rest/QueryDumpAction.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/function/MetaFunctions.java # fe/fe-core/src/test/java/com/starrocks/http/StarRocksHttpTestCase.java
Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit d42320f) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/Function.java # fe/fe-core/src/main/java/com/starrocks/http/rest/QueryDumpAction.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/function/MetaFunctions.java # fe/fe-core/src/test/java/com/starrocks/http/StarRocksHttpTestCase.java
Signed-off-by: zihe.liu <[email protected]> (cherry picked from commit d42320f)
ignore backport check: 3.1.14 |
@mergify ignore backport check: 3.1.14 |
❌ Sorry but I didn't understand the command. Please consult the commands documentation 📚. |
ignore backport check: 3.3.1 |
Co-authored-by: zihe.liu <[email protected]>
Why I'm doing:
Add function
get_query_dump
to get query dump more easily.What I'm doing:
QueryDumper
used by the HTTP APIQueryDumperAction
and the functionget_query_dump
.get_query_dump
only in FE.Meta function xxx does not support non-constant arguments
when meta functions accept non-constant arguments.get_query_dump
is the same as the HTTP API/api/query_dump
.Close #48039
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: