From c053e0f091fb5a4e556bc6079a4f91df8719e70d Mon Sep 17 00:00:00 2001 From: AntiTopQuark Date: Thu, 30 Mar 2023 14:24:43 +0800 Subject: [PATCH] Support the tck format for the output of EXPLAIN (#5414) * 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> --- src/graph/validator/ExplainValidator.cpp | 2 +- tests/tck/features/explain/ExplainAndProfile.feature | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graph/validator/ExplainValidator.cpp b/src/graph/validator/ExplainValidator.cpp index b62a54fb7a2..893ffced659 100644 --- a/src/graph/validator/ExplainValidator.cpp +++ b/src/graph/validator/ExplainValidator.cpp @@ -18,7 +18,7 @@ namespace nebula { namespace graph { -static const std::vector kAllowedFmtType = {"row", "dot", "dot:struct"}; +static const std::vector kAllowedFmtType = {"row", "dot", "dot:struct", "tck"}; ExplainValidator::ExplainValidator(Sentence* sentence, QueryContext* context) : Validator(sentence, context) { diff --git a/tests/tck/features/explain/ExplainAndProfile.feature b/tests/tck/features/explain/ExplainAndProfile.feature index f22cc232c1d..4119370381f 100644 --- a/tests/tck/features/explain/ExplainAndProfile.feature +++ b/tests/tck/features/explain/ExplainAndProfile.feature @@ -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: