I was actually just trying to troubleshoot this same issue when I saw your
email. Thanks for pointing this out.

I've opened a JIRA and submitted a patch for this fyi:
https://issues.apache.org/jira/browse/HIVE-568

In the case where the tableDesc is not set on the FetchTask object, I look
for the tableDesc of the first partDesc if there is one. Please comment in
the JIRA if anyone sees a problem with this approach.

thanks,
Bill


On Fri, Jun 19, 2009 at 12:18 AM, Min Zhou <[email protected]> wrote:

> Hi guys,
>
> Driver.getSchema() obtains current result's tableDesc and assemble it to a
> String. I found if do select all queries on a table contains partitions,  a
> null pointer exception will happens.  See SemanticAnalyzer.java:3681: fetch
> = new fetchWork(listP, partP, qb.getParseInfo().getOuterQueryLimit());
> tableDesc hasn't been created for that fetchWork during the query time.
>
> Here is an example : select * from web_log where dt ='20090619'  ,  where
> dt is the parition column of web_log.
>
> Regards,
> Min
> --
> My research interests are distributed systems, parallel computing and
> bytecode based virtual machine.
>
> My profile:
> http://www.linkedin.com/in/coderplay
> My blog:
> http://coderplay.javaeye.com
>

Reply via email to