Skip to content

Commit

Permalink
test: fix plan tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Jan 30, 2024
1 parent a972349 commit a4a536e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
5 changes: 0 additions & 5 deletions cases/plan/error_unsupport_sql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ cases:
desc: 表路径层级超过边界2
sql: |
select db.t1.level3.* from t;
- id: 9
desc: Insert 非常量
mode: request-unsupport
sql: |
insert into t1 values(1, 2, aaa);
- id: in_predicate_subquery
desc: test_expr in subquery
sql: |
Expand Down
6 changes: 0 additions & 6 deletions hybridse/src/planv2/ast_node_converter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -868,12 +868,6 @@ TEST_F(ASTNodeConverterTest, ConvertInsertStmtFailTest) {
)sql";
expect_converted(sql, common::kSqlAstError, "Un-support Named Parameter Expression a");
}
{
const std::string sql = R"sql(
INSERT into t1 values (1, 2L, aaa)
)sql";
expect_converted(sql, common::kSqlAstError, "Un-support insert statement with un-const value");
}
}
TEST_F(ASTNodeConverterTest, ConvertStmtFailTest) {
node::NodeManager node_manager;
Expand Down
5 changes: 1 addition & 4 deletions hybridse/src/planv2/planner_v2_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@

#include "planv2/planner_v2.h"

#include <memory>
#include <utility>
#include <vector>

#include "case/sql_case.h"
#include "gtest/gtest.h"
#include "plan/plan_api.h"
#include "zetasql/parser/parser.h"
#include "zetasql/public/error_helpers.h"
#include "zetasql/public/error_location.pb.h"

namespace hybridse {
namespace plan {

Expand Down

0 comments on commit a4a536e

Please sign in to comment.