Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
exmy committed Dec 8, 2023
1 parent bacf8a2 commit 8ce9544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,7 @@ class GlutenClickHouseTPCHParquetSuite extends GlutenClickHouseTPCHAbstractSuite
withSQLConf(("spark.sql.autoBroadcastJoinThreshold", "-1")) {
val sql =
"""
|select t1.l_orderkey, t2.o_orderkey, t1.l_year, t2.o_year
|select t1.l_orderkey, t1.l_year, t2.o_orderkey, t2.o_year
|from (
| select l_orderkey, extract(year from l_shipdate) as l_year, count(1) as l_cnt
| from lineitem
Expand All @@ -2201,7 +2201,7 @@ class GlutenClickHouseTPCHParquetSuite extends GlutenClickHouseTPCHAbstractSuite
| group by o_orderkey, o_orderdate) t2
|on t1.l_orderkey = t2.o_orderkey
| and l_year in (1997, 1995, 1993)
|order by t1.l_orderkey, t2.o_orderkey, t1.l_year, t2.o_year
|order by t1.l_orderkey, t1.l_year, t2.o_orderkey, t2.o_year
|limit 100
|""".stripMargin
compareResultsAgainstVanillaSpark(sql, true, { _ => })
Expand Down
4 changes: 2 additions & 2 deletions cpp-ch/local-engine/Parser/SerializedPlanParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2049,8 +2049,8 @@ ASTPtr ASTParser::parseArgumentToAST(const Names & names, const substrait::Expre

in_args.emplace_back(std::make_shared<ASTLiteral>(type_and_field.second));
}
auto array_ast = makeASTFunction("array", in_args);
args.emplace_back(array_ast);
auto set_ast = makeASTFunction("set", in_args);
args.emplace_back(set_ast);

auto ast = makeASTFunction("in", args);
if (nullable)
Expand Down

0 comments on commit 8ce9544

Please sign in to comment.