Skip to content

Commit

Permalink
d1
Browse files Browse the repository at this point in the history
Signed-off-by: Firestarman <[email protected]>
  • Loading branch information
firestarman committed Dec 28, 2023
1 parent bc55b7b commit 41efe14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,13 @@ case class AdaptiveSparkPlanExec(
sb.toString()
}

private def q2s(qs: QueryStageExec): String =
s"${qs.productPrefix}(id: ${qs.id}, plan: ${qs.plan.productPrefix})"
private def q2s(qs: QueryStageExec): String = {
val ret = s"${qs.productPrefix}(id: ${qs.id}, "
qs.plan match {
case ex: Exchange => ret + s"${e2s(ex)})"
case _ => ret + s"plan: ${qs.plan.productPrefix})"
}
}

private def m2s: String = context.stageCache.map { case (k, v) =>
s"{${k.productPrefix}(hash: ${k.##}) -> ${q2s(v)}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ case class RelationConversions(
val ret3 = (!r.isPartitioned || conf.getConf(HiveUtils.CONVERT_INSERTING_PARTITIONED_TABLE))
val ret4 = isConvertible (r)
logWarning(s"==>query.resolved: $ret1, isHiveTable: $ret2, isPartitionedEnabled: $ret3," +
s"isConvertible $ret4")
s" isConvertible $ret4")
if (!ret2) {
logWarning(s"==>not hive table due to its provider: ${r.tableMeta.provider}")
}
Expand All @@ -226,6 +226,7 @@ case class RelationConversions(
}

override def apply(plan: LogicalPlan): LogicalPlan = {
logWarning("==>start relation conversion for hive")
plan resolveOperators {
// Write path
case InsertIntoStatement(
Expand Down

0 comments on commit 41efe14

Please sign in to comment.