Skip to content

Commit

Permalink
have_compressed is lost in HashJoin::reuseJoinedData (apache#7083)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbo-ustc authored and shamirchen committed Oct 14, 2024
1 parent aef6fe7 commit cfbafeb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -531,5 +531,21 @@ class GlutenClickHouseTPCHSuite extends GlutenClickHouseTPCHAbstractSuite {
spark.sql("drop table t1")
spark.sql("drop table t2")
}

test("gluten-7077 bug in cross broad cast join") {
spark.sql("create table cross_join_t(a bigint, b string, c string) using parquet");
var sql = """
| insert into cross_join_t
| select id as a, cast(id as string) as b,
| concat('1231231232323232322', cast(id as string)) as c
| from range(0, 100000)
|""".stripMargin
spark.sql(sql)
sql = """
| select * from cross_join_t as t1 full join cross_join_t as t2 limit 10
|""".stripMargin
compareResultsAgainstVanillaSpark(sql, true, { _ => })
spark.sql("drop table cross_join_t")
}
}
// scalastyle:off line.size.limit
2 changes: 1 addition & 1 deletion cpp-ch/clickhouse.version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CH_ORG=Kyligence
CH_BRANCH=rebase_ch/20240830
CH_COMMIT=fc5f00d8cb7
CH_COMMIT=d239aeff645

0 comments on commit cfbafeb

Please sign in to comment.