tanishq-chugh commented on code in PR #5538:
URL: https://github.com/apache/hive/pull/5538#discussion_r1841738080
##########
ql/src/java/org/apache/hadoop/hive/ql/DriverContext.java:
##########
@@ -125,6 +130,12 @@ public QueryPlan getPlan() {
public void setPlan(QueryPlan plan) {
this.plan = plan;
+ TezTask task = Utilities.getFirstTezTask(plan.getRootTasks()).orElse(null);
Review Comment:
`0: jdbc:hive2://localhost:10000> show tables;
INFO : Compiling
command(queryId=tanishqchugh_20241113082511_604beac2-0686-4de3-93e2-edb71629232c):
show tables
INFO : Semantic Analysis Completed (retrial = false)
INFO : Created Hive schema: Schema(fieldSchemas:[FieldSchema(name:tab_name,
type:string, comment:from deserializer)], properties:null)
INFO : Completed compiling
command(queryId=tanishqchugh_20241113082511_604beac2-0686-4de3-93e2-edb71629232c);
Time taken: 0.071 seconds
INFO : Executing
command(queryId=tanishqchugh_20241113082511_604beac2-0686-4de3-93e2-edb71629232c):
show tables
INFO : PREHOOK: query: show tables
INFO : PREHOOK: type: SHOWTABLES
INFO : PREHOOK: Input: database:default
INFO : Starting task [Stage-0:DDL] in serial mode
DEBUG : Task getting executed using mapred tag :
tanishqchugh_20241113082511_604beac2-0686-4de3-93e2-edb71629232c,userid=tanishqchugh
INFO : POSTHOOK: query: show tables
INFO : POSTHOOK: type: SHOWTABLES
INFO : POSTHOOK: Input: database:default
INFO : Completed executing
command(queryId=tanishqchugh_20241113082511_604beac2-0686-4de3-93e2-edb71629232c);
Time taken: 0.105 seconds
DEBUG : Exception while clearing the Fetch task
java.lang.NullPointerException: null
at
org.apache.hadoop.hive.ql.DriverContext.setPlan(DriverContext.java:133)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.releasePlan(Driver.java:794)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.releaseResources(Driver.java:611)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:214)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:143)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:138)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at
org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:190)
~[hive-exec-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at
org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:234)
~[hive-service-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at
org.apache.hive.service.cli.operation.SQLOperation.access$500(SQLOperation.java:88)
~[hive-service-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at
org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:334)
~[hive-service-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at java.security.AccessController.doPrivileged(Native Method)
~[?:1.8.0_422]
at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_422]
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
~[hadoop-common-3.3.6.jar:?]
at
org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:354)
~[hive-service-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
~[?:1.8.0_422]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[?:1.8.0_422]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:1.8.0_422]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:1.8.0_422]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_422]
DEBUG : Shutting down query show tables
+------------------+
| tab_name |
+------------------+
| customer |
| employees |
| final_employees |
| lineitem |
| nation |
| orders |
| part |
| partsupp |
| region |
| supplier |
| temp |
+------------------+
11 rows selected (0.258 seconds)
0: jdbc:hive2://localhost:10000>`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]