Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
zjuwangg committed Mar 11, 2024
1 parent a079046 commit 41b6156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class SparkPlanExecApiImpl extends SparkPlanExecApi {
val hashExpr = new Murmur3Hash(newChild.output)
val projectList = Seq(Alias(hashExpr, "hash_partition_key")()) ++ newChild.output
val projectTransformer = ProjectExecTransformer(projectList, newChild)
val sortOrder = SortOrder(projectList.head, Ascending)
val sortOrder = SortOrder(projectTransformer.output.head, Ascending)
val sortByHashCode = SortExecTransformer(Seq(sortOrder), global = false, projectTransformer)
val projectValidationResult = projectTransformer.doValidate()
val sortValidationResult = sortByHashCode.doValidate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ class TestOperator extends VeloxWholeStageTransformerSuite {
// scalastyle:on

withSQLConf("spark.sql.execution.sortBeforeRepartition" -> "false") {
runQueryAndCompare(""""SELECT /*+ REPARTITION(3) */
runQueryAndCompare("""SELECT /*+ REPARTITION(3) */
| l_orderkey, l_partkey FROM lineitem""".stripMargin) {
df =>
{
Expand Down

0 comments on commit 41b6156

Please sign in to comment.