Skip to content

Commit

Permalink
Support the tck format for the output of EXPLAIN (#5414)
Browse files Browse the repository at this point in the history
* Support the tck format for the output of EXPLAIN

* Support the tck format for the output of EXPLAIN

---------

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
  • Loading branch information
AntiTopQuark and Sophie-Xie authored Mar 30, 2023
1 parent 1bde1ce commit c053e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph/validator/ExplainValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace nebula {
namespace graph {

static const std::vector<std::string> kAllowedFmtType = {"row", "dot", "dot:struct"};
static const std::vector<std::string> kAllowedFmtType = {"row", "dot", "dot:struct", "tck"};

ExplainValidator::ExplainValidator(Sentence* sentence, QueryContext* context)
: Validator(sentence, context) {
Expand Down
2 changes: 2 additions & 0 deletions tests/tck/features/explain/ExplainAndProfile.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ Feature: Explain and Profile
| EXPLAIN | row |
| EXPLAIN | dot |
| EXPLAIN | dot:struct |
| EXPLAIN | tck |
| PROFILE | row |
| PROFILE | dot |
| PROFILE | dot:struct |
| PROFILE | tck |

Scenario Outline: Error format
When executing query:
Expand Down

0 comments on commit c053e0f

Please sign in to comment.