hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liyunzhang (JIRA)" <>
Subject [jira] [Commented] (HIVE-18148) NPE in SparkDynamicPartitionPruningResolver
Date Mon, 11 Dec 2017 03:12:00 GMT


liyunzhang commented on HIVE-18148:

[~lirui]: I can not reproduce because you did not provide all the script to reproduce it.
But I guess following script matches you mentioned
EXPLAIN select count(*) from srcpart join srcpart_date on (srcpart.ds = srcpart_date.ds) join
srcpart_hour on ( =
where srcpart_date.`date` = '2008-04-08' and srcpart_hour.hour = 11;
srcpart is similar as src , srcpart_data is similar as part1 and srcpart_hour is similiar
as part2 in your example. But the operator tree is like
Here TS\[3\] is srcpart_date ,TS\[6\] is srcpart_hour, TS\[0\] is src. But there is no nested
DPP problem here. So where is wrong?

> NPE in SparkDynamicPartitionPruningResolver
> -------------------------------------------
>                 Key: HIVE-18148
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Spark
>            Reporter: Rui Li
>            Assignee: Rui Li
> The stack trace is:
> {noformat}
> 2017-11-27T10:32:38,752 ERROR [e6c8aab5-ddd2-461d-b185-a7597c3e7519 main] ql.Driver:
FAILED: NullPointerException null
> java.lang.NullPointerException
>         at org.apache.hadoop.hive.ql.optimizer.physical.SparkDynamicPartitionPruningResolver$SparkDynamicPartitionPruningDispatcher.dispatch(
>         at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(
>         at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(
>         at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(
>         at org.apache.hadoop.hive.ql.optimizer.physical.SparkDynamicPartitionPruningResolver.resolve(
>         at org.apache.hadoop.hive.ql.parse.spark.SparkCompiler.optimizeTaskPlan(
> {noformat}
> At this stage, there shouldn't be a DPP sink whose target map work is null. The root
cause seems to be a malformed operator tree generated by SplitOpTreeForDPP.

This message was sent by Atlassian JIRA

View raw message